Directus Security Advisories, CVEs & Patched Versions
Historical vulnerability disclosures, CVSS severity ratings, affected version ranges, and verified patch releases for Directus.
Directus: Share update allows reassigning user_created and role
### Summary A non-admin user who can update their own shares can reassign a share's creator (`user_created`), `role`, `item`, and `collection` fields after the share is created. The update is authorized against the row as it existed before the change, and the resulting row is...
0 -> 12.3.1
Directus: Authorization-dependent response served from unsegmented cache key
## Summary When response caching is enabled (`CACHE_ENABLED=true`), the cache-key derivation in `api/src/utils/get-cache-key.ts` includes only `version`, `path`, `query`, and `accountability.user` (plus a conditional `ip`). Authorization context beyond `user` (`share`, `role`...
0 -> 12.0.0
Directus: SSRF Protection Bypass via 0.0.0.0 in File Import
### Summary The SSRF protection on Directus's file-import-from-URL feature can be bypassed using the address `0.0.0.0`. While `127.0.0.1` and other internal addresses are denied, `0.0.0.0` is not added to the blocklist. On Linux and macOS, connecting to `0.0.0.0` reaches loca...
0 -> 12.0.0
Directus: Authenticated Users Can Extract Concealed Fields via Aggregate Queries
### Summary Aggregate functions (`min`, `max`) applied to fields with the `conceal` special type incorrectly return raw database values instead of the masked placeholder. When combined with `groupBy`, any authenticated user with read access to the affected collection can extr...
0 -> 11.17.0
Directus: Unauthenticated Denial of Service via GraphQL Alias Amplification of Expensive Health Check Resolver
## Summary The GraphQL specification permits a single query to repeat the same field multiple times using aliases, with each alias resolved independently by default. Directus did not deduplicate resolver invocations within a single request, meaning each alias triggered a full...
0 -> 11.17.0
Directus: GraphQL Alias Amplification Denial of Service Due to Missing Query Cost/Complexity Limits
### Summary Directus' GraphQL endpoints (`/graphql` and `/graphql/system`) did not deduplicate resolver invocations within a single request. An authenticated user could exploit GraphQL aliasing to repeat an expensive relational query many times in a single request, forcing th...
0 -> 11.17.0
Directus: Sensitive fields exposed in revision history
### Summary Directus stores revision records (in `directus_revisions`) whenever items are created or updated. Due to the revision snapshot code not consistently calling the `prepareDelta` sanitization pipeline, sensitive fields (including user tokens, two-factor authenticatio...
0 -> 11.17.0
Directus: TUS Upload Authorization Bypass Allows Arbitrary File Overwrite
## Summary Directus' TUS resumable upload endpoint (`/files/tus`) allows any authenticated user with basic file upload permissions to overwrite arbitrary existing files by UUID. The TUS controller performs only collection-level authorization checks, verifying the user has som...
0 -> 11.16.1
Directus: SSRF Protection Bypass via IPv4-Mapped IPv6 Addresses in File Import
### Summary A Server-Side Request Forgery (SSRF) protection bypass has been identified and fixed in Directus. The IP address validation mechanism used to block requests to local and private networks could be circumvented using IPv4-Mapped IPv6 address notation. ### Details Di...
0 -> 11.16.0
Directus: GraphQL Schema SDL Disclosure Setting
## Summary When `GRAPHQL_INTROSPECTION=false` is configured, Directus correctly blocks standard GraphQL introspection queries (`__schema`, `__type`). However, the `server_specs_graphql` resolver on the `/graphql/system` endpoint returns an equivalent SDL representation of the...
0 -> 11.16.1
Directus: Open Redirect via Parser Bypass in OAuth2/SAML Authentication Flow
### Summary An open redirect vulnerability exists in the login redirection logic. The `isLoginRedirectAllowed` function fails to correctly identify certain malformed URLs as external, allowing attackers to bypass redirect allow-list validation and redirect users to arbitrary ...
0 -> 11.16.1
Directus: Open Redirect in Admin 2FA Setup Page
### Summary Directus is vulnerable to an Open Redirect via the redirect query parameter on the `/admin/tfa-setup` page. When an administrator who has not yet configured Two-Factor Authentication (2FA) visits a crafted URL, they are presented with the legitimate Directus 2FA s...
0 -> 11.16.1
Directus: Path Traversal and Broken Access Control in File Management API
## Summary A broken access control vulnerability was identified in the Directus file management API that allows authenticated users to overwrite files belonging to other users by manipulating the `filename_disk` parameter. ## Details The `PATCH /files/{id}` endpoint accepts...
0 -> 11.17.0
Directus: Missing Cross-Origin Opener Policy
## Summary Directus's Single Sign-On (SSO) login pages lacked a `Cross-Origin-Opener-Policy` (COOP) HTTP response header. Without this header, a malicious cross-origin window that opens the Directus login page retains the ability to access and manipulate the `window` object o...
0 -> 11.17.0
Directus Vulnerable to User Enumeration via Password Reset Timing Attack
### Summary A timing-based user enumeration vulnerability exists in the password reset functionality. When an invalid reset_url parameter is provided, the response time differs by approximately 500ms between existing and non-existing users, enabling reliable user enumeration....
0 -> 11.14.1, 0 -> 32.2.0
Directus has open redirect in SAML
## Security Advisory: Open Redirect in Directus SAML Authentication ### Summary An open redirect vulnerability exists in the Directus SAML authentication callback endpoint. The `RelayState` parameter is used in redirects without proper validation against an allowlist of perm...
0 -> 11.14.0, 0 -> 32.1.1
Directus is Vulnerable to Stored Cross-site Scripting
### Summary A stored cross-site scripting (XSS) vulnerability exists that allows users with `upload files` and `edit item` permissions to inject malicious JavaScript through the Block Editor interface. Attackers can bypass Content Security Policy (CSP) restrictions by combini...
0 -> 11.13.0
Directus has Improper Permission Handling on Deleted Fields
### Summary Directus does not properly clean up field-level permissions when a field is deleted. If a new field with the same name is created later, the system automatically re-applies the old permissions, which can lead to unauthorized access. ### Details When a field is rem...
0 -> 11.13.0
Directus Vulnerable to Information Leakage in Existing Collections
### Summary: An observable difference in error messaging was found in the Directus REST API. The `/items/{collection}` API returns different error messages for these two cases: 1. A user tries to access an existing collection which they are not authorized to access. 2. A user...
0 -> 11.13.0, 0 -> 32.0.0
Directus's conceal fields are searchable if read permissions enabled
## Summary A vulnerability allows authenticated users to search concealed/sensitive fields when they have read permissions. While actual values remain masked (`****`), successful matches can be detected through returned records, enabling enumeration attacks on sensitive data....
0 -> 11.13.0, 0 -> 32.0.0
Directus allows unauthenticated file upload and file modification due to lacking input sanitization
## Summary A vulnerability exists in the file update mechanism which allows an unauthenticated actor to modify existing files with arbitrary contents (without changes being applied to the files' database-resident metadata) and / or upload new files, with arbitrary content and...
10.8.0 -> 11.9.3, 14.1.0 -> 28.0.2
Directus' insufficient permission checks can enable unauthenticated users to manually trigger Flows
### Summary Directus Flows with a manual trigger are not validating whether the user triggering the Flow has permissions to the items provided as payload to the Flow. Depending on what the Flow is set up to do this can lead to the Flow executing potential tasks on the attacke...
0 -> 11.9.0
Directus' exact version number is exposed by the OpenAPI Spec
### Summary The exact Directus version number is incorrectly being used as OpenAPI Spec version this means that it is being exposed by the `/server/specs/oas` endpoint without authentication. ### Impact With the exact version information a malicious attacker can look for k...
0 -> 11.9.0
Directus tokens are not redacted in flow logs, exposing session credentials to all admin
### Summary When using Directus Flows with the WebHook trigger, all incoming request details are logged including security sensitive data like access and refresh tokens in cookies. ### Impact Malicious admins with access to the logs can hijack the user sessions within the t...
0 -> 11.9.0
Directus is vulnerable to sensitive data exposure as user data is not being redacted when logged
### Summary When using Directus Flows to handle CRUD events for users it is possible to log the incoming data to console using the "Log to Console" operation and a template string. ### Impact Malicious admins can log sensitive data from other users when they are created or...
9.0.0 -> 11.9.0
Directus's webhook trigger flows can leak sensitive data
### Describe the Bug In Directus, when a **Flow** with the "_Webhook_" trigger and the "_Data of Last Operation_" response body encounters a ValidationError thrown by a failed condition operation, the API response includes sensitive data. This includes environmental variable...
9.12.0 -> 11.5.0
Directus `search` query parameter allows enumeration of non permitted fields
### Summary The `search` query parameter allows users with access to a collection to filter items based on fields they do not have permission to view. This allows the enumeration of unknown field contents. ### Details The searchable columns (numbers & strings) are not check...
9.0.0-alpha.4 -> 11.5.0
Suspended Directus user can continue to use session token to access API
### Summary Since the user status is not checked when verifying a session token a suspended user can use the token generated in session auth mode to access the API despite their status. ### Details There is a check missing in `verifySessionJWT` to verify that a user is actual...
10.10.0 -> 11.5.0, 18.0.0 -> 24.0.1, 11.0.7 -> 13.0.0
Directus's S3 assets become unavailable after a burst of HEAD requests
### Summary There's some tools that use Directus to sync content and assets. Some of those tools use HEAD method, like Shopify, to check the existence of files. Although, when making many HEAD requests at once, at some point, all assets are being served as 403. ### Details Wh...
9.22.0 -> 12.0.1, 9.22 -> 11.5.0
Directus's S3 assets become unavailable after a burst of malformed transformations
### Summary When making many malformed transformation requests at once, at some point, all assets are being served as 403. ### Details When I was investigating this issue, I have found that after a burst of malformed asset transformation requests, the amount of `sockets` held...
9.22.0 -> 12.0.1, 9.22.0 -> 11.5.0
Directus allows updates to non-allowed fields due to overlapping policies
### Summary If there are two overlapping policies for the `update` action that allow access to different fields, instead of correctly checking access permissions against the item they apply for the user is allowed to update the superset of fields allowed by any of the policies...
11.0.0 -> 11.1.2, 22.0.0 -> 23.1.0
Directus has a DOM-Based cross-site scripting (XSS) via layout_options
### Impact Directus allows an authenticated attacker to save cross site scripting code to the database. This is possible because the application injects an attacker-controlled parameter that will be stored in the server and used by the client into an unsanitized DOM element. W...
0 -> 11.3.3
Directus allows privilege escalation using Share feature
### Summary When sharing an item, user can specify an arbitrary role. It allows user to use a higher-privileged role to see fields that otherwise the user should not be able to see. ### Details Specifying `role` on share should be available only for admins. The current flow h...
0 -> 11.2.0, 0 -> 13.3.1
Directus allows unauthenticated access to WebSocket events and operations
### Summary When setting `WEBSOCKETS_GRAPHQL_AUTH` or `WEBSOCKETS_REST_AUTH` to "public", an unauthenticated user is able to do any of the supported operations (CRUD, subscriptions) with full admin privileges. ### Details Accountability for unauthenticated WebSocket requests ...
11.0.0 -> 11.3.0, 22.2.0 -> 23.2.0
Directus has an HTML Injection in Comment
### Summary The Comment feature has implemented a filter to prevent users from adding restricted characters, such as HTML tags. However, this filter operates on the client-side, which can be bypassed, making the application vulnerable to HTML Injection. ### Details The Commen...
11.0.0 -> 13.3.1, 10.10.0 -> 10.13.4, 11.0.0-rc.1 -> 11.2.2
Directus vulnerable to SSRF Loopback IP filter bypass
### Impact If you're relying on blocking access to localhost using the default `0.0.0.0` filter this can be bypassed using other registered loopback devices (like `127.0.0.2` - `127.127.127.127`) ### Workaround You can block this bypass by manually adding the `127.0.0.0/8` CI...
0 -> 10.13.3, 11.0.0 -> 11.1.0, 0 -> 21.0.0
Session is cached for OpenID and OAuth2 if `redirect` is not used
### Summary Unauthenticated user can access credentials of last authenticated user via OpenID or OAuth2 where the authentication URL did not include `redirect` query string. For example: - Project is configured with OpenID or OAuth2 - Project is configured with cache enabled ...
0 -> 10.13.3, 11.0.0-rc.1 -> 11.1.0, 0 -> 21.0.1
Directus has an insecure object reference via PATH presets
### Impact Directus v10.13.0 allows an authenticated external attacker to modify presets created by the same user to assign them to another user. This is possible because the application only validates the user parameter in the `POST /presets` request but not in the PATCH requ...
0 -> 10.13.2
Directus Allows Single Sign-On User Enumeration
### Impact When relying on SSO providers in combination with local authentication it can be possible to enumerate existing SSO users in the instance. This is possible because if an email address exists in Directus and belongs to a known SSO provider then it will throw a "helpf...
9.11 -> 10.13.0
Directus incorrectly handles `_in` filter
### Summary Directus >=9.23.0, <=v10.5.3 improperly handles _in, _nin operators. It evaluates empty arrays as valid so expressions like {"role": {"_in": $CURRENT_USER.some_field}} would evaluate to true allowing the request to pass. ### Details This results in Broken Access C...
9.23.0 -> 10.6.0
Directus is soft-locked by providing a string value to random string util
### Describe the Bug Providing a non-numeric length value to the random string generation utility will create a memory issue breaking the capability to generate random strings platform wide. This creates a denial of service situation where logged in sessions can no longer be ...
0 -> 10.11.2
Directus Lacks Session Tokens Invalidation
### Summary Currently session tokens function like the other JWT tokens where they are not actually invalidated when logging out. The `directus_session` gets destroyed and the cookie gets deleted but if you captured the cookie value it will still work for the entire expiry tim...
10.10.0 -> 10.11.0
Directus allows redacted data extraction on the API through "alias"
## Summary A user with permission to view any collection using redacted hashed fields can get access the raw stored version using the `alias` functionality on the API. Normally, these redacted fields will return `**********` however if we change the request to `?alias[workaro...
0 -> 10.11.0
URL Redirection to Untrusted Site in OAuth2/OpenID in directus
### Summary The authentication API has a `redirect` parameter that can be exploited as an open redirect vulnerability as the user tries to log in via the API URL https://docs.directus.io/reference/authentication.html#login-using-sso-providers /auth/login/google?redirect for ex...
0 -> 10.10.0
Session Token in URL in directus
### Impact When reaching the /files page, a JWT is passed via GET request. Inclusion of session tokens in URLs poses a security risk as URLs are often logged in various places (e.g., web server logs, browser history). Attackers gaining access to these logs may hijack active u...
0 -> 10.10.0
Directus version number disclosure
### Impact Currently the exact Directus version number is being shipped in compiled JS bundles which are accessible without authentication. With this information a malicious attacker can trivially look for known vulnerabilities in Directus core or any of its shipped dependenc...
0 -> 10.8.3
Directus has MySQL accent insensitive email matching
## Password reset vulnerable to accent confusion The password reset mechanism of the Directus backend is implemented in a way where combined with (specific, need to double check if i can work around) configuration in MySQL or MariaDB. As such, it allows attackers to receive a...
0 -> 10.8.3
Directus crashes on invalid WebSocket message
### Summary It seems that any Directus installation that has websockets enabled can be crashed if the websocket server receives an invalid frame. This could probably be posted as an issue and I might even be able to put together a pull request for a fix (if only I had some ext...
10.4.0 -> 10.6.2
Directus affected by VM2 sandbox escape vulnerability
### Impact In vm2 for versions up to 3.9.19, Promise handler sanitization can be bypassed, allowing attackers to escape the sandbox and run arbitrary code. Within Directus this applies to the "Run Script" operation in flows being able to escape the sandbox running code in the ...
0 -> 10.6.0
Incorrect Permission Checking for GraphQL Subscriptions
### Summary CWE-200: Exposure of Sensitive Information to an Unauthorized Actor Access to information you should not have access to when the permissions rely on `$CURRENT_USER` for filtering. ### Details The permission filters (i.e. `user_created IS $CURRENT_USER`) are not ...
10.3.0 -> 10.5.0
Directus API vulnerable to denial of service
An issue found in Directus API v.2.2.0 allows a remote attacker to cause a denial of service via a great amount of HTTP requests.
2.2.0 -> 2.2.1
directus vulnerable to Insertion of Sensitive Information into Log File
### Summary CWE-532: Insertion of Sensitive Information into Log File discovered in v9.23.1. The `directus_refresh_token` is not redacted properly from the log outputs and can be used to impersonate users without their permission. ### Details Using `v9.23.1`, I am seeing t...
0 -> 9.23.3
Directus vulnerable to extraction of password hashes through export querying
### Impact Users with read access to the `password` field in `directus_users` can extract the argon2 password hashes by brute forcing the export functionality combined with a `_starts_with` filter. This allows the user to enumerate the password hashes. ### Patches The probl...
0 -> 9.16.0
directus vulnerable to HTML Injection in Password Reset email to custom Reset URL
### Impact Instances relying on an allow-listed reset URL are vulnerable to an HTML injection attack through the use of query parameters in the reset URL. ### Patches The problem has been resolved and released under version 9.23.0. People relying on a custom password reset...
0 -> 9.23.0
Directus vulnerable to Server-Side Request Forgery On File Import
### Summary Directus versions <=9.22.4 is vulnerable to Server-Side Request Forgery (SSRF) when importing a file from a remote web server (POST to `/files/import`). An attacker can bypass the security controls that were implemented to patch vulnerability [CVE-2022-23080](https...
0 -> 9.23.0
Directus vulnerable to unhandled exception on illegal filename_disk value
The Directus process can be aborted by having an authorized user update the `filename_disk` value to a folder and accessing that file through the `/assets` endpoint. The vulnerability is patched and released in v9.15.0. You can prevent this problem by making sure no (untrus...
0 -> 9.15.0
Server-Side Request Forgery in Directus
Directus versions v9.0.0-beta.2 through 9.6.0 are vulnerable to server-side request forgery (SSRF) in the media upload functionality, which allows a low privileged user to perform internal network port scans.
9.0.0-beta.2 -> 9.7.0
Insecure default value for CORS configuration
### Impact The default value for the `CORS_ENABLED` and `CORS_ORIGIN` configuration was set to be very permissive by default. This could lead to unauthorized access in uncontrolled environments when the configuration hasn't been changed. ### Patches The default values for C...
0 -> 9.7.0
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in directus
### Impact Unauthorized JavaScript can be executed by inserting an iframe into the rich text html interface that links to a file uploaded HTML file that loads another uploaded JS file in its script tag. This satisfies the regular content security policy header, which in turn ...
0 -> 9.7.0