@xhmikosr/decompress is vulnerable to Path Traversal
91
Critical Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
@xhmikosr/decompress is vulnerable to Path Traversal in versions 0.0.1 - 10.2.1 and 11.0.0 - 11.1.3.
Upgrade the @xhmikosr/decompress 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
ISO 42001Compliant© All Intel data is openly available and commercially licensed.