CVE-2026-144971: compressing before 2.1.4 Symlink Containment Bypass via Self-Referential Directory Link
compressing before 2.1.4 contains a symlink containment bypass in makeUncompressFn in lib/utils.js that lets attackers plant symlinks pointing outside the extraction root. Attackers can supply a crafted tar, tgz or zip archive with a directory symlink to .. and chained entry paths, enabling arbitrary file read or overwrite when applications follow the link.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.1.4
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using compressing versions before 2.1.4 to extract attacker-controlled tar, tgz, or zip archives are exposed. The impact occurs when the application follows the archive-created symlink during extraction.
What does an attacker need to exploit it?
An attacker needs to provide a crafted archive containing a directory symlink pointing to .. along with chained entry paths. No attacker privileges are required, but user interaction is required according to the supplied severity vector.
What can an attacker do if exploitation succeeds?
The attacker can cause arbitrary file reads or overwrites outside the intended extraction root when the application follows the planted link.
How can I determine whether my application is affected?
Check whether it uses compressing earlier than 2.1.4 and extracts tar, tgz, or zip archives that an attacker can influence. Review extraction workflows for archives containing directory symlinks and subsequent paths that could traverse through those links.
What is the remediation?
Update compressing to version 2.1.4 or later. Until that is possible, do not extract untrusted archives with affected versions, especially archives that may contain symlinks.