Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft tar name with NUL before line terminator
-
DeliverySubmit archive to async extraction service
-
ExploitTruncation regex leaves NUL in name
-
ExecutionUncaught fs throw or strip path mismatch
-
ImpactNode.js process crash or security-check bypass
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Metacharacter neutralization
|
| Exploitation Conditions | Requires the target to parse or extract an attacker-controlled tar archive using node-tar prior to 8.0.0, where a name field holds a NUL byte followed by \n, \r, U+2028 or U+2029 (surviving the /\0.*/ truncation in ustar names, GNU long-name/long-link data, and PAX values). Two distinct outcomes: the async crash path triggers under default options during asynchronous extraction (async x) when the NUL-bearing name reaches fs and the host process does not catch the thrown error; the name-differential path additionally requires the strip option to be in use. Limiting factors: exploitation depends on the application ingesting untrusted archives (UI:P - a victim or process must handle the crafted file), the crash only manifests in processes that leave the async fs error uncaught, and the differential is contingent on the non-default strip option. |
| Impact | This is a genuine but bounded this-week priority rather than an emergency. The supplied CVSS 4.0 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, score 7.1 High) describes a network-reachable, low-complexity flaw with no attacker privileges (PR:N) but requiring passive user/process interaction (UI:P) - the victim must process an attacker-supplied tar archive. Impact is dominated by availability (VA:H, an uncatchable async crash) with low integrity impact (VI:L, the name differential) and no confidentiality impact (VC:N), which matches CWE-158 (improper neutralization of null byte) and the 'Denial Of Service' tag. SSVC reinforces moderate urgency: Exploitation=poc (not active), Automatable=no, Technical Impact=partial, and the vuln.today decision label is 'this_week', not act_now/emergency. The advisory references proof-of-concept tests (exploit_tests/VULN-006 and VULN-021 with recorded evidence), so a public PoC reference exists; it is not verified here as working weaponized exploit code. No CISA KEV listing and no EPSS score are present in the input, so widespread opportunistic exploitation is not evidenced - consistent with Automatable=no (the attacker cannot trivially fan this out; it depends on a target that ingests untrusted archives). Net: real and worth patching promptly because node-tar is ubiquitous, but the impact ceiling is a DoS/parse-differential, not RCE or data disclosure. |
| Exploit ScenarioDerived | An attacker crafts a tar archive whose entry name contains a NUL byte immediately followed by a line terminator (\n, \r, U+2028 or U+2029), defeating node-tar's /\0.*/ truncation. When a Node.js service that asynchronously extracts untrusted archives (upload handlers, package tooling, CI pipelines) processes it on node-tar < 8.0.0, the surviving NUL reaches fs and throws an uncaught error, crashing the process; alternatively, with the strip option, the surviving characters make node-tar resolve a different path than other tools, enabling a parse differential. A public PoC reference exists in the advisory (control-and-attack tests against 7.5.22, run on macOS); it is not verified as working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Crafted tar archives whose name or link-path field carries a NUL byte followed by \n, \r, U+2028 or U+2029 slip past node-tar's truncation regex and reach the filesystem layer, crashing Node.js processes that extract them asynchronously without catching the error, and producing filenames that differ from what other tar tools see. Affected are npm tar releases up to and including 7.5.0 and any version before 8.0.0; exploitation requires the application to parse or extract an attacker-supplied archive, so unauthenticated remote attackers must still get a victim or automated process to ingest the file (UI:P). Public proof-of-concept test cases accompany the upstream advisory (SSVC exploitation status: poc) but active exploitation is not confirmed; the issue is scored as a this-week priority rather than an emergency because the crash only manifests where the async fs error is left uncaught and the name-differential outcome requires the non-default strip option.
RemediationAI
Vendor-released patch: node-tar 8.0.0 (npm tar 8.0.0), published at https://github.com/isaacs/node-tar/releases/tag/v8.0.0, with the code change in commit f351e5b4a8916bc8c8f821d0ad926a17d26ea237 and details in advisory GHSA-wpwg-r92p-fjjh. Upgrading the dependency (directly or via overrides/resolutions in the consuming application's lockfile) is the only documented complete fix; the advisory states no vendor workaround. Where an upgrade cannot be shipped immediately, two concrete exposure reducers follow from the described mechanism, each with a trade-off: wrap asynchronous extraction (x) in error handling that catches and logs the thrown fs error instead of letting it terminate the process - this removes the crash outcome but leaves the archive parsed with a NUL-bearing name and therefore leaves the name-differential risk in place; and avoid depending on the strip option for path normalization, since the name-differential outcome additionally requires strip to be enabled - this narrows the parser-disagreement path but does not prevent the NUL from surviving into the header, and applications relying on strip will need to normalize paths themselves. Neither measure addresses the underlying truncation defect, so treat 8.0.0 as required, and prefer rejecting archives whose entries duplicate or mismatch names as seen by an independent tar implementation when processing untrusted uploads.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-158 (Improper Neutralization of Null Byte or NUL Character) is the root cause: name strings are trimmed with the regex /\0.*/, which lacks the s flag, so the dot does not match \n, \r, U+2028 or U+2029. When one of those characters follows the NUL, matching stops early, part of the name is removed and the NUL survives in the parsed header. The pattern was introduced by the earlier GHSA-gvwx fix (7.5.17, commit 7a635c2) for PAX values on the assumption that PAX records cannot contain line terminators, and the same expression is reused for ustar names and for GNU long-name (L) and long-link (K) data. Reported vulnerable sites are src/header.ts:358 (ustar names), src/parse.ts:390 (GNU L) and :397 (GNU K), and src/pax.ts:179 (the GHSA-gvwx fix site). The affected product is tracked as cpe:2.3:a:isaacs:node-tar:*:*:*:*:*:*:*:*. The 8.0.0 commit f351e5b4a8916bc8c8f821d0ad926a17d26ea237 switches those replacements to /\0.*/s, replaces PAX line-by-line parsing with a length-delimited record parser that tolerates newlines inside values, and adds related parser hardening (warnings for entries after a lone null block, ordering of global versus local extended headers, and exclusion of size/global/path/linkpath keys when applying pending extended headers).
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-delivered crafted archive, low complexity, no privileges; victim must process the file (UI:R); availability-dominant uncatchable crash (A:H), minor integrity via name differential (I:L), no confidentiality.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Articles & Coverage 1
Executive ViewAI
A high-severity vulnerability (CVE-2026-140234) in the widely used npm tar library (node-tar) can cause Node.js process crashes when extracting maliciously crafted archives. Organizations using affected versions (up to 7.5.0 and pre-8.0.0) in their applications or build pipelines are at risk of service disruption and inconsistent file handling, which could lead to operational outages and data integrity issues. Leadership should prioritize patching to maintain availability and prevent potential denial-of-service attacks.
Apply vendor patch. Additionally, until patching is complete, catch asynchronous file system errors during tar extraction, avoid using the strip option, and validate archive filenames before processing.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-140409
GHSA-wpwg-r92p-fjjh
NVD
CVE.org
Vulnrichment
Exploit-DB