@tus/server is vulnerable to Path Traversal
94
Critical Risk
@tus/server 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.
You are affected if you are using a version that falls within the vulnerable range and your @tus/server deployment stores uploads on the local filesystem via a configured upload directory that untrusted clients can reach through upload requests.
@tus/server is vulnerable to Path Traversal in versions 1.0.0 - 2.4.2.
Upgrade the @tus/server library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant