Compressing Vulnerable to Arbitrary File Write via Symlink Extraction
Date: 2026-02
Affected: npm/compressing, npm/compressing
Attack vector: path-traversal
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2026-24884
CWE: CWE-59
CVSS: 8.4 (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)

# Arbitrary File Write via Symlink Extraction in `github.com/node-modules/compressing` ## Brief Introduction The `compressing` npm package extracts TAR archives while restoring symbolic links without validating their targets. By embedding symlinks that resolve outside the intended extraction directory, an attacker can cause subsequent file entries to be written to arbitrary locations on the host file system. Depending on the extractor’s handling of existing files, this behavior may allow overwriting sensitive files or creating new files in security-critical locations. ## Affected Component and Versions - **Component**: `github.com/node-modules/compressing` - **Affected Versions**: `<= 1.10.3 || =2.0.0` ## Vulnerability Details ### Root Cause `compressing.tar.uncompress` sanitizes the destination paths of archive entries, but it does **not** restrict or validate the targets of symlinks contained in TAR archives. During extraction, the library creates those symlinks inside the output directory. Later entries that resolve through the symlink are written to the symlink target rather than the intended extraction root, enabling an arbitrary file write. ### Impact An attacker who can supply a crafted TAR archive can: - Cause files to be written outside the intended extraction directory (arbitrary file write via symlink traversal). - Write files to attacker-controlled paths on the host file system once symbolic links are followed during extraction. - In environments wh


Mitigations:

Architectural layers (MAESTRO):