# CVE-2026-140246: node-tar: SymbolicLink extraction escapes the extraction directory on non-Windows hosts via a backslash separator differential

- Severity: High 7.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T17:52:56.281Z
- Modified: 2026-12-02T01:45:49.511Z
- Also known as: GHSA-hqgx-p3r3-2cfg
- Weaknesses: CWE-22, CWE-59
- Assigned by: GitHub_M

## Description

node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, on non-Windows hosts, SymbolicLink extraction applies Windows-style backslash separator semantics during the linkpath containment check but passes the raw linkpath to the filesystem, where a backslash is an ordinary filename character. A crafted archive can therefore plant a link inside the extraction directory that resolves to a host path outside it. A later consumer can read through the link, but node-tar does not itself establish an arbitrary-write impact. This issue is fixed in version 8.0.0.

(As written by CVE List.)

## Affected

- isaacs node-tar: < 8.0.0
- tar (npm): before 8.0.0

## Every score

- GitHub_M: CVSS:4.0 7.2 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/isaacs/node-tar/security/advisories/GHSA-hqgx-p3r3-2cfg> (web)
- <https://github.com/isaacs/node-tar/commit/23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d> (web)
- <https://github.com/isaacs/node-tar/releases/tag/v8.0.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-140246> (advisory)
- <https://github.com/isaacs/node-tar> (package)

## Sources

- CVE List: [CVE-2026-140246](https://www.cve.org/CVERecord?id=CVE-2026-140246), CVE Terms of Use, modified 2026-12-01
- GitHub Advisory Database: [GHSA-hqgx-p3r3-2cfg](https://github.com/advisories/GHSA-hqgx-p3r3-2cfg), CC-BY-4.0, modified 2026-12-02
- NVD: [CVE-2026-140246](https://nvd.nist.gov/vuln/detail/CVE-2026-140246), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-140246 · Whole record: https://cve.day/CVE-2026-140246.json · Rebuilt by cve.day 2026-12-02T01:57:25.522Z
