Intel

AIKIDO-2026-279680

@tus/file-store is vulnerable to Path Traversal

Path TraversalGHSA-5hmx-qq2q-5m56 Published 4 days ago

94

Critical Risk

This Affects:

JS@tus/file-store
0.0.1 - 2.1.0
Fixed in 2.1.1
Are you affected? Scan for Free

TL;DR

The file store builds filesystem paths by joining the configured upload directory with an upload id derived from the request. Ids were not validated, so encoded path separators and NULL bytes were accepted and resolved paths were not confined to the configured directory. A network-reachable request with no authentication enforced by the library can then read, delete, or modify files outside the upload directory. The fix rejects encoded path separators and NULL bytes in default upload ids and verifies that resolved file paths stay inside the configured directory.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@tus/file-store is vulnerable to Path Traversal in versions 0.0.1 - 2.1.0.

How to fix this

Upgrade the @tus/file-store library to the patch version.