CVE-2026-140249
7.2HighPublished Dec 1, 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite
High
0CVSS v4.010
- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User action
- Passive
- Impact
- High impact on integrity
- Weakness
- CWE-22, CWE-59
What an attacker gets
An attacker can achieve arbitrary file read and write as the user running the application. They need a user to extract a malicious tarball using the library.
Root cause
The library fails to properly validate symlink chains, allowing them to escape the intended extraction directory.
Affected versions
node-tar 7.5.5 through 7.x before 8.0.0
CVSS v4.0 · 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Fix & remediation
Upgrade to node-tar version 8.0.0 or later. If you cannot update, avoid extracting untrusted archives.
$ npm install node-tar@latestAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
node-tar is a tar archive manipulation library for Node.js. From 7.5.5 until 8.0.0, symlink target escapes the extraction directory through an in-archive symlink chain. An attacker who supplies a tarball can make tar.x() with default options leave symlinks inside the extraction directory that point to any path on the system. tar itself does not write through them, but any later read or write of the extracted files by the application follows them: the demonstration overwrites a file outside the extraction directory and resolves a link to /etc/hostname. This gives arbitrary file read and write as the extracting user. This issue is fixed in version 8.0.0.
References
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1402527.1HighRemote attackers can cause a permanent denial of service by hanging the process during synchronous stream extraction. This requires a user to process a malicious tar archive using the affected synchronous API.
- CVE-2026-1402507.2HighAttackers can overwrite or read files outside the intended directory by providing a malicious tar archive. This requires a user or service to extract a crafted archive using the vulnerable library.
- CVE-2026-1402517.1HighRemote attackers can cause a permanent denial of service by triggering a deadlock during archive extraction. This requires a user or automated process to extract a maliciously crafted tar archive on a POSIX system.
- CVE-2026-1402477.2HighAttackers can write files outside the intended extraction directory by providing a crafted tar archive. This requires a user to extract a malicious archive using the library.
- CVE-2026-1402487.2HighAttackers can write files outside the intended extraction directory by crafting a malicious tar archive. This requires a user to extract the archive using a vulnerable version of the library.
- CVE-2026-1402417.1HighUnauthenticated attackers can crash your Node.js application by providing a malicious tar archive. This occurs when the application attempts to extract or list files using the affected library.