Vulnerability · Published Apr 9, 2026 · Assigned by GitHub_M
CVE-2026-39942Directus has a Path Traversal and Broken Access Control in File Management API
High 8.5
In plain English
A high-severity improper access control in directus from directus. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Directus is a real-time API and App dashboard for managing SQL database content. Prior to 11.17.0, 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. This vulnerability is fixed in 11.17.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | directus | 11.17.0 | GHSA-393c-p46r-7c95 |
Affected products (as reported)
Weakness: CWE-284, CWE-639 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N
References
- https://github.com/directus/directus/security/advisories/GHSA-393c-p46r-7c95 x_refsource_CONFIRM
- https://github.com/directus/directus/releases/tag/v11.17.0 x_refsource_MISC