# CVE-2026-140239: node-tar: Global PAX extended header injects attacker-controlled linkpath into tar.Parser entries, bypassing strict-mode validation

- 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:23:34.312Z
- Modified: 2026-12-02T01:45:50.622Z
- Also known as: GHSA-ffhw-4r4q-5cwv
- Weaknesses: CWE-20, CWE-345
- Assigned by: GitHub_M

## Description

node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, a PAX Global Extended Header containing linkpath can populate entry.linkpath on every entry returned by tar.Parser without a strict-mode warning. Direct tar.Parser or tar.list consumers that trust this value can create paths or symlinks outside their intended directory, resulting in arbitrary file read or write. Node-tar's own tar.x and tar.extract operations are not affected because Unpack separately rejects an escaping linkpath. 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-ffhw-4r4q-5cwv> (web)
- <https://github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237> (web)
- <https://github.com/isaacs/node-tar/releases/tag/v8.0.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-140239> (advisory)
- <https://github.com/isaacs/node-tar> (package)

## Sources

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

---

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