CVE-2026-40931 Details
Description
Compressing is a compressing and uncompressing lib for node. Prior to 2.1.1 and 1.10.5, the patch for CVE-2026-24884 relies on a purely logical string validation within the isPathWithinParent utility. This check verifies if a resolved path string starts with the destination directory string but fails to account for the actual filesystem state. By exploiting this "Logical vs. Physical" divergence, an attacker can bypass the security check using a Directory Poisoning technique (pre-existing symbolic links). This vulnerability is fixed in 2.1.1 and 1.10.5.
A vulnerability in the Compressing library for Node.js, present in versions 1.10.0 through 1.10.4 and 2.0.0 through 2.1.0, allows attackers to bypass a security patch related to directory traversal. The issue arises because the library's path validation logic fails to consider the actual filesystem state, particularly when symbolic links are involved. By exploiting this oversight, an attacker can manipulate the extraction process of archived files, leading to arbitrary file overwrites in sensitive system areas. This vulnerability is especially concerning in environments where the extraction is performed by a high-privilege user, as it could result in overwriting critical files like /etc/passwd or /etc/shadow.
To address this vulnerability, the Compressing library should update its path validation method to include a recursive check of each directory segment on the filesystem, ensuring that no symbolic links redirect writes outside the intended directory. This can be done by using 'fs.lstatSync' to verify the actual state of the path before performing any file operations.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/node-modules/compressing/security/advisories/GHSA-4c3q-x735-j3r5 | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/node-modules/compressing/security/advisories/GHSA-4c3q-x735-j3r5 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| node-modules compressing | < 1.10.5 >= 2.0.0, < 2.1.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 23, 2026 | Initial Analysis | [email protected] |
| Apr 22, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | New CVE Received | [email protected] |