Intel

AIKIDO-2026-313039

directus is vulnerable to Path Traversal

Path TraversalGHSA-3742-46gx-c8cc Published Aug 6, 2026

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

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.

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 Path Traversal in versions 10.13.0 - 12.0.2.

How to fix this

Upgrade the directus library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform