{"id":"CVE-2026-129239","kind":"vulnerability","aliases":["CVE-2026-129239","GHSA-7h45-q5jx-7r87"],"related":[],"title":"Directus: Share update allows reassigning user_created and role","description":"### 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.","summary":"Directus lets a non-admin user who can update their own shares change the share's creator and role after creation, without the checks applied on create. Setting both to an administrator raises the share's effective permissions and exposes data reachable from the shared item.","severity":"medium","cvss":6.5,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"directus","fixed":["12.3.1"],"affected":"< 12.3.1","ecosystem":"npm"}],"ecosystems":["npm"],"tags":["cms","cwe-269","cwe-863","directus","package","self-hosted"],"not_affected_if":["auth-required","default-config"],"how_to_check":"- Check the installed version of `directus` in `package.json` or with `npx directus --version`, and compare it with `12.3.1`.\n- Review the permission rules for `directus_shares` update in the Directus permissions settings and see whether non-admin roles hold update rights on it.","fix":"- `directus` to `12.3.1` or later (affected below `12.3.1`).","status":"open","published_at":"2026-11-16T17:17:31+00:00","first_seen_at":"2026-11-16T17:37:55+00:00","triaged_at":"2026-11-16T22:28:03+00:00","updated_at":"2026-11-16T22:28:03+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T22:28:03Z","model":"claude-haiku-5-5","output":{"fix":"- `directus` to `12.3.1` or later (affected below `12.3.1`).","reach":"internet","title":"Directus: share update lets a user reassign creator and role to admin","impact":"medium","summary":"Directus lets a non-admin user who can update their own shares change the share's creator and role after creation, without the checks applied on create. Setting both to an administrator raises the share's effective permissions and exposes data reachable from the shared item.","audience":"businesses","category":"package","nicknames":[],"who_cares":["directus","self-hosted","cms"],"confidence":0.8,"fix_status":"available","needs_auth":"yes","worst_case":"non-admin raises share permissions to administrator reach, exposing data","analyst_note":"","how_to_check":"- Check the installed version of `directus` in `package.json` or with `npx directus --version`, and compare it with `12.3.1`.\n- Review the permission rules for `directus_shares` update in the Directus permissions settings and see whether non-admin roles hold update rights on it.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["auth-required","default-config"],"who_is_affected":"Directus instances where non-admin users hold update permission on directus_shares, which the advisory says is part of the recommended defaults permission template. Instances that restrict share updates to administrators, or that do not use the share feature, are less exposed. The advisory does not say whether managed Directus hosting is affected.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"medium"},"cost_usd":0.000817,"input_tokens":5546,"output_tokens":525,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-129239':12A,20A '-2025':558C '-2026':11A,19A '-24353':559C '-269':24B,591C '-863':26B,585C '7h45':15A '7r87':17A 'abl':629C 'absent':384C 'access':229C,401C,433C 'account':212C,268C,499C 'act':395C 'admin':37B,83C,211C,595C 'administr':64B,158C,186C,276C,514C,522C,530C,535C 'allow':4A,270C,414C 'alon':640C 'anoth':506C 'api':488C 'app':228C 'app-access':227C 'appli':57B,258C,513C 'assign':144C,282C,369C 'assum':562C 'authent':208C,492C 'author':112C,172C,460C,583C 'avail':646C 'baselin':226C 'beyond':606C 'bypass':554C 'caller':314C,367C,412C,457C 'case':286C 'chang':45B,121C 'check':56B,354C,362C,402C,434C 'cms':22B 'collect':102C,332C,442C 'common':257C 'confidenti':637C 'confirm':410C 'constrain':484C 'creat':7A,59B,98C,108C,146C,153C,382C,388C 'creation':53B,571C 'creator':49B,96C,317C,328C,390C,422C,446C,470C,504C,564C 'cve':10A,18A,557C 'cwe':23B,25B,584C,590C 'data':73B,477C,618C 'decid':364C 'default':249C,304C 'deriv':497C 'detail':301C 'direct':633C 'directus':1A,21A,27B,32B,218C,253C,308C,496C 'effect':69B,162C,201C,599C 'elev':165C 'enforc':377C 'equival':430C 'escal':197C 'evalu':337C,540C 'exist':118C,344C 'expos':72B,617C,631C 'fact':574C 'featur':262C 'field':103C,131C,324C,471C,525C 'filter':335C 'forc':392C 'full':323C,543C 'full-schema':542C 'gap':173C 'get':164C 'ghsa':14A 'ghsa-7h45-q5jx-7r87':13A 'given':427C 'grant':230C,643C 'guard':374C 'guest':491C 'hint':480C 'hold':214C 'host':31B 'identifi':280C 'impact':581C,634C,647C 'improp':582C,587C 'includ':326C 'input':532C 'instanc':256C 'intersect':560C 'issu':639C 'item':78B,100C,266C,296C,330C,408C,440C,550C,623C 'knowledg':273C 'let':33B 'manag':589C 'mark':467C 'may':368C 'merg':356C 'mutabl':577C 'neither':625C 'never':127C,359C,459C 'new':371C,439C 'non':36B,82C,210C,594C 'non-admin':35B,81C,209C,593C 'one':498C 'open':191C 'ordinari':298C 'own':350C 'ownership':334C 'packag':28B 'part':223C,245C 'pass':352C 'patch':194C 'path':178C 'permiss':70B,163C,202C,216C,250C,300C,305C,600C,610C,616C 'permit':142C,319C 'prerequisit':206C 'previous':193C 'princip':626C 'privileg':196C,588C 'privilege-escal':195C 'produc':184C 'q5jx':16A 'rais':65B,597C 're':190C,361C 're-check':360C 're-open':189C 'reach':515C,545C 'reachabl':74B,619C 'read':234C,289C,299C,465C 'read-on':233C,464C 'reassign':5A,92C,150C,527C 'recommend':248C,303C 'relat':292C 'remain':568C 'repoint':453C 'report':285C 'resolv':519C,533C 'result':124C 'revalid':128C 'role':9A,51B,99C,155C,279C,329C,511C,567C,614C 'row':115C,125C,311C,341C,357C 'run':404C,436C 'schema':474C,544C 'select':310C,566C 'self':30B 'self-host':29B 'server':170C 'server-sid':169C 'set':60B,134C,325C,462C 'share':2A,44B,47B,67B,77B,90C,94C,106C,148C,160C,176C,205C,219C,241C,254C,261C,272C,309C,351C,380C,400C,416C,432C,449C,495C,502C,509C,538C,549C,603C,613C,622C 'share-access':399C,431C 'shareabl':295C 'side':171C 'start':546C 'store':425C 'studio':478C 'summari':79C 'suppli':421C 'surfac':198C 'target':407C,450C 'templat':251C 'togeth':578C 'token':187C 'trustworthi':569C 'two':373C 'ui':479C 'updat':3A,41B,87C,110C,177C,215C,307C,347C,386C,419C,580C 'usabl':264C 'use':297C 'user':6A,38B,84C,97C,138C,152C,238C,277C,396C 'valu':136C,372C,423C,455C 'whether':365C 'without':54B 'would':139C 'write':320C,485C,644C","nicknames":[],"mitigations":[],"who_affected":"Directus instances where non-admin users hold update permission on directus_shares, which the advisory says is part of the recommended defaults permission template. Instances that restrict share updates to administrators, or that do not use the share feature, are less exposed. The advisory does not say whether managed Directus hosting is affected.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":["directus"],"ptokens":["directus"],"labels":["cms","cwe269","cwe863","directus","medium","npm","package","selfhosted"],"campaign_type":null,"search_a":"'-129239':12A,20A '-2026':11A,19A '7h45':15A '7r87':17A 'allow':4A 'creat':7A 'cve':10A,18A 'directus':1A,21A 'ghsa':14A 'ghsa-7h45-q5jx-7r87':13A 'q5jx':16A 'reassign':5A 'role':9A 'share':2A 'updat':3A 'user':6A","search_b":"'-269':24B '-863':26B 'admin':37B 'administr':64B 'appli':57B 'chang':45B 'check':56B 'cms':22B 'creat':59B 'creation':53B 'creator':49B 'cwe':23B,25B 'data':73B 'directus':27B,32B 'effect':69B 'expos':72B 'host':31B 'item':78B 'let':33B 'non':36B 'non-admin':35B 'packag':28B 'permiss':70B 'rais':65B 'reachabl':74B 'role':51B 'self':30B 'self-host':29B 'set':60B 'share':44B,47B,67B,77B 'updat':41B 'user':38B 'without':54B","search_c":"'-2025':558C '-24353':559C '-269':591C '-863':585C 'abl':629C 'absent':384C 'access':229C,401C,433C 'account':212C,268C,499C 'act':395C 'admin':83C,211C,595C 'administr':158C,186C,276C,514C,522C,530C,535C 'allow':270C,414C 'alon':640C 'anoth':506C 'api':488C 'app':228C 'app-access':227C 'appli':258C,513C 'assign':144C,282C,369C 'assum':562C 'authent':208C,492C 'author':112C,172C,460C,583C 'avail':646C 'baselin':226C 'beyond':606C 'bypass':554C 'caller':314C,367C,412C,457C 'case':286C 'chang':121C 'check':354C,362C,402C,434C 'collect':102C,332C,442C 'common':257C 'confidenti':637C 'confirm':410C 'constrain':484C 'creat':98C,108C,146C,153C,382C,388C 'creation':571C 'creator':96C,317C,328C,390C,422C,446C,470C,504C,564C 'cve':557C 'cwe':584C,590C 'data':477C,618C 'decid':364C 'default':249C,304C 'deriv':497C 'detail':301C 'direct':633C 'directus':218C,253C,308C,496C 'effect':162C,201C,599C 'elev':165C 'enforc':377C 'equival':430C 'escal':197C 'evalu':337C,540C 'exist':118C,344C 'expos':617C,631C 'fact':574C 'featur':262C 'field':103C,131C,324C,471C,525C 'filter':335C 'forc':392C 'full':323C,543C 'full-schema':542C 'gap':173C 'get':164C 'given':427C 'grant':230C,643C 'guard':374C 'guest':491C 'hint':480C 'hold':214C 'identifi':280C 'impact':581C,634C,647C 'improp':582C,587C 'includ':326C 'input':532C 'instanc':256C 'intersect':560C 'issu':639C 'item':100C,266C,296C,330C,408C,440C,550C,623C 'knowledg':273C 'manag':589C 'mark':467C 'may':368C 'merg':356C 'mutabl':577C 'neither':625C 'never':127C,359C,459C 'new':371C,439C 'non':82C,210C,594C 'non-admin':81C,209C,593C 'one':498C 'open':191C 'ordinari':298C 'own':350C 'ownership':334C 'part':223C,245C 'pass':352C 'patch':194C 'path':178C 'permiss':163C,202C,216C,250C,300C,305C,600C,610C,616C 'permit':142C,319C 'prerequisit':206C 'previous':193C 'princip':626C 'privileg':196C,588C 'privilege-escal':195C 'produc':184C 'rais':597C 're':190C,361C 're-check':360C 're-open':189C 'reach':515C,545C 'reachabl':619C 'read':234C,289C,299C,465C 'read-on':233C,464C 'reassign':92C,150C,527C 'recommend':248C,303C 'relat':292C 'remain':568C 'repoint':453C 'report':285C 'resolv':519C,533C 'result':124C 'revalid':128C 'role':99C,155C,279C,329C,511C,567C,614C 'row':115C,125C,311C,341C,357C 'run':404C,436C 'schema':474C,544C 'select':310C,566C 'server':170C 'server-sid':169C 'set':134C,325C,462C 'share':90C,94C,106C,148C,160C,176C,205C,219C,241C,254C,261C,272C,309C,351C,380C,400C,416C,432C,449C,495C,502C,509C,538C,549C,603C,613C,622C 'share-access':399C,431C 'shareabl':295C 'side':171C 'start':546C 'store':425C 'studio':478C 'summari':79C 'suppli':421C 'surfac':198C 'target':407C,450C 'templat':251C 'togeth':578C 'token':187C 'trustworthi':569C 'two':373C 'ui':479C 'updat':87C,110C,177C,215C,307C,347C,386C,419C,580C 'usabl':264C 'use':297C 'user':84C,97C,138C,152C,238C,277C,396C 'valu':136C,372C,423C,455C 'whether':365C 'would':139C 'write':320C,485C,644C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-09-02T15:02:48+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-129239","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129239","severity":null,"published_at":"2026-11-16T17:17:31+00:00","modified_at":"2026-11-16T17:17:31+00:00","first_seen_at":"2026-11-16T17:37:55+00:00","fetched_at":"2026-11-16T17:37:55+00:00","note":null},{"source":"ghsa","external_id":"GHSA-7h45-q5jx-7r87","url":"https://github.com/advisories/GHSA-7h45-q5jx-7r87","severity":"medium","published_at":"2026-11-16T22:25:53+00:00","modified_at":"2026-11-16T22:25:54+00:00","first_seen_at":"2026-11-16T22:27:49+00:00","fetched_at":"2026-11-16T22:27:49+00:00","note":null}],"documents":[{"id":171514,"url":"https://github.com/directus/directus/commit/5869c06f6997af0d2f13b39b3d19297dd2ed2f65","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":171515,"url":"https://github.com/directus/directus/releases/tag/v12.3.1","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":171516,"url":"https://github.com/directus/directus/security/advisories/GHSA-7h45-q5jx-7r87","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-09-02T15:02:48+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"},{"id":172760,"url":"https://api.github.com/repos/directus/directus/security-advisories/GHSA-7h45-q5jx-7r87","title":"Maintainer's advisory: api.github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Maintainer's advisory: api.github.com"},{"id":172762,"url":"https://github.com/directus/directus/pull/28145","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}