CVE-2026-40931

High

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.

SeverityHigh
CVSS8.4
Exploit probability—
ProductNode-modules Compressing
PublishedApr 21, 2026
First seenApr 21, 2026

How to fix

Update
  • node-modules compressing1.10.5, 2.1.1 or later
  • compressing2.1.1, 1.10.5 or later

Affected products

ProductAffected versionsFixed in
node-modules compressingv < 1.10.5, 2.0.0 ≤ v < 2.1.11.10.5, 2.1.1
compressingnpm2.0.0 ≤ v < 2.1.1, v < 1.10.52.1.1, 1.10.5

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.