Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft tar archive with NUL after line terminator
-
DeliverySubmit archive to async extraction service
-
ExploitNUL survives line-terminator-blind sanitization (/\0.*/)
-
ExecutionNode fs.lstat throws in async callback
-
ImpactUncaught exception terminates extracting process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Metacharacter neutralization
|
| Exploitation Conditions | Exploitation requires that the target application extract an attacker-supplied archive using the DEFAULT asynchronous API ( |
| Impact | This is a remote, unauthenticated denial-of-service in node-tar (npm |
| Exploit ScenarioDerived | An attacker submits a small, specially crafted tar archive (for example a PAX extended header with the record |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
An unauthenticated remote denial-of-service affects the npm tar package (node-tar) from 7.5.17 up to, but not including, 8.0.0: an archive containing NUL bytes placed after a CR or LF in a path or linkpath field survives the library's sanitization regex and is later passed to Node.js filesystem APIs during asynchronous extraction, where Node core throws ERR_INVALID_ARG_VALUE outside any node-tar try/catch and the exception surfaces as an uncaughtException that kills the extracting process. Any service that ingests attacker-supplied archives through the default asynchronous tar.x / tar.extract API is affected, and wrapping the call in try/await/catch or listening for the stream error event does not contain the crash; synchronous extraction and listing are not affected. The flaw is an incomplete fix of the earlier GHSA-gvwx-54wh-qm9j (CVE-2026-59875) and applies to the same regex idiom in the PAX, GNU L/K and raw-ustar header sinks, with the vendor shipping 8.0.0 as the fix; a public PoC reference exists (an attached PoC archive with per-assertion test output), which is not independently verified as working exploit code, and there is no CISA KEV entry indicating active exploitation.
RemediationAI
Upgrade to tar 8.0.0 (npm install tar@8.0.0), the release the vendor describes as the only complete fix; it applies the dotAll replace(/\0.*/s, '') correction across src/pax.ts, src/parse.ts and src/header.ts, replaces the line-based PAX key/value parser with a length-prefixed one that cannot be split by embedded newlines, and adds parse-differential regression tests. See the advisory at https://github.com/isaacs/node-tar/security/advisories/GHSA-xv7h-rgq8-7m7v, the commit https://github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237 and the release notes https://github.com/isaacs/node-tar/releases/tag/v8.0.0. Until upgrading, note that wrapping extraction in try { await tar.x(...) } catch and attaching an error handler to the Unpack stream do not mitigate this flaw, because the TypeError is raised in a filesystem continuation outside both the returned promise and the stream error event; the one behaviour the advisory confirms as safe is synchronous extraction via UnpackSync, which wraps each filesystem call locally and fails closed as a TAR_ENTRY_ERROR warning - the trade-off being that it blocks the event loop and will not suit high-throughput or concurrent ingestion services, and pre-screening with tar.t/tar.list is not a reliable filter because listing does not crash on, or reject, the NUL-bearing path. Where the library version cannot be changed immediately, running archive extraction as a supervised child process whose termination is restarted (rather than inside the request-serving process) limits each malicious archive to a crash of the disposable worker, at the cost of added process-management complexity and lost work for in-flight extractions.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-158 (Improper Neutralization of Null Byte or NUL Character), reached through a JavaScript regular-expression subtlety. Three sinks terminate archive-controlled strings with replace(/\0.*/, ''): src/pax.ts (the PAX extended-header value join, line patched by 7.5.17), src/parse.ts (GNU L long path and K long linkpath handling), and src/header.ts decString, which decodes every raw ustar header field. A bare . in a JS regex does not match line terminators (\n, \r, \u2028, \u2029), so the match stops at the first CR/LF following the first NUL and replace preserves the remainder of the string including any later NUL byte - for example p\0q\r\0r becomes p\r\0r. Header decoding then copies PAX-provided fields verbatim, ReadEntry applies normalizeWindowsPath (identity on POSIX), and the extraction path check splits on / looking only for .. segments and absolute roots, so a NUL that appears after the cwd prefix passes the containment check. path.resolve performs no filesystem access and tolerates embedded NULs; the subsequent fs.lstat(String(entry.absolute)) inside an MKDIR completion callback is rejected synchronously by Node core with TypeError [ERR_INVALID_ARG_VALUE] inside the FSReqCallback.oncomplete continuation, where no node-tar frame is wrapped, so the throw becomes an uncaughtException. Synchronous extraction wraps every filesystem call locally and degrades to a TAR_ENTRY_ERROR warning, and tar.t/tar.list never touch the filesystem, so neither crashes - though listing still emits the NUL-bearing path, preserving a parser-differential (CWE-436) exposure against tools such as GNU tar and bsdtar that truncate at the first NUL. The 8.0.0 commit switches the idiom to replace(/\0.*/s, '') (dotAll), rewrites the PAX key/value parser to use record-length prefixes instead of naive line splitting, makes GNU L/K assignments non-overwriting (??=), warns on entries after a lone null block, and adds parse-differential regression tests.
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
Remote crafted archive, no auth (PR:N) but victim must extract it (UI:R); process-termination gives A:H, NUL-path parser differential gives I:L, no confidentiality impact.
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. From 7.5.17 until 8.0.0, during asynchronous extraction, string sanitization removes content after a NUL byte only within the same line. A line terminator followed by a later NUL byte can therefore leave that NUL in a pathname passed to an asynchronous filesystem operation, causing an uncaught exception and process termination. Listing and synchronous extraction do not expose this process-crash behavior. This issue is fixed in version 8.0.0.
Articles & Coverage 1
Executive ViewAI
CVE-2026-140232 is a high-severity unauthenticated remote denial-of-service vulnerability in the widely-used npm tar package (node-tar) that can crash any service processing attacker-supplied archives via asynchronous extraction. This affects production systems relying on tar.x or tar.extract, potentially causing service outages and business disruption. Leadership should prioritize patching to version 8.0.0 to mitigate risk.
Apply vendor patch.
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-140403
NVD
CVE.org
GitHub
Exploit-DB