Skip to main content

node-tar CVE-2026-140234

| EUVDEUVD-2026-140409 HIGH
Improper Neutralization of Null Byte or NUL Character (CWE-158)
2026-12-01 GitHub_M GHSA-wpwg-r92p-fjjh
7.1
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft tar name with NUL before line terminator
  2. Delivery
    Submit archive to async extraction service
  3. Exploit
    Truncation regex leaves NUL in name
  4. Execution
    Uncaught fs throw or strip path mismatch
  5. Impact
    Node.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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

node-tar < 8.0.0

Affected Packages

npm tar fix: 8.0.0
euvd node_tar fix: 8.0.0

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

Vendor (GitHub_M) PRIMARY 7.1 HIGH
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
vuln.today AI 7.1 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 18:03 EUVD
CVE Published
Dec 01, 2026 - 17:09 cve.org
HIGH 7.1

DescriptionCVE.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.

Executive ViewAI

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

Prevalence
Ubiquitous
node-tar is a core Node.js tar library, a dependency of npm itself
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org Vulnrichment GHSA CIRCL GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy