A crafted Global PAX header can put an attacker-controlled linkpath on entries returned by tar.Parser. The maintainer says even ordinary file and directory entries can carry that value without a warning under strict: true.The risk depends on how an application handles those entries. Direct tar.Parser or tar.list() consumers that trust entry.linkpath may read or write outside their intended directory. The GitHub-sourced NVD record lists CVSS 4.0 7.2 (High); neither record supplies a CVSS 3.1 score. A published reproduction shows the parser behavior in a test environment, not observed exploitation in deployed systems. Teams using a vulnerability intelligence platform should still trace their own archive processing paths.
What it allows
How Does CVE-2026-140239 Bypass Global PAX Validation?
The maintainer describes two places that apply Global PAX fields. Header decoding excludes the global linkpath, so its validation sees an empty value and raises no warning. A later ReadEntry step does not apply the same filter. It copies the supplied value into entry.linkpath, including on entries that are not links.
An application may then treat that parser value as a safe path or symbolic-link target. If it creates a link or accesses a file without checking the resolved destination, the value may escape the intended directory. The advisory demonstrates this downstream-consumer chain with a controlled reproduction against tar@7.5.22. That demonstration establishes a possible impact for a vulnerable consumer; it does not identify a live intrusion.
The extraction path has an important boundary. The maintainer says tar.x() and tar.extract() use a separate Unpack guard that rejects escaping link targets. Applications using only that extraction path do not have this specific parser-consumer exposure.
CISA’s 30 November 2026 KEV catalog did not list this CVE. The node-tar 8.0.0 security update provides release context for this and a separate archive handling issue.
Who is affected
Which node-tar Versions and Applications Need Review?
The maintainer lists npm tar versions before 8.0.0 as affected and 8.0.0 as patched. The relevant exposure is an application that parses a less-trusted archive with tar.Parser or tar.list(), then uses entry.linkpath to make filesystem or routing decisions. Archive inspection tools, build pipelines and custom extraction code warrant a code-path review when they use those APIs.
First identify both direct and transitive installations of npm tar. Then check whether archive input crosses a trust boundary before a direct parser consumer uses link targets. A lockfile alone may not prove the version running in every service or build image. The software dependency risk guide describes how to assign owners and verify package remediation.
Timeline
- 2026-11-28
The maintainer published the GHSA and identified 8.0.0 as patched.
- 2026-12-01
NVD published the CVE record.
- 2026-12-02
The GitHub advisory record was updated and reviewed.
What to do
-
Inventory parser consumers
Find installed npm tar versions and identify direct tar.Parser or tar.list consumers that handle less-trusted archives. Include indirect dependencies and build tools.
-
Upgrade and verify
Upgrade affected tar installations to 8.0.0 or later. Confirm the resolved package version in lockfiles, deployed services and build environments after updating.
-
Validate destinations in custom code
Where a parser consumer uses entry.linkpath, resolve the destination against the intended directory and reject escapes before file access or symbolic-link creation. This is our defensive recommendation from the advisory’s impact description.
-
Review archive-processing records
Investigate unusual parser warnings, unexpected symbolic links or file access outside archive working directories. Absence of a strict-mode warning does not exclude this flaw; these are investigation leads, not published detection signatures.
What Brandefense can do
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2026-140239 in Brandefense Atlas
The Atlas record of CVE-2026-140239: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
Frequently Asked Questions
What version fixes CVE-2026-140239?
The maintainer lists npm tar 8.0.0 as the patched version. Verify the resolved version in each affected application and build environment.
Are tar.x() and tar.extract() affected by this specific flaw?
The maintainer says their Unpack guard rejects an escaping link target. The exposure described here concerns direct parser or listing consumers that trust entry.linkpath.
Does the published proof of concept establish active exploitation?
No. The advisory presents a controlled reproduction against tar 7.5.22 and a modeled downstream consumer. It does not document exploitation in deployed systems.
Sources
- node-tar Global PAX linkpath advisoryisaacs/node-tar via GitHub Security Advisories
- CVE-2026-140239 NVD recordNIST NVD
- Known Exploited Vulnerabilities catalogCISA