Skip to main content

node-tar CVE-2026-140236

| EUVDEUVD-2026-140411 HIGH
Interpretation Conflict (CWE-436)
2026-12-01 GitHub_M GHSA-qv2w-fc3h-pm27
7.2
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 PAX size/precedence mismatch
  2. Delivery
    Deliver archive to node-tar-based pipeline
  3. Exploit
    Scanner frames different entries than node-tar
  4. Execution
    node-tar extracts smuggled meta/body bytes
  5. Impact
    Malicious file written past policy check

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Interpretation consistency
Exploitation Conditions

Exploitation requires the attacker to supply a crafted tar archive that node-tar processes (UI:P - the victim must parse/extract it). The default-option parsing-differential variants (x, t, Parser, Unpack, UnpackSync per the advisory) trigger without privileges, but their security impact - smuggling a file past inspection - is only realized where a separate tar tool or scanner frames the same archive and a policy/content check runs before node-tar extracts; if node-tar is the only tool touching the archive, the framing difference has no bypass effect. The maxMetaEntrySize memory-limit bypass (VULN-004) applies under default options. The output-archive variant (VULN-003), which can inject extra members into archives node-tar itself produces, is NOT default: it requires the archive-file input repacking feature (c/r/u with @archive) or Pack.add(ReadEntry). Ordinary creation from filesystem inputs is not affected. Limiting factors: non-weaponized PoC, dependence on a two-tool scan-then-extract workflow for the integrity bypass, and need for the non-default repack feature for the output-archive variant.

Impact

Signals are moderate and partly conditional rather than critical. The CVSS 4.0 base score of 7.2 (AV:N/AC:L/AT:N/PR:N/UI:P) reflects a network-reachable, unauthenticated flaw whose main weight is integrity (VI:H) with only low confidentiality and availability impact. There is no CISA KEV entry and no EPSS score in the provided data, so there is no evidence of active or widespread exploitation; the vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a prioritize-and-patch posture rather than a fire-drill. A public PoC reference exists in the form of self-contained test cases attached to the GHSA advisory, but the input does not mark it as confirmed working exploit code, so PoC availability should not be conflated with in-the-wild use. The real-world severity is driven less by raw reachability than by deployment shape: the integrity impact (smuggling a file past a scanner/policy check, CWE-436 interpretation conflict) only materializes where a separate tar tool inspects an archive before node-tar extracts it, and the most dangerous output-archive variant requires the non-default repacking feature. Net: a genuine but context-dependent priority - its weight comes mainly from node-tar's enormous deployment footprint, not from confirmed exploitation.

Exploit ScenarioDerived

An attacker submits a crafted tar archive to a service that scans or policy-checks archives before node-tar extracts them. Because node-tar applies PAX size values to GNU/PAX meta entries and frames the archive body differently from other tar implementations, the pre-extraction scanner sees a different set of entries than node-tar does, letting a file the check never inspected be written on extraction. A public PoC reference (test bundle) is attached to the GHSA advisory but is not verified as weaponized exploit code; exploitation requires the victim to process the attacker-supplied archive (UI:P).

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

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

Alert me

AnalysisAIv1 – Dec 02, 2026

Archives parsed by node-tar (npm 'tar') before 8.0.0 can be framed differently from how other tar implementations frame the same bytes, because ReadEntry still applies PAX/GNU extended-header size values to metadata entries and the parser uses that size to decide how many body bytes belong to the meta entry. An attacker who supplies a crafted archive can therefore hide a file from a scanner or policy check run before extraction, exceed the maxMetaEntrySize memory limit under default options, and - only when the non-default repacking surface is used (c/r/u with @archive or Pack.add(ReadEntry)) - inject extra members into archives node-tar itself writes. A public proof-of-concept exists as self-contained demonstration tests published with the advisory against an unmodified 7.5.22 build; there is no CISA KEV listing and no confirmed active exploitation, and the integrity bypass is only realized in scan-then-extract workflows where a second tar tool frames the same archive. Fixed in 8.0.0.

RemediationAI

Upgrade to node-tar 8.0.0 (release tag https://github.com/isaacs/node-tar/releases/tag/v8.0.0, commit https://github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237) as described in advisory https://github.com/isaacs/node-tar/security/advisories/GHSA-qv2w-fc3h-pm27; note that 7.5.16 / commit 21a8220 was an earlier partial fix for the related GHSA-vmf3 issue and does not close these paths, so pinning to any 7.x release is not sufficient. The advisory does not document a workaround, so where immediate upgrade is not possible the exposure must be narrowed architecturally: do not exercise the repacking surface on untrusted input (avoid c/r/u with @archive and Pack.add(ReadEntry)), which removes the output-archive member-injection variant at the cost of losing archive-to-archive rewriting, and do not treat a second tar tool's listing or a pre-extraction policy scan as authoritative for archives that node-tar will parse, since the framing differential is precisely what defeats that check - the trade-off is that the default-option smuggling and maxMetaEntrySize bypass remain until the upgrade is applied.

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

The flaw is an interpretation conflict (CWE-436) in tar framing, not a memory-safety bug. node-tar's ReadEntry class copies extended-header values from pending PAX (x) and GNU long-name/long-link (t) records onto metadata entries, and src/parse.ts then uses that PAX-supplied size to determine how many bytes are consumed as the meta entry body. Other tar implementations frame those records differently, so the same archive yields different entry boundaries to node-tar than to a scanner. The advisory enumerates four related inconsistencies: VULN-001, the size-on-meta-entry framing differential that the earlier GHSA-vmf3 fix (7.5.16, commit 21a8220, which only stopped Header.decode from applying extended values to non-file blocks) was meant to prevent; VULN-004, where maxMetaEntrySize is checked against the PAX-overridden entry.size while the meta buffer actually accumulates header.size bytes, so the limit can be exceeded; VULN-005, where ReadEntry applies the global header after the local one, reversing PAX precedence and applying a global linkpath that Header excludes (commit af04392 fixed the ordering only in Header); and VULN-003, where a repack writes a header size taken from entry.size but a body length taken from the block count, so a mismatch appends extra members to the output archive. The 8.0.0 fix (commit f351e5b4) stops meta entries from slurping extended headers, applies global before local so local values win, excludes size and global from slurp, rewrites PAX record parsing to be length-prefixed (so values containing newlines no longer break the naive line split), hardens NUL-terminated string handling with the /s regex flag, and warns on entries appearing after a lone null block. Default-option exposure covers x, t, Parser, Unpack and UnpackSync; the output-archive variant is not default.

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.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
vuln.today AI 7.6 HIGH

Crafted archive triggers the parser differential reliably (AC:L, PR:N) but the victim must process it (UI:R); integrity-high from content smuggling, with only low confidentiality and availability (meta-size) impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/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
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
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:14 cve.org
HIGH 7.2

DescriptionCVE.org

node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, ReadEntry still applies PAX size values to GNU and PAX metadata entries, causing node-tar to frame archive bodies differently from other tar implementations. Related inconsistencies can bypass maxMetaEntrySize and reverse local-versus-global PAX precedence. The output-archive variant requires the archive-file input repacking feature or Pack.add(ReadEntry); a mismatch between the declared header size and copied body bytes can create additional members in the output archive. Ordinary creation from filesystem inputs is not that repacking surface. This issue is fixed in version 8.0.0.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

CVE-2026-140236 (HIGH, CVSS 7.2) affects node-tar, the widely used npm 'tar' library embedded across countless JavaScript build pipelines, CI/CD tooling, and package-handling systems. Because it allows a crafted archive to conceal files from scanners or policy checks prior to extraction, any workflow that inspects an archive with one tool and extracts it with node-tar can be bypassed, exposing the organization to hidden-file injection and potential supply-chain compromise. Leadership should care because archive inspection is a core control in dependency and artifact pipelines; the flaw erodes that control wherever node-tar below 8.0.0 is in use.

Business Impact: High
Compensating Controls

Apply vendor patch (upgrade to tar 8.0.0). Until then, avoid the non-default repacking surface and ensure the same tar implementation performs both inspection and extraction.

Threat Intelligence Overview

Prevalence
Ubiquitous
near-universal Node.js dependency, hundreds of millions of weekly npm downloads
Threat Intel
1
1 source
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 Yes
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
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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