Junglewise Threat Intelligence

CVE-2026-53486: XhmikosR decompress path traversal and privilege escalation during extraction

CVE-2026-53486 · Severity: critical · CVSS 9.1 · Published 2026-07-14

Technologies: Kevin Mårtensson Decompress. Vendors: Kevin Mårtensson.

Executive brief

The decompress package for Node.js, which is used to extract files from archives, contains a vulnerability that allows a specially crafted archive to write or read files outside of the intended folder. This could allow an attacker to overwrite sensitive system files or gain unauthorized access to data on the server. Additionally, the tool failed to properly strip dangerous file permissions, potentially allowing an attacker to create files with elevated privileges.

Technical details

The decompress package for Node.js (specifically @xhmikosr/decompress) fails to properly validate archive entries during extraction. The vulnerability stems from three primary issues: hardlink and symlink targets are not checked to ensure they point within the destination directory, path containment logic relied on insecure string prefix comparisons, and the extraction process failed to mask setuid, setgid, and sticky bits from file modes. An attacker can exploit this by providing a malicious archive that uses symlinks or directory traversal sequences to read or write arbitrary files on the host filesystem. The issue is resolved in versions 10.2.1 and 11.1.3 by implementing strict link target validation and proper bitmasking for file permissions.

Affected products

  • XhmikosR decompress < 10.2.1, >= 11.0.0 < 11.1.3

Timeline

  • 2026-07-14: advisory
  • 2026-05-30: patched

References

Related threats