---
title: "CVE-2026-140238: node-tar - Path Traversal & Remote Code Execution"
description: "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."
url: https://panop.io/threat-heartbeat/CVE-2026-140238/
---

# 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 ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-140238)

## 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](https://cwe.mitre.org/data/definitions/22.html)

## 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

- [https://nvd.nist.gov/vuln/detail/CVE-2026-140238](https://nvd.nist.gov/vuln/detail/CVE-2026-140238)
- [https://github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237](https://github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237)
- [https://github.com/isaacs/node-tar/releases/tag/v8.0.0](https://github.com/isaacs/node-tar/releases/tag/v8.0.0)
- [https://github.com/isaacs/node-tar/security/advisories/GHSA-mpg7-vg3p-wc3m](https://github.com/isaacs/node-tar/security/advisories/GHSA-mpg7-vg3p-wc3m)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
