VulnWatch by ve1ve2
medium 6.5 EPSS 0.40%

GHSA-7h45-q5jx-7r87 / CVE-2026-129239: Directus: Share update allows reassigning user_created and role

Source:
GitHub Security Advisories
Published:
Fetched:
Updated:
Affects:
directus

https://github.com/advisories/GHSA-7h45-q5jx-7r87 ↗

ghsanpmCWE-269CWE-863

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 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. This 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. ### Prerequisites - 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. - An item the account is allowed to share. - 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. ### Details The 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. Two 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. When 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. ### Impact Improper authorization (CWE-863) and improper privilege manageme Affected packages: npm:directus Patched: directus 12.3.1

Linked vulnerabilities (3)

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Directus: Share update allows reassigning user_created and role

CWE: CWE-269, CWE-863Aliases: CVE-2026-129239, CVE-2025-24353
CVE-2026-129239 medium 6.5 EPSS 0.40% (p35) NVDCVE.orgGHSA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Directus: Share update allows reassigning user_created and role

CWE: CWE-269, CWE-863Aliases: GHSA-7h45-q5jx-7r87, CVE-2025-24353NVD: Awaiting Analysis
CVE-2025-24353 medium 4.3 EPSS 0.40% (p35) NVDCVE.org
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Directus is a real-time API and App dashboard for managing SQL database content. Prior to version 11.2.0, when sharing an item, a typical user can specify an arbitrary role. It allows the user to use a higher-privileged role to see fields that otherwise the user should not be able to see. Instances that are impacted are those that use the share feature and have specific roles hierarchy and fields that are not visible for certain roles. Version 11.2.0 contains a patch the issue.

CWE: CWE-269NVD: Analyzed