# CVE-2026-39246: decompress before 4.2.2 allows arbitrary symlink creation during archive extraction.

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- 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.56%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-09T00:00:00.000Z
- Modified: 2026-07-13T12:44:41.167Z
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## Description

decompress before 4.2.2 allows arbitrary symlink creation during archive extraction. When processing symlink entries (type === 'symlink'), the x.linkname field from the archive is passed directly to fs.symlink() without validation (index.js line 121). The preventWritingThroughSymlink check on line 98 only applies to file entries, not symlink creation. An attacker can craft an archive with symlink entries pointing to sensitive files outside the extraction directory (e.g., /etc/passwd), enabling information disclosure when the application reads the extracted contents.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- decompress_project decompress: up to 4.2.1

## References

- <https://github.com/kevva/decompress/issues/114> (exploit, vendor-advisory)
- <https://github.com/kevva/decompress> (product)
- <https://www.npmjs.com/package/decompress> (product)

## Sources

- CVE List: [CVE-2026-39246](https://www.cve.org/CVERecord?id=CVE-2026-39246), CVE Terms of Use, modified 2026-07-10
- NVD: [CVE-2026-39246](https://nvd.nist.gov/vuln/detail/CVE-2026-39246), Public domain, modified 2026-07-13

---

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