Skip to main content

node-tar CVE-2026-140242

| EUVDEUVD-2026-140448 HIGH
Improper Validation of Specified Quantity in Input (CWE-1284)
2026-12-01 GitHub_M GHSA-ph3c-p786-j4rp
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
    Supply crafted tar archive to consumer
  2. Delivery
    PAX record sets size=Infinity
  3. Exploit
    Missing finiteness check passes >=0 guard
  4. Execution
    Infinity propagates to parser state/numeric encoder
  5. Impact
    Silent entry loss or uncaught crash (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Input size validation
Exploitation Conditions

The target must be a process that parses, extracts, lists, or re-packs an attacker-supplied tar archive using node-tar 7.0.0 through 7.5.23; no authentication, no non-default configuration, and no special privileges are required (default behavior is vulnerable). The specific trigger is a PAX extended header (typeflag x) carrying a non-finite numeric size such as '17 size=Infinity\n', which bypasses the >=0 guard. Limiting factors by impact: the worst outcome (uncaught process crash) requires the archive's entries to be piped back through the packer - e.g. the supported tar.replace()/tar.update() @archive merge path - so services that only extract/list are not crashed; plain extraction or listing instead causes silent loss of all entries after the crafted one, and strict mode surfaces the TAR_BAD_ARCHIVE warning as an error but does not prevent the re-packing crash.

Impact

This is a genuine but bounded availability issue, not a top-tier emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P) and the GHSA advisory agree that an unauthenticated remote attacker who can get an archive parsed needs no special privileges, so attacker-side barriers are low. However, the only demonstrated impacts are denial of service: VC:N and VI:L/VA:H map to silent entry loss (limited integrity) and an uncaught process crash (availability). There is no code execution or data disclosure. SSVC reinforces a measured response: Exploitation=poc (a PoC exists but no in-the-wild use), Automatable=no, Technical Impact=partial, which aligns with the vendor priority label of this_week rather than act_now. The vulnerability is NOT in CISA KEV, and no EPSS score was supplied in the input, so widespread opportunistic exploitation is not evidenced. One cross-source note: the input Tags label this an 'Authentication Bypass', which is inconsistent with CWE-1284 (improper validation of a specified quantity) and the advisory text - this is an input-validation/DoS flaw, not an authentication bypass, and the tag should not drive prioritization. Net: prioritize because of ubiquitous deployment and trivial attacker requirements, but scope the response to availability/integrity of archive-processing services, not RCE.

Exploit ScenarioDerived

An attacker uploads or otherwise supplies a single crafted tar archive to any Node.js service that extracts, lists, or re-packs it with node-tar; the archive contains a PAX record '17 size=Infinity\n'. During extraction the Infinity size makes the parser consume all following entries as one body, silently dropping them; if the service re-packs the entries (e.g. via tar.replace()/tar.update() @archive merge), the numeric encoder throws an uncaught synchronous exception and crashes the host process. A working PoC is included in the GHSA advisory and was reproduced against the published release, and the attack needs no authentication and no user interaction beyond the service processing the file.

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

Denial of service in node-tar 7.0.0 through 7.5.23 lets an unauthenticated attacker who supplies a crafted tar archive to any process that parses, extracts, lists, or re-packs it silently discard entries or crash the host process. A PAX extended header record such as '17 size=Infinity\n' is coerced to the JavaScript number Infinity and accepted because the only guard on the value is a >= 0 check; during plain extraction or listing every entry after the crafted one is consumed as body data, and when entries are piped back through the packer (for example the supported tar.replace()/tar.update() @archive merge path) the numeric header encoder throws an uncaught exception. The vendor advisory publishes a proof-of-concept that reports both impacts reproduced against the current release; there is no evidence of active exploitation, SSVC rates exploitation as poc only and CISA's decision framework marks the change non-automatable with partial technical impact. Fixed in 7.5.24.

RemediationAI

Vendor-released patch: upgrade node-tar to 7.5.24 (https://github.com/isaacs/node-tar/releases/tag/v7.5.24), which adds a digit-only SIMPLE_NUMBER regex and a Number.isSafeInteger() check on PAX size values in src/pax.ts, as shown in commit 6b815b7c10be504a01af2369a270add7099542d8. Where upgrading is not immediately possible, the vendor states no configuration-only mitigation fully removes exposure: services should avoid re-packing untrusted archives through tar.replace()/tar.update() @archive merge paths, since that is the only path leading to the uncaught packer exception - the trade-off is loss of in-place merge functionality, while extract-only and list-only workloads are limited to silent entry loss rather than a crash. Running the parser in strict mode turns the TAR_BAD_ARCHIVE warning into a surfaced error, but this does not prevent the re-packing crash and does not restore entries already swallowed as body data. Archives from untrusted sources should be treated as hostile input to the library until the patched version is deployed.

Affected VersionsENISA

node-tar 7.0.0, < 7.5.24

Affected Packages

npm tar fix: 7.5.24
euvd node_tar fix: 7.5.24

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

tar archives carry metadata in 512-byte headers, and PAX extended headers (typeflag 'x') carry key/value text records that override the following entry's fields. In node-tar's src/pax.ts parseKVLine, the 'size' case computed const s = +v and stored it whenever if (s >= 0) held; because +"Infinity" === Infinity and Infinity >= 0 is true, non-finite and unsafe values passed the check that was written only to reject negative sizes. The secondary guard notNegative() in src/header.ts had the same gap, since Infinity < 0 is false. The value then flowed into the read-entry state machine as remain/startBlockSize/blockRemain, where the exit condition !entry.blockRemain evaluates to false for Infinity and the parser never returns to the header state, silently swallowing all subsequent entries; the same value reached the numeric header encoder during re-packing, where Number.isSafeInteger(Infinity) fails and the encoder throws synchronously with no surrounding catch. This is CWE-1284 (Improper Validation of Specified Quantity in Input) - a missing finiteness/safe-integer bound on a quantity taken from untrusted input. The fix commit 6b815b7c adds a SIMPLE_NUMBER digit-only regex plus a Number.isSafeInteger() check in parseKVLine, with regression tests covering 'Infinity', '1e400', a 400-digit integer, '9007199254740993', 'NaN' and '1.5'.

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 8.2 HIGH

Remote attacker-supplied archive is parsed automatically with no privileges (AV:N/AC:L/PR:N/UI:N); silent entry loss gives limited integrity (I:L) and the uncaught crash gives high availability impact (A:H), with no confidentiality effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/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 - 19:02 EUVD
CVE Published
Dec 01, 2026 - 17:41 cve.org
HIGH 7.1

DescriptionCVE.org

node-tar is a tar archive manipulation library for Node.js. From 7.0.0 until 7.5.24, tar: non-finite PAX size (Infinity) bypasses validation, causing extraction entry loss and an uncaught exception when re-packing. The affected security path includes tar, size, 17 size=Infinity\n. This issue is fixed in version 7.5.24.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 9 npm packages depend on tar (7 direct, 2 indirect)

Ecosystem-wide dependent count for version 7.0.0.

Executive ViewAI

Why It Matters

CVE-2026-140242 is a high-severity denial-of-service vulnerability in node-tar, a widely used library for handling tar archives in Node.js applications. An unauthenticated attacker can supply a crafted archive to cause data loss or crash the host process, disrupting services that process user-uploaded archives. Leadership should prioritize patching because exploitation requires no credentials and can lead to operational outages.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Ubiquitous
node-tar (npm 'tar') is a near-universal Node.js transitive dependency
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
High
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