Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft tar with newline-forged PAX path record
-
DeliveryVictim extracts archive or runs npm install
-
ExploitForged record overrides entry, overwrites package.json
-
ExecutionInjected postinstall script executes
-
ImpactArbitrary code execution / file overwrite on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must control part of the material being archived (e.g. a planted filename containing a newline and forged PAX record) or craft the tar archive directly, and the victim must extract/install it (UI:P). Two distinct conditions: (1) Direct node-tar extraction WITHOUT |
| Impact | Signals are moderately but not uniformly high. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, score 7.2) indicates a network-reachable, low-complexity, unauthenticated flaw that nonetheless requires passive user interaction (UI:P) - the victim must extract or |
| Exploit ScenarioDerived | An attacker commits a file whose name embeds a newline plus a forged PAX |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
PAX extended-header record forgery in node-tar before 8.0.0 lets an archive override its own entry attributes - most damagingly path - so extraction writes attacker content to a location the archive structure never declared, escaping an intended prefix or subdirectory inside the extraction target. Direct node-tar extraction without strip is affected on both POSIX and Windows, and on Windows an npm install with strip:1 can additionally have an installed package's package.json overwritten so an injected postinstall script runs, yielding code execution during install. The vendor advisory references a public proof-of-concept bundle, including an end-to-end Windows npm postinstall reproduction; POSIX npm processing with strip:1 is explicitly not affected by that RCE chain, exploitation requires the victim to extract or install the archive (UI:R at the assessed CVSS:3.1 vector AV:N/AC:L/PR:N/UI:R), and the priority label is this_week rather than act_now.
RemediationAI
Vendor-released patch: node-tar 8.0.0, published at https://github.com/isaacs/node-tar/releases/tag/v8.0.0 and referenced by advisory GHSA-mpg7-vg3p-wc3m; the vendor states that updating to 8.0.0 is the only complete fix, and the code change is commit f351e5b4a8916bc8c8f821d0ad926a17d26ea237, which frames PAX records by declared byte length instead of splitting on newlines. Upgrade every dependency path that resolves node-tar below 8.0.0 - including transitive copies pulled in by npm/pacote - and re-verify the resolved version with a lockfile or npm ls tar, since a single remaining 7.x copy keeps the forgery primitive reachable. Patching also removes the related hardening gaps closed in the same commit (attacker-supplied size/global keys ignored during slurp, global PAX applied before local, warning on entries after a lone null block). When upgrade is not immediately possible, treat the deployment scoping as a temporary boundary rather than a fix: the npm postinstall RCE chain requires Windows with strip:1 and does not apply to POSIX npm processing with strip:1, but direct node-tar extraction without strip is exploitable on both POSIX and Windows, so any consumer calling the extraction API directly on attacker-influenced archives remains exposed until 8.0.0 is installed.
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 sits in node-tar's PAX extended-header handling (CWE-22 path traversal, with the advisory also classifying the framing bug as CWE-93 newline injection). The PAX format frames each record as <byte-length> <key>=<value>\n, where the length is authoritative precisely because a value may itself contain a newline. node-tar's parseKV in src/pax.ts instead split the PAX body on \n and validated each line only by a self-consistency check (declaredLen === byteLength(line) + 1), so a newline embedded in any value was reinterpreted as a record boundary and everything after it became an independent, attacker-chosen record; the source itself carried an XXX Values with \n in them will fail this comment. Accepted keys are whitelisted and applied to the entry via Object.assign in ReadEntry#slurp (src/read-entry.ts), so forged path, linkpath, size, uid and similar records override the genuine header values. A complementary creation-side defect exists in encodeField, which serialized values with no escaping, meaning archives produced by node-tar itself from a directory containing an attacker-planted filename can carry forged records. The 8.0.0 fix commit f351e5b4a8916bc8c8f821d0ad926a17d26ea237 rewrites parseKV to walk records strictly by declared byte length, stops at the first malformed record, applies global (gex) PAX values before local ones so local values win, and excludes size, global, and global path/linkpath from slurp; it also hardens null-byte stripping with the /s regex flag and adds a TAR_BAD_ARCHIVE warning for entries following a lone null block. This is distinct from the earlier NUL-in-PAX denial-of-service issue GHSA-gvwx-54wh-qm9j: here the outcome is silent attribute forgery and path overwrite, not a crash.
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
Archive is network-delivered (AV:N) but the victim must extract/install it (UI:R) with no privileges (PR:N); impact is chiefly integrity via path/package.json overwrite (I:H), with limited confidentiality and availability.
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, newline splitting of PAX extended header records permits attacker-controlled entry attributes to be forged. Direct node-tar extraction without strip can overwrite a path within the extraction target. The npm execution chain additionally requires Windows strip:1 normalization, an overwrite of package.json, and later execution of the injected postinstall script; POSIX npm processing with strip:1 is not affected by that chain. This issue is fixed in version 8.0.0.
Articles & Coverage 1
Executive ViewAI
A high-severity flaw in the widely used node-tar library (versions before 8.0.0) allows a crafted archive to redirect extracted files outside their intended location, which on Windows can escalate to code execution during an npm package install. Teams that process third-party or untrusted archives-and anyone whose build/install pipelines touch Windows machines-should care, because a single malicious package download could compromise a developer workstation or CI runner and serve as an entry point into internal systems.
Vendor-released patch: node-tar 8.0.0
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
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-140443
GHSA-mpg7-vg3p-wc3m
NVD
CVE.org
Vulnrichment
Exploit-DB