Intel

AIKIDO-2026-313039

directus is vulnerable to Path Traversal

GHSA-3742-46gx-c8ccPublished Aug 6, 2026
August 6, 2026

71

CVE Score

High

Path Traversal

Are you affected? Scan for Free

TL;DR

The TUS resumable upload flow creates the directus_files record through the generic ItemsService instead of FilesService, skipping the filename_disk sanitization and validation applied on the regular upload path. The client-supplied filename_disk from the Upload-Metadata header is passed to the storage driver as the destination path with no normalization or uniqueness check. An authenticated user with create permission on files can steer writes outside the configured storage root prefix and overwrite the stored content of existing file records. The fix sanitizes and validates the storage path and enforces filename uniqueness on the TUS path.

How do I fix this?

Upgrade the directus library to the patch version.

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.

Package

Versions

10.13.0 - 12.0.2

Fixed in 12.1.0

Background info

directus is vulnerable to Path Traversal in versions 10.13.0 - 12.0.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea