Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft tar archive with PAX size/precedence mismatch
-
DeliveryDeliver archive to node-tar-based pipeline
-
ExploitScanner frames different entries than node-tar
-
Executionnode-tar extracts smuggled meta/body bytes
-
ImpactMalicious 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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
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. 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.
Articles & Coverage 1
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
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.
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
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
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-140411
GHSA-qv2w-fc3h-pm27
NVD
CVE.org
Exploit-DB