CVEvulnerability
CVE-2026-40931
7.8 HIGH
Official page ↗
- Status
- Analyzed
- Published
- 2026-04-21
- Last modified
- 2026-10-26
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 8.4 HIGH — CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 3.1 ([email protected])
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-59
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.
Affected configurations
• node-modules compressing (< 1.10.5)
• node-modules compressing (>= 2.0.0 < 2.1.1)
Related
Weakness · CWE (1)
- CWE-59 Improper Link Resolution Before File Access weakness
References
- https://github.com/node-modules/compressing/security/advisories/GHSA-4c3q-x735-j3r5 Exploit, Mitigation, Vendor Advisory
- https://github.com/node-modules/compressing/security/advisories/GHSA-4c3q-x735-j3r5 Exploit, Mitigation, Vendor Advisory