Advisory

GHSA-hrh2-vp3x-79xf

Also known as: CVE-2026-101894

Summary

@xhmikosr/decompress: Path traversal via symlink chain

Details

Impact

When extracting an untrusted archive with the default decompress(input, output) API, a crafted archive containing a chain of symlink entries can make a later entry resolve outside the output directory. The lexical containment checks pass, but the kernel follows the planted symlinks to a path outside output, letting an attacker write (and read) files outside the intended extraction directory. Overwriting startup scripts or configuration can lead to remote code execution.

This is a bypass of the hardening in GHSA-mp2f-45pm-3cg9. Any application that extracts attacker-controlled archives is affected.

Patches

Fixed in 11.1.4 (latest) and backported to 10.2.2 (release-v10 dist-tag). Upgrade to one of these.

The unmaintained upstream decompress package shares this flaw and will not be patched. Migrate to @xhmikosr/[email protected] (or @10.2.2).

Workarounds

None. Do not extract untrusted archives on affected versions. If you cannot upgrade, validate entries out of band and reject any whose resolved path escapes the target directory.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-09-29 23:49 UTC
Modified
2026-09-30 00:00 UTC

Affected packages and fixes

@xhmikosr/decompress

npm · All systems

Affected

  • introduced 11.0.0, fixed 11.1.4 (semver)

Fixed versions

11.1.4

Fix

@xhmikosr/decompress

npm · All systems

Affected

  • introduced 0, fixed 10.2.2 (semver)

Fixed versions

10.2.2

Fix

decompress

npm · All systems

Affected

  • introduced 0, last affected 4.2.1 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences