directus
Affected
- introduced
0, fixed11.17.0(semver)
Fixed versions
11.17.0
Fix
- Fixed version
11.17.0npm install [email protected]
Advisory
Also known as: CVE-2026-39942
Directus: Path Traversal and Broken Access Control in File Management API
Summary
A broken access control vulnerability was identified in the Directus file management API that allows authenticated users to overwrite files belonging to other users by manipulating the filename_disk parameter.
Details
The PATCH /files/{id} endpoint accepts a user-controlled filename_disk parameter. By setting this value to match the storage path of another user's file, an attacker can overwrite that file's content while manipulating metadata fields such as uploaded_by to obscure the tampering.
Impact
Mitigation
The filename_disk parameter should be treated as a server-controlled value. Uniqueness of storage paths must be enforced server-side, and filename_disk should be excluded from the fields users are permitted to update directly.
High Basis: The source's own band: HIGH
0, fixed 11.17.0 (semver)11.17.0
11.17.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0