CVE-2026-140246

7.2High

Published Dec 1, 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite

7.2CVSS

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

Attackers can use crafted archives to create symbolic links that point outside the intended extraction directory. This allows unauthorized access to files on the host filesystem when a user extracts a malicious tarball.

Root cause

The library incorrectly handles backslash separators during path containment checks on non-Windows systems, allowing path traversal via symbolic links.

Affected versions

node-tar prior to 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 upgrade, avoid extracting untrusted tar archives.

remediation — bash
$ npm install node-tar@latest

AI-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. Prior to 8.0.0, on non-Windows hosts, SymbolicLink extraction applies Windows-style backslash separator semantics during the linkpath containment check but passes the raw linkpath to the filesystem, where a backslash is an ordinary filename character. A crafted archive can therefore plant a link inside the extraction directory that resolves to a host path outside it. A later consumer can read through the link, but node-tar does not itself establish an arbitrary-write impact. This issue is fixed in version 8.0.0.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-140246

More fully triaged vulnerabilities you may want to check next.