Skip to main content

node-tar EUVDEUVD-2026-140403

| CVE-2026-140232 HIGH
Improper Neutralization of Null Byte or NUL Character (CWE-158)
2026-12-01 GitHub_M
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 archive with NUL after line terminator
  2. Delivery
    Submit archive to async extraction service
  3. Exploit
    NUL survives line-terminator-blind sanitization (/\0.*/)
  4. Execution
    Node fs.lstat throws in async callback
  5. Impact
    Uncaught 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 (tar.x / tar.extract); this is the primary limiting factor and also the condition that triggers the flaw. Synchronous extraction (UnpackSync) is NOT affected because its filesystem calls are wrapped in local try/catch and fail closed as TAR_ENTRY_ERROR, and tar.t/tar.list never touches the filesystem and does not crash. No authentication is required (PR:N) and no special non-default configuration is needed, but the victim process must be caused to extract the malicious archive (passive user interaction, UI:P). Critically, wrapping the call in try { await tar.x(...) } catch does NOT limit exploitation, because the exception is thrown in a filesystem continuation outside the returned promise and outside the stream error event. The only complete fix stated by the vendor is upgrading to 8.0.0.

Impact

This is a remote, unauthenticated denial-of-service in node-tar (npm tar), versions 7.5.17 up to 8.0.0, scoped to the default asynchronous extraction path. The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H, score 7.1) is internally consistent with the mechanism: a single crafted archive causes an uncaught exception that terminates the extracting process, so VA:H (availability) dominates, VI:L reflects the residual parser-differential (NUL survives where GNU/bsdtar truncate), and UI:P captures that a victim process must extract an attacker-supplied archive. No EPSS score and no KEV status were provided, so there is no signal of active or widespread exploitation - exploitation status is 'no public exploit identified as confirmed working', though the GHSA advisory includes a detailed public PoC reference (see below). The vuln.today decision label is 'this_week', consistent with a credible, low-complexity DoS that is not an emergency: there is no code execution, no confidentiality impact, and no file-integrity impact (the crash occurs at the first lstat, before any filesystem mutation). The practical priority driver is reach rather than severity - tar is one of the most depended-upon packages in the Node.js ecosystem, so any service that ingests untrusted archives (npm ingestion, CI artifact handling, upload/backup processing) is realistically exposed. A notable nuance: this is an incomplete-fix follow-on to CVE-2026-59875/GHSA-gvwx-54wh-qm9j, and the advisory states correct consumer try/catch does NOT protect against it because the throw is raised outside the returned promise and outside the stream error event - a defender who assumes their error handling mitigates this would be wrong.

Exploit ScenarioDerived

An attacker submits a small, specially crafted tar archive (for example a PAX extended header with the record path=p\0q\r\0r, or a plain ustar/GNU-L header with a CR between two NUL bytes) to any service that extracts it with the default asynchronous tar.x/tar.extract API. During async extraction the surviving NUL-bearing path reaches fs.lstat inside a filesystem completion callback, Node core throws ERR_INVALID_ARG_VALUE in that continuation, and the uncaught exception terminates the process. A working public PoC is referenced in the GHSA advisory (an attached zip with build/run scripts reporting 8/8 passing assertions on tar@7.5.22); it is described in the advisory but is not marked in the input as confirmed-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

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

node-tar 7.5.17, < 8.0.0

Affected Packages

euvd node_tar fix: 8.0.0

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

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

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.

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 - 16:57 cve.org
HIGH 7.1

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

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Ubiquitous
node-tar (npm `tar`) is a core, massively-depended-upon Node.js ecosystem library
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

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