# CVE-2026-140244: node-tar: symlink containment bypass via nested symlink + '..' (lexical linkpath check)

- 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:49:26.157Z
- Modified: 2026-12-02T01:45:50.782Z
- Also known as: GHSA-mhqm-9wj8-w7r4
- 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, the STRIPABSOLUTEPATH linkpath containment check uses path.resolve and collapses parent components without following an earlier archive-created symlink. A second symlink can therefore be planted inside the extraction root while pointing outside it. A later consumer that reads, serves, copies, or archives the extracted tree can follow the link and read an arbitrary file. Hardlinks and subsequent node-tar writes through the planted link remain blocked. 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-mhqm-9wj8-w7r4> (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-140244> (advisory)
- <https://github.com/isaacs/node-tar> (package)

## Sources

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

---

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