CVE-2026-40931

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.

Severity
HIGH
CVSS v3
8.4
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source cna
Exploit chance (EPSS)
0.258%
chance of exploitation in the next 30 days
higher than 17.6% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationpoc
Automatableno
Technical impacttotal
Scored2026-04-22

Timeline

  1. 2026-04-17GitHub advisory published (GHSA-4c3q-x735-j3r5)4 days before publication
  2. 2026-04-21Published by the CNA20:57 UTC
  3. 2026-04-22CISA SSVC decision recorded1 day after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-4c3q-x735-j3r5, affected packages:

PackageVulnerable versionsFixed in
npm compressingbefore 1.10.51.10.5
npm compressingfrom 2.0.0 before 2.1.12.1.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
node-modules compressingbefore 1.10.5fixed in 1.10.5from 2.0.0 before 2.1.1fixed in 2.1.11.10.52.1.1

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources