CVE-2026-140239

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-20, CWE-345

What an attacker gets

Attackers can perform arbitrary file reads or writes by providing a malicious tar archive. This requires a user or service to process a crafted archive using the tar.Parser or tar.list methods.

Root cause

The parser fails to validate linkpath values in PAX Global Extended Headers, allowing path traversal.

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 8.0.0 or later. If you cannot upgrade, ensure your application does not trust the linkpath property returned by tar.Parser or tar.list.

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, a PAX Global Extended Header containing linkpath can populate entry.linkpath on every entry returned by tar.Parser without a strict-mode warning. Direct tar.Parser or tar.list consumers that trust this value can create paths or symlinks outside their intended directory, resulting in arbitrary file read or write. Node-tar's own tar.x and tar.extract operations are not affected because Unpack separately rejects an escaping linkpath. This issue is fixed in version 8.0.0.

References

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

More fully triaged vulnerabilities you may want to check next.