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

Published Dec 1, 2026 CVSS 4.0 · 7.1 High EPSS n/a KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title 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
Weaknesses CWE-158
References
Metrics cvssV4_0

{'score': 7.1, 'vector': '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'}

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Dec 1, 2026, 5:09 PM
Reserved
Nov 30, 2026, 10:04 PM
Status
Deferred
Published
Dec 1, 2026, 6:17 PM
Modified
Dec 1, 2026, 6:17 PM