Intel

AIKIDO-2026-339674

directus is vulnerable to Authorization Bypass

Authorization BypassGHSA-xjxq-pj7h-g676 Published Yesterday

71

High Risk

This Affects:

JSdirectus
10.13.0 - 12.0.2
Fixed in 12.1.0
Are you affected? Scan for Free

TL;DR

With TUS resumable uploads enabled, the endpoint did not enforce item-level authorization on the file targeted by an upload replacement. An earlier fix validated the id upload metadata key, but the completion handlers acted on an adjacent replace_id key that was never checked against the caller, and the referenced record was rewritten by an internal service running without accountability. An authenticated user holding create and update permission on files could overwrite any other user's file contents and privileged metadata by naming the victim's file id, destroying the original object and its thumbnails. The fix enforces authorization on the replacement target and applies storage path and uniqueness checks.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you have TUS resumable uploads enabled.

Background info

directus is vulnerable to Authorization Bypass in versions 10.13.0 - 12.0.2.

How to fix this

Upgrade the directus library to the patch version.