Intel

AIKIDO-2026-130799

@xhmikosr/decompress is vulnerable to Path Traversal

Path TraversalGHSA-hrh2-vp3x-79xf Published 2 days ago

91

Critical Risk

This Affects:

JS@xhmikosr/decompress
0.0.1 - 10.2.1
Fixed in 10.2.2
11.0.0 - 11.1.3
Fixed in 11.1.4
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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

Background info

@xhmikosr/decompress is vulnerable to Path Traversal in versions 0.0.1 - 10.2.1 and 11.0.0 - 11.1.3.

How to fix this

Upgrade the @xhmikosr/decompress library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform