Isaacs node-tar
node-tar parses PAX extended headers by newline-splitting instead of length-delimiting, causing record dropping and forged-field injection
node-tar is a tar archive manipulation library for Node.js. From 7.5.0 until 8.0.0, parseKV splits length-delimited PAX records on newline characters, so a newline inside a record value can drop the original field and turn a trailing fragment into a forged path, size, linkpath, or other entry attribute. Default extraction confines a forged path to the extraction root. When preservePaths is enabled, the forged path may instead be absolute or contain a parent-directory component. This issue is fixed in version 8.0.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 7.5.0, < 8.0.0
Fixed in 8.0.0
Mitigation
Upgrade node-tar to 8.0.0 or later.
References
- Vendor advisory github.com/isaacs/node-tar/security/advisories…
- Patch github.com/isaacs/node-tar/commit/f351e5b4a891…
- Release notes github.com/isaacs/node-tar/releases/tag/v8.0.0
Timeline
Days relative to CVE publicationFirst public PoC 1.3 days after publication; not in CISA KEV. First PoC: googlesky/CVE-2026-140235 (created 3 Dec 2026, found by us: 3 Dec 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| googlesky/CVE-2026-140235 | 3 Dec 2026 +1.3 d | 3 Dec 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.