CVE-2026-140238 node-tar - Path Traversal & Remote Code Execution

node-tar < 8.0.0 contains a path traversal caused by newline splitting of PAX extended header records, letting attackers forge entry attributes and overwrite files during extraction, exploit requires Windows strip:1 normalization and npm execution chain.

CVSS base score 7.2 /10
High
CISA KEV
Not listed
Public exploit
Proof of concept available
EPSS
1.17% chance of exploitation in 30 days
View the NVD record ↗

Details

Type
Path Traversal
Impact
Remote Code Execution, File System Write
CVSS vector
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
Published
1 December 2026
Updated
3 December 2026
Weakness
CWE-22

Vendor fix

Update to version 8.0.0 or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

References

← All CVEs