# CVE-2026-40931: Complete Bypass of CVE-2026-24884 Patch via Git-Delivered Symlink Poisoning in compressing

- Severity: High 8.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-17T21:32:59.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-4c3q-x735-j3r5
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- node-modules compressing: >=2.0.0, < 2.1.1; < 1.10.5; before 1.10.5; from 2.0.0 before 2.1.1
- compressing (npm): from 2.0.0 before 2.1.1; before 1.10.5

## Every score

- GitHub_M: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/node-modules/compressing/security/advisories/GHSA-4c3q-x735-j3r5> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40931> (advisory)
- <https://github.com/node-modules/compressing> (package)

## Sources

- CVE List: [CVE-2026-40931](https://www.cve.org/CVERecord?id=CVE-2026-40931), CVE Terms of Use, modified 2026-04-22
- GitHub Advisory Database: [GHSA-4c3q-x735-j3r5](https://github.com/advisories/GHSA-4c3q-x735-j3r5), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-40931](https://nvd.nist.gov/vuln/detail/CVE-2026-40931), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40931 · Whole record: https://cve.day/CVE-2026-40931.json · Rebuilt by cve.day 2026-11-25T22:59:19.197Z
