{"vuln_id":"CVE-2026-129239","aliases":["GHSA-7h45-q5jx-7r87","CVE-2025-24353"],"description":"Directus: Share update allows reassigning user_created and role","published_at":"2026-11-16T17:17:31.633000Z","modified_at":"2026-11-17T22:17:18.817000Z","first_seen_at":"2026-11-21T19:15:20.232417Z","severity":"medium","severity_source":"nvd","cvss_score":6.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","cwe":["CWE-269","CWE-863"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00397,"epss_percentile":0.34655,"nvd_status":"Awaiting Analysis","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-129239"},"matched_alias":null,"items":[{"id":2475,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-7h45-q5jx-7r87 / CVE-2026-129239: Directus: Share update allows reassigning user_created and role","summary":"Directus: Share update allows reassigning user_created and role\n\n### 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 manageme\n\nAffected packages: npm:directus\nPatched: directus 12.3.1","url":"https://github.com/advisories/GHSA-7h45-q5jx-7r87","published_at":"2026-11-16T22:25:53Z","updated_at":"2026-11-16T22:25:54Z","fetched_at":"2026-11-21T19:15:18.416866Z","severity":"medium","cvss_score":6.5,"epss":0.00397,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"directus","vuln_id":"CVE-2026-129239","vuln_ids":["CVE-2025-24353","CVE-2026-129239","GHSA-7H45-Q5JX-7R87"],"tags":["ghsa","npm","CWE-269","CWE-863"],"cluster_id":2393,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2475","html":"https://vulnwatch.ve1ve2.com/item/2475"}},{"id":6195,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-129239: Directus is a real-time API and App dashboard for managing SQL database content. Prior to 12.3.1, Directus allows an authenticated non-admin with update permis…","summary":"Directus is a real-time API and App dashboard for managing SQL database content. Prior to 12.3.1, Directus allows an authenticated non-admin with update permission on directus_shares to modify user_created, role, item, and collection on an existing owned share because authorization checks the pre-update row and does not revalidate the merged row. The update path does not force user_created to the acting user or rerun share access checks when item or collection changes. Setting user_created and role to administrator identifiers causes guest share authentication to derive administrator accountability from both fields, exposing data reachable from the shared item beyond the owner and share role permissions. The issue requires update permission on directus_shares, an item the account can share, and knowledge of administrator user and role identifiers, and it does not issue an administrator token or provide write or availability impact. This issue is fixed in version 12.3.1.\n\nReferences:\nhttps://github.com/directus/directus/commit/5869c06f6997af0d2f13b39b3d19297dd2ed2f65\nhttps://github.com/directus/directus/pull/28145\nhttps://github.com/directus/directus/releases/tag/v12.3.1\nhttps://github.com/directus/directus/security/advisories/GHSA-7h45-q5jx-7r87","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129239","published_at":"2026-11-16T17:17:31.633000Z","updated_at":"2026-11-17T22:17:18.817000Z","fetched_at":"2026-11-21T19:15:31.481965Z","severity":"medium","cvss_score":6.5,"epss":0.00397,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-129239","vuln_ids":["CVE-2025-24353","CVE-2026-129239","GHSA-7H45-Q5JX-7R87"],"tags":["CWE-269","CWE-863"],"cluster_id":2394,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/6195","html":"https://vulnwatch.ve1ve2.com/item/6195"}}]}