# CVE-2026-140234: node-tar: `/\0.*/` truncation stops at `\n`, `\r`, U+2028 and U+2029, so NUL bytes survive in ustar, GNU and PAX names: a name differential and an async crash

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-12-01T17:09:39.092Z
- Modified: 2026-12-02T02:00:05.507Z
- Also known as: GHSA-wpwg-r92p-fjjh
- Weaknesses: CWE-158
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, /\0.*/ truncation stops at \n, \r, U+2028 and U+2029, so NUL bytes survive in ustar, GNU and PAX names: a name differential and an async crash. In async extraction, a name that still contains a NUL reaches fs and throws, which crashes a process that doesn't catch it. With strip, the surviving characters make node-tar's view of the name differ from other tools'. The affected security path includes /\0.*/, \n, \r. 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.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/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:N/VI:L/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/isaacs/node-tar/security/advisories/GHSA-wpwg-r92p-fjjh> (exploit, 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-140234> (advisory)
- <https://github.com/isaacs/node-tar> (package)

## Sources

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

---

Page: https://cve.day/CVE-2026-140234 · Whole record: https://cve.day/CVE-2026-140234.json · Rebuilt by cve.day 2026-12-02T02:07:24.814Z
