tar-fs is vulnerable to Path Traversal
48
CVE Score
Medium
Path Traversal
The package’s tar extraction logic previously allowed crafted archives to escape the intended extraction directory (CWD) via path traversal and symlink tricks (including when using opts.strip), and could write through pre-existing symlinks. The patch adds explicit root-escape guards, rejects escaping symlinks, avoids following existing symlinks, and strips special permission bits (setuid/setgid/sticky) from extracted entries.
Upgrade the tar-fs library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.5.1 - 2.1.4
Fixed in 2.1.53.0.0 - 3.1.2
Fixed in 3.1.3tar-fs is vulnerable to Path Traversal in versions 3.0.0 - 3.1.2 and 0.5.1 - 2.1.4.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.