The maintainer says tar.x() can extract a link that resolves outside its destination when a crafted archive contains a chain of links. The affected range is 7.5.5 through releases before 8.0.0.The escaping link matters when an application later reads, serves or writes a path beneath the extracted tree. That later access can reach files outside the extraction directory with the application's privileges. Teams can use a vulnerability intelligence platform as a CVE reference while tracing their own archive workflows. The published reproduction demonstrates this behavior in a test environment, not an observed intrusion.
What it allows
How Does CVE-2026-140250 Bypass Symlink Checks?
The maintainer describes two checks that normalize a link target before considering links already created on disk. A crafted archive can create one symbolic link and then a second link whose target passes through the first. The lexical checks see an apparently contained path, while filesystem resolution reaches outside the extraction root.
The maintainer's controlled reproduction used default tar.x() options and showed both an escaping link and later access to files outside the extraction directory. The archive alone did not write an external file through that link. The demonstrated read or write requires the application to follow the extracted path afterward.
This distinction changes the exposure assessment. Services that extract less-trusted archives and then serve, inspect, copy or modify extracted paths face the described follow-on risk. The node-tar 8.0.0 security update covers this and a separate archive handling flaw. CISA's 30 November 2026 KEV catalog did not list CVE-2026-140250.
Who is affected
Which CVE-2026-140250 Versions Need Action?
The maintainer lists npm tar versions from 7.5.5 up to, but not including, 8.0.0 as affected. Version 8.0.0 is the patched release. The advisory's measured matrix says 7.5.3 and 7.5.4 rejected the chained link in its test, so this issue is a regression beginning with 7.5.5.
Inventory direct and transitive installations in services, build workers and tools that unpack supplied archives. Prioritize workflows that use tar.x() on less-trusted input and then access extracted paths. The software dependency risk guide gives a broader ownership and remediation workflow. After an update, verify the resolved package version in each deployed runtime and build image.
Timeline
- 2026-11-28
The node-tar advisory identified the chained-link flaw and named 8.0.0 as patched.
- 2026-12-01
NVD published the CVE-2026-140250 record.
What to do
-
Inventory archive workflows
Find installed npm tar versions, including indirect dependencies. Identify services that extract less-trusted archives and subsequently serve, inspect, copy or write paths in the output tree.
-
Update and confirm the runtime
Upgrade affected tar installations to 8.0.0 or later. Confirm the resolved version in the lockfile, running application and build image after redeployment.
-
Constrain follow-on file access
Until updating, avoid following symbolic links from untrusted extracted archives. Validate the final filesystem destination before serving or modifying a file; this is our defensive recommendation from the advisory's impact model.
-
Review suspicious extraction outcomes
Investigate unexpected symbolic links and subsequent file access outside archive working directories. Treat these as 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-140250 in Brandefense Atlas
The Atlas record of CVE-2026-140250: 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-140250?
The node-tar advisory lists npm tar 8.0.0 as patched. Verify that every affected deployed copy resolves to 8.0.0 or later.
Does extraction itself overwrite files outside the destination?
The advisory says node-tar blocks writes through the escaping link from the same archive. External file access arises when the application later follows the extracted link.
Does the advisory's proof of concept show active attacks?
No. It shows a controlled reproduction and a deployment example. It does not document exploitation against a real deployment.
Sources
- node-tar chained symlink advisoryisaacs/node-tar via GitHub Security Advisories
- CVE-2026-140250 NVD recordNIST NVD
- Known Exploited Vulnerabilities catalogCISA