GitHub's advisory says a crafted archive can leave a link inside the extraction directory that resolves outside it on non-Windows hosts. A later process that reads through that link could expose a host file.The advisory documents a working reproduction with default extraction options. That reproduction demonstrates the flaw; it does not establish exploitation in a real environment. Teams can use the vulnerability intelligence platform as a CVE reference while verifying installed package versions.
What it allows
How Does CVE-2026-140246 Escape the Extraction Directory?
The advisory identifies a mismatch between the link-target containment check and the filesystem operation that creates the symbolic link. On non-Windows hosts, the check treats a backslash as a separator, while the filesystem treats it as an ordinary character. The two steps can therefore resolve the same archive entry to different locations.
A crafted archive can pass the check and create a link whose target lies beyond the extraction directory. The advisory confirms the behavior with default asynchronous and synchronous extraction in tar 7.5.22. It describes a later read, copy, or file-serving operation as the route to file disclosure.
This is a link-target escape, not a demonstrated arbitrary file write by node-tar. The advisory says its write safeguards stop that separate outcome. The issue is distinct from the earlier drive-relative path fix discussed in the node-tar 8.0.0 archive handling report.
Is CVE-2026-140246 Being Exploited?
GitHub's advisory includes a public working reproduction for tar 7.5.22. This demonstrates feasibility under the stated conditions, rather than a confirmed attack against a deployment. CISA's 30 November 2026 KEV catalog does not list this CVE.
For triage, identify workflows that extract untrusted npm packages, uploads, or third-party archives and then read their output. Reviewing reads or file responses through newly extracted symbolic links is our defensive inference from the advisory's described impact. Treat unexpected access outside the extraction root as a reason to investigate.
Who is affected
Which CVE-2026-140246 Versions and Hosts Need Action?
GitHub lists npm tar versions earlier than 8.0.0 as affected and 8.0.0 as patched. Its reproduction confirms 7.5.22 with default options on a non-Windows host. The advisory does not provide a lower affected version bound or separate boundaries for older major branches.
Exposure depends on extracting attacker-controlled archive content and on a later consumer following the resulting link. Inventory direct and transitive tar installations in services and build systems that handle untrusted archives. Follow the patch management process to update the installed package and check the version that actually runs.
The node-tar 8.0.0 release changes its API and drops support for Node.js versions below 22. Plan any required application migration before deploying the update. Keep archive output from being served or read as trusted content until the affected workflow is updated and verified.
Timeline
- 2026-11-28
GitHub advisory publication and node-tar 8.0.0 release.
- 2026-12-01
NVD published the CVE record.
What to do
-
Find affected extraction paths
Inventory direct and transitive npm tar installations on non-Windows hosts. Prioritize workflows that extract untrusted archives and then read, copy, or serve extracted content.
-
Update and confirm the running version
Move affected deployments to tar 8.0.0 or later. Check the installed version in each deployed dependency tree after the update; the advisory lists 8.0.0 as patched.
-
Test the migration
Review the node-tar 8.0.0 API changes and its Node.js 22 minimum before rollout. Run application extraction tests with the new package version.
-
Review link-following behavior
Investigate reads or responses through symbolic links created by untrusted archives. This investigation step is our inference from the advisory's file-disclosure scenario.
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-140246 in Brandefense Atlas
The Atlas record of CVE-2026-140246: 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
Does CVE-2026-140246 itself write files outside the extraction directory?
The GitHub advisory says no. It demonstrates an escaping symbolic link and a possible later read through that link, while describing safeguards against an arbitrary write.
Which tar release fixes CVE-2026-140246?
GitHub lists npm tar 8.0.0 as the patched version. Verify the deployed dependency tree after upgrading, and account for the release's API and Node.js support changes.
Does a public reproduction prove active exploitation?
No. The advisory's reproduction demonstrates the flaw in tar 7.5.22 under its test conditions. It is not evidence that an attacker used it against a real deployment.
Sources
- node-tar symbolic link extraction advisoryGitHub Advisory Database
- node-tar v8.0.0 releasenode-tar maintainers
- CVE-2026-140246 NVD recordNIST NVD
- Known Exploited Vulnerabilities catalogCISA