With default extraction options, a crafted archive can leave a symbolic link pointing outside the destination directory. The maintainer says extraction raises no warning for this behavior.The risk arises when an application later reads or writes through that link. Node-tar itself does not perform that outside read or write during the demonstrated extraction. Teams using a vulnerability intelligence platform should map the package to the archive workflows they operate.GitHub's advisory rates the issue High, while its CVSS 4.0 score is 7.2. The public reproduction demonstrates a flaw under controlled conditions; it does not document exploitation in a deployed system.
What it allows
How Does CVE-2026-140249 Escape the Extraction Directory?
The archive contains a directory and two symbolic links arranged as a chain. Node-tar validates a normalized target that appears to stay inside the extraction directory. It then creates the link using the original target, which the operating system can resolve through the first link and outside the directory.
The maintainer reports that the link can be created with default tar.x() options and no warning. Its reproduction covers synchronous and asynchronous extraction on an affected release. The advisory explains that the earlier chain fix blocked a hardlink outcome, while the symbolic link still remained possible.
Impact depends on later application behavior. A subsequent read or write through the extracted link can reach a file outside the extraction directory with the extracting user's permissions. The advisory's controlled reproduction shows an outside write and an outside path resolution; it is not evidence of an observed campaign.
The advisory was published on 28 November 2026. CISA's KEV catalog version dated 30 November does not list this CVE. That catalog status does not establish whether exploitation has occurred elsewhere.
Who is affected
Which CVE-2026-140249 Versions and Workflows Need Action?
The maintainer lists npm tar versions at least 7.5.5 and below 8.0.0 as affected. Version 8.0.0 is patched. The advisory says 7.5.3 and 7.5.4 rejected the demonstrated chain; it identifies 7.5.5 as the regression point.
Prioritize applications that accept archives from less-trusted sources and later open paths in the extracted tree. The advisory says applications that filter link entries for untrusted input are not affected by this path. Check both direct and transitive package versions in services, developer tools, build jobs and deployment images.
Upgrade affected installations and verify the resolved version in every deployed environment. The node-tar 8.0.0 security update covers the release context. Our software dependency risk guide helps assign ownership across build and production workflows.
Version 8.0.0 also changes the package API and requires Node.js 22 or later, according to its release notes. Test archive extraction callers during migration. Until the upgrade is complete, reject untrusted archives containing link entries and review later file operations against the intended extraction boundary.
Timeline
- 2026-11-28
The node-tar advisory was published 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
-
Locate archive workflows
Inventory direct and transitive npm tar installations. Identify applications that process less-trusted archives and later read or write paths in the extracted tree.
-
Upgrade and verify
Upgrade affected installations to tar 8.0.0 or later. Confirm the resolved version in lockfiles, deployed services, build jobs and images. Test callers against the version 8 API.
-
Restrict risky inputs
Until upgraded, reject link entries in archives from untrusted sources. This follows the maintainer's stated condition for applications that filter such entries.
-
Review downstream file access
Check whether code follows extracted symbolic links during later reads or writes. Resolve each destination against the extraction boundary; review unexpected outside file access as an investigation lead.
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-140249 in Brandefense Atlas
The Atlas record of CVE-2026-140249: 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
Which node-tar version fixes CVE-2026-140249?
The maintainer identifies npm tar 8.0.0 as patched. Check the resolved version in every affected service and build environment, then test the version 8 API changes.
Does extraction itself overwrite files outside the destination?
The maintainer says node-tar creates an outside-pointing symbolic link but does not write through it during extraction. A later application read or write must follow that link.
Does the published proof of concept establish active exploitation?
No. It demonstrates the flaw in a controlled environment. The advisory does not document exploitation in a deployed system, so the profile marks exploitation as unknown.
Sources
- node-tar in-archive symlink chain advisoryisaacs/node-tar via GitHub Security Advisories
- node-tar v8.0.0 release notesisaacs/node-tar
- CVE-2026-140249 NVD recordNIST NVD
- Known Exploited Vulnerabilities catalogCISA