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
RSS Feed
HIGH
CVE-2026-140234
GHSA-wpwg-r92p-fjjh
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.
Affected Packages
No package information available.
Actions
Advisory Details
| Published: | December 01, 2026 about 17 hours ago |
| Updated: | December 01, 2026 about 13 hours ago |
| CVSS Score: | 7.1 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 |
| Source: | Osv |
| UUID: | CVE-2026-140234 |
References
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140234.json
- https://github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237
- https://github.com/isaacs/node-tar/releases/tag/v8.0.0
- https://github.com/isaacs/node-tar/security/advisories/GHSA-wpwg-r92p-fjjh
- https://nvd.nist.gov/vuln/detail/CVE-2026-140234