CVE-2026-40931

Source
https://cve.org/CVERecord?id=CVE-2026-40931
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40931.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-40931
Aliases
Published
2026-04-21T20:57:09.840Z
Modified
2026-07-15T01:49:10.298915438Z
Severity
  • 8.4 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Complete Bypass of CVE-2026-24884 Patch via Git-Delivered Symlink Poisoning in compressing
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-59"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40931.json"
}
References

Affected packages

Git / github.com/node-modules/compressing

Affected ranges

Type
GIT
Repo
https://github.com/node-modules/compressing
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
Fixed
Database specific
{
    "source": "CPE_RANGE",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.10.5"
        },
        {
            "introduced": "2.0.0"
        },
        {
            "fixed": "2.1.1"
        }
    ],
    "cpe": "cpe:2.3:a:node-modules:compressing:*:*:*:*:*:node.js:*:*"
}

Affected versions

1.*
1.0.0
1.1.0
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.3.0
1.3.1
1.3.2
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
v1.*
v1.10.0
v1.10.1
v1.10.2
v1.10.3
v1.10.4
v1.6.2
v1.6.3
v1.7.0
v1.8.0
v1.9.0
v1.9.1
v2.*
v2.0.0
v2.0.1
v2.1.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40931.json"