Vulnerabilities in pkg:npm/directus
PACKAGECVE-2026-129239 is a MODERATE (CVSS 6.5) share update allows reassigning user_created vulnerability (CWE-269: Improper Privilege Management) affecting Directus libraries in the npm ecosystem. The issue involves share update allows reassigning user_created and role. Remediation is available by upgrading affected packages to version 12.3.1.
pkg:npm/directus
Vulnerability advisories affecting package pkg:npm/directus. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-7h45-q5jx-7r87 | CVE-2026-129239 | MODERATE | Directus: Share update allows reassigning user_created and role |
| GHSA-9qrm-48qf-r2rw | CVE-2024-6533 | LOW | Directus has a DOM-Based cross-site scripting (XSS) via layout_options |
| GHSA-c6w9-5g5j-jh2p | CVE-2026-61836 | HIGH | Directus: Authorization-dependent response served from unsegmented cache key |
| GHSA-j5h6-vqc3-phqh | CVE-2026-61835 | HIGH | Directus: SSRF Protection Bypass via 0.0.0.0 in File Import |
| GHSA-mvv8-v4jj-g47j | CVE-2026-39943 | MODERATE | Directus: Sensitive fields exposed in revision history |
| GHSA-393c-p46r-7c95 | CVE-2026-39942 | HIGH | Directus: Path Traversal and Broken Access Control in File Management API |
| GHSA-38hg-ww64-rrwc | CVE-2026-35442 | HIGH | Directus: Authenticated Users Can Extract Concealed Fields via Aggregate Queries |
| GHSA-ph52-67fq-75wj | CVE-2026-35441 | MODERATE | Directus: GraphQL Alias Amplification Denial of Service Due to Missing Query Cost/Complexity Limits |
| GHSA-qqmv-5p3g-px89 | CVE-2026-35412 | HIGH | Directus: TUS Upload Authorization Bypass Allows Arbitrary File Overwrite |
| GHSA-wv3h-5fx7-966h | CVE-2026-35409 | HIGH | Directus: SSRF Protection Bypass via IPv4-Mapped IPv6 Addresses in File Import |
| GHSA-wxwm-3fxv-mrvx | CVE-2026-35413 | MODERATE | Directus: GraphQL Schema SDL Disclosure Setting |
| GHSA-cf45-hxwj-4cfj | CVE-2026-35410 | MODERATE | Directus: Open Redirect via Parser Bypass in OAuth2/SAML Authentication Flow |
| GHSA-q75c-4gmv-mg9x | CVE-2026-35411 | MODERATE | Directus: Open Redirect in Admin 2FA Setup Page |
| GHSA-8m32-p958-jg99 | CVE-2026-35408 | HIGH | Directus: Missing Cross-Origin Opener Policy |
| GHSA-6q22-g298-grjh | - | HIGH | Directus: Unauthenticated Denial of Service via GraphQL Alias Amplification of Expensive Health Check Resolver |
| GHSA-jr94-gj3h-c8rf | CVE-2026-26185 | MODERATE | Directus Vulnerable to User Enumeration via Password Reset Timing Attack |
| GHSA-gggm-66rh-pp98 | CVE-2023-38503 | MODERATE | Incorrect Permission Checking for GraphQL Subscriptions |
| GHSA-3573-4c68-g8cc | CVE-2026-22032 | MODERATE | Directus has open redirect in SAML |
| GHSA-r6wx-627v-gh2f | CVE-2024-54128 | MODERATE | Directus has an HTML Injection in Comment |
| GHSA-cff8-x7jv-4fm8 | CVE-2024-45596 | HIGH | Session is cached for OpenID and OAuth2 if `redirect` is not used |
| GHSA-cph6-524f-3hgr | CVE-2025-64749 | MODERATE | Directus Vulnerable to Information Leakage in Existing Collections |
| GHSA-8jpw-gpr4-8cmh | CVE-2025-64748 | MODERATE | Directus's conceal fields are searchable if read permissions enabled |
| GHSA-vv2v-pw69-8crf | CVE-2025-64747 | MODERATE | Directus is Vulnerable to Stored Cross-site Scripting |
| GHSA-9x5g-62gj-wqf2 | CVE-2025-64746 | MODERATE | Directus has Improper Permission Handling on Deleted Fields |
| GHSA-hxgm-ghmv-xjjm | CVE-2024-39701 | HIGH | Directus incorrectly handles `_in` filter |
| GHSA-mv33-9f6j-pfmc | CVE-2025-55746 | CRITICAL | Directus allows unauthenticated file upload and file modification due to lacking input sanitization |
| GHSA-7cvf-pxgp-42fc | CVE-2025-53889 | MODERATE | Directus' insufficient permission checks can enable unauthenticated users to manually trigger Flows |
| GHSA-rmjh-cf9q-pv7q | CVE-2025-53887 | MODERATE | Directus' exact version number is exposed by the OpenAPI Spec |
| GHSA-f24x-rm6g-3w5v | CVE-2025-53886 | MODERATE | Directus tokens are not redacted in flow logs, exposing session credentials to all admin |
| GHSA-x3vm-88hf-gpxp | CVE-2025-53885 | MODERATE | Directus is vulnerable to sensitive data exposure as user data is not being redacted when logged |
| GHSA-56p6-qw3c-fq2g | CVE-2025-30351 | LOW | Suspended Directus user can continue to use session token to access API |
| GHSA-g27j-74fp-xfpr | CVE-2022-26969 | CRITICAL | Insecure default value for CORS configuration |
| GHSA-j8xj-7jff-46mx | CVE-2025-30225 | MODERATE | Directus's S3 assets become unavailable after a burst of malformed transformations |
| GHSA-rv78-qqrq-73m5 | CVE-2025-30350 | MODERATE | Directus's S3 assets become unavailable after a burst of HEAD requests |
| GHSA-fm3h-p9wm-h74h | CVE-2025-30353 | HIGH | Directus's webhook trigger flows can leak sensitive data |
| GHSA-7wq3-jr35-275c | CVE-2025-30352 | MODERATE | Directus `search` query parameter allows enumeration of non permitted fields |
| GHSA-qf6h-p3mr-vmh5 | - | MODERATE | Duplicate Advisory: Code injection in Directus |
| GHSA-3fff-gqw3-vj86 | CVE-2024-6534 | MODERATE | Directus has an insecure object reference via PATH presets |
| GHSA-q83v-hq3j-4pq3 | - | MODERATE | Duplicate Advisory: Improper access control in Directus |
| GHSA-99vm-5v2h-h6r6 | CVE-2025-27089 | MODERATE | Directus allows updates to non-allowed fields due to overlapping policies |
| GHSA-pmf4-v838-29hg | CVE-2025-24353 | MODERATE | Directus allows privilege escalation using Share feature |
| GHSA-849r-qrwj-8rv4 | CVE-2024-54151 | HIGH | Directus allows unauthenticated access to WebSocket events and operations |
| GHSA-68g8-c275-xf2m | CVE-2024-46990 | MODERATE | Directus vulnerable to SSRF Loopback IP filter bypass |
| GHSA-jgf4-vwc3-r46v | CVE-2024-39896 | HIGH | Directus Allows Single Sign-On User Enumeration |
| GHSA-632p-p495-25m5 | CVE-2024-36128 | HIGH | Directus is soft-locked by providing a string value to random string util |
| GHSA-g65h-35f3-x2w3 | CVE-2024-34709 | MODERATE | Directus Lacks Session Tokens Invalidation |
| GHSA-p8v3-m643-4xqx | CVE-2024-34708 | MODERATE | Directus allows redacted data extraction on the API through "alias" |
| GHSA-fr3w-2p22-6w7p | CVE-2024-28239 | MODERATE | URL Redirection to Untrusted Site in OAuth2/OpenID in directus |
| GHSA-2ccr-g2rv-h677 | CVE-2024-28238 | LOW | Session Token in URL in directus |
| GHSA-5mhg-wv8w-p59j | CVE-2024-27296 | MODERATE | Directus version number disclosure |
| GHSA-qw9g-7549-7wg5 | CVE-2024-27295 | HIGH | Directus has MySQL accent insensitive email matching |
| GHSA-hmgw-9jrg-hf2m | CVE-2023-45820 | HIGH | Directus crashes on invalid WebSocket message |
| GHSA-22rr-f3p8-5gf8 | - | HIGH | Directus affected by VM2 sandbox escape vulnerability |
| GHSA-3gvp-54v2-2jrp | CVE-2020-19850 | MODERATE | Directus API vulnerable to denial of service |
| GHSA-8vg2-wf3q-mwv7 | CVE-2023-28443 | MODERATE | directus vulnerable to Insertion of Sensitive Information into Log File |
| GHSA-m5q3-8wgf-x8xf | CVE-2023-27481 | MODERATE | Directus vulnerable to extraction of password hashes through export querying |
| GHSA-4hmq-ggrm-qfc6 | CVE-2023-27474 | HIGH | directus vulnerable to HTML Injection in Password Reset email to custom Reset URL |
| GHSA-j3rg-3rgm-537h | CVE-2023-26492 | MODERATE | Directus vulnerable to Server-Side Request Forgery On File Import |
| GHSA-77qm-wvqq-fg79 | CVE-2022-36031 | MODERATE | Directus vulnerable to unhandled exception on illegal filename_disk value |
| GHSA-5h75-pvq4-82c9 | CVE-2022-23080 | MODERATE | Server-Side Request Forgery in Directus |
| GHSA-xmjj-3c76-5w84 | CVE-2022-24814 | HIGH | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in directus |
CVE-2026-129239 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-129239
To remediate this vulnerability, upgrade all affected Directus dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install directus@12.3.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls directus
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-129239, inspect your project dependencies using npm:
npm ls directus
Analyze the terminal output to locate any version of Directus in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.3.1), your application is affected.
Note: The npm ls directus command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Directus, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-129239 Affected Directus Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
directus
|
npm |
< 12.3.1
|
12.3.1
|
References
Frequently Asked Questions
What is CVE-2026-129239?
Which Directus versions are affected?
What version fixes CVE-2026-129239?
Is directus affected?
What is the CVSS score of CVE-2026-129239?
What CWE is associated with CVE-2026-129239?
How can I check npm dependencies for CVE-2026-129239?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7h45-q5jx-7r87",
"modified" : "2026-11-16T22:25:53Z",
"published" : "2026-11-16T22:25:53Z",
"aliases" : [ "CVE-2026-129239" ],
"summary" : "Directus: Share update allows reassigning user_created and role",
"details" : "### Summary\n\nA 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 never revalidated, so these fields can be set to values the user would not be permitted to assign when creating a share. By reassigning both `user_created` and `role` to an administrator the share's effective permissions get elevated.\n\nThis is a server-side authorization gap in the share update path. It does not by itself produce an administrator token. It re-opens a previously patched privilege-escalation surface on the effective permissions of a share.\n\n### Prerequisites\n\n- An authenticated non-admin account that holds update permission on `directus_shares`. This is not part of the baseline app-access grant, which is read-only on a user's own shares, but it is part of the recommended defaults permission template for `directus_shares` that instances commonly apply so the share feature is usable.\n- An item the account is allowed to share.\n- Knowledge of an administrator user and role identifier to assign. In the reported case these were read from a relation on the shareable item using ordinary read permissions.\n\n### Details\n\nThe recommended default permission for updating `directus_shares` selects rows where the caller is the creator and permits writes to the full field set, including the creator, role, item, and collection. The ownership filter is evaluated only against the row as it exists before the update, so an owned share passes the check. The merged row is never re-checked to decide whether the caller may assign the new values.\n\nTwo guards that are enforced when a share is created are absent on update. On create, the creator is forced to the acting user, and a share-access check is run against the target item to confirm the caller is allowed to share it. On update, the supplied creator value is stored as given and no equivalent share-access check is run against the new item or collection, so both the creator and the shared target can be repointed to values the caller was never authorized to set. The read-only marking on the creator field in the schema is a Data Studio UI hint and does not constrain writes through the API.\n\nWhen a guest authenticates through the share, Directus derives one accountability from the share's creator and another from the share's role, and applies administrator reach only when both resolve to an administrator. After both fields are reassigned to an administrator, both inputs resolve to administrator and the share is evaluated with full-schema reach starting from the shared item. This is the bypass of the CVE-2025-24353 intersection, which assumed the creator and selected role remain trustworthy after creation, when in fact both are mutable together through update.\n\n### Impact\n\nImproper authorization (CWE-863) and improper privilege management (CWE-269). A non-admin can raise the effective permissions of a share they own beyond both their own permissions and the share role's permissions, exposing data reachable from the shared item that neither principal should be able to expose. The direct impact is to confidentiality. This issue alone does not grant write or availability impact.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "directus"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "12.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/directus/directus/security/advisories/GHSA-7h45-q5jx-7r87"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-129239"
}, {
"type" : "WEB",
"url" : "https://github.com/directus/directus/pull/28145"
}, {
"type" : "WEB",
"url" : "https://github.com/directus/directus/commit/5869c06f6997af0d2f13b39b3d19297dd2ed2f65"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/directus/directus"
}, {
"type" : "WEB",
"url" : "https://github.com/directus/directus/releases/tag/v12.3.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-269", "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-16T22:25:53Z",
"nvd_published_at" : "2026-11-16T17:17:31Z"
}
}