@xhmikosr/decompress is vulnerable to Path Traversal
91
CVE Score
Critical
Path Traversal
The default decompress(input, output) API extracts symlink and hardlink entries by resolving each target lexically against the output directory, without a final check against where the entry actually lands on disk. A crafted archive with a chain of symlink entries passes each lexical containment check, but the kernel follows the planted symlinks so a later entry resolves outside output, letting it write or read files outside the intended extraction directory. Overwriting startup scripts or configuration this way can lead to remote code execution. The fix extracts files and directories before symlinks and hardlinks, then resolves each symlink's real target against the output directory and removes it if it escapes.
Upgrade the @xhmikosr/decompress library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 10.2.1
Fixed in 10.2.211.0.0 - 11.1.3
Fixed in 11.1.4@xhmikosr/decompress is vulnerable to Path Traversal in versions 0.0.1 - 10.2.1 and 11.0.0 - 11.1.3.
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.