home / blog
2026-12-02 · high
CVE-2026-140238: Critical vulnerability in node-tar enables RCE
Critical vulnerability in node-tar (< 8.0.0): PAX forgery and potential RCE

CVE-2026-140238 is a critical vulnerability in the node-tar library for Node.js that allows attackers to forge PAX entry attributes through newline splitting in extended header records. This manipulation can lead to path overwrites within the extraction target, potentially resulting in remote code execution (RCE) via npm postinstall scripts. The vulnerability is particularly severe in Windows environments where the npm execution chain requires strip:1 normalization.
The vulnerability severity is classified as high with a CVSS score of 7.2. The bug was officially published on December 1, 2026, and there are already public repositories containing proof-of-concept and exploit code. The consistency between the CVSS score, declared severity, and existence of public exploits confirms the real-world impact of the vulnerability.
To defend against this vulnerability, an immediate update of the node-tar library to version 8.0.0 or later is recommended. System administrators should also verify their dependencies and ensure that any library usage does not include extractions from untrusted sources. Reviewing tar archive extraction procedures in Windows environments is particularly recommended.
At a glance
- What
- PAX attribute forgery in node-tar that allows path overwrite and potential remote code execution
- Severity
- High (CVSS 7.2)
- Affected versions
- node-tar versions prior to 8.0.0
- Fix
- Update to version 8.0.0
- Status
- Officially published (2026-12-01)
- Action
- Immediate update of the library to version 8.0.0
Sources: NVD, CVE-2026-140238