According to the maintainer's 28 November 2026 advisory, versions before 8.0.2 can spend excessive CPU time or retain excessive memory while processing crafted archive paths. A small archive can crash a service that extracts untrusted uploads through the default asynchronous API.The GitHub CNA record assigns CVSS 4.0 7.1 (High); neither that record nor NVD supplies a CVSS 3.1 score. The maintainer publishes local reproduction tests against an unmodified 7.5.22 build on macOS. Those tests show reproducibility, not observed exploitation in deployed systems. Security teams can use the vulnerability intelligence platform as a reference while tracing archive intake in their environments.
What it allows
How Does CVE-2026-140240 Exhaust CPU or Memory?
The maintainer says asynchronous path reservation calculates ancestor prefixes for each reserved archive path. A prior depth limit covers ordinary entry paths, but it does not bound link paths or the length of individual components. Repeated prefix work can consume CPU and memory even when the archive itself is small.
Other paths retain reservation entries until extraction ends and cache long Unicode names with a limit on entry count rather than bytes. When a caller supplies a file list, a separate filter memoizes prefixes and can also grow in memory. The file-list condition matters: that route does not apply to every extraction.
The advisory's published tests reproduced these behaviors in a controlled 7.5.22 build on macOS. A published reproduction is separate from evidence of attacks against deployed services. CISA's 30 November 2026 KEV catalog did not list this CVE. The earlier node-tar archive update covers other flaws fixed in 8.0.0; this path-reservation issue requires 8.0.2.
Who is affected
Which node-tar Versions and Workflows Need Review?
The maintainer lists npm tar versions earlier than 8.0.2 as affected and 8.0.2 as patched. The default asynchronous extraction path is exposed when an application accepts archives from a less trusted source. Services that process uploads deserve priority because the advisory describes a crash from a small crafted archive.
Review indirect dependencies and build jobs that invoke node-tar, as well as direct application imports. The file-list filter route applies only when a caller supplies a file list. The software dependency risk guide provides a process for assigning owners and tracking fixes. Validate the package version actually resolved in each deployed environment.
Timeline
-
2026-11-28
The node-tar maintainer published the GHSA and identified 8.0.2 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 archive intake
Find deployed and build-time uses of npm tar, including indirect dependencies. Prioritize services that accept untrusted archives through asynchronous extraction.
-
Upgrade and verify
Update affected installations to tar 8.0.2 or later. Check the resolved lockfile version and the version running in each deployed service, then test archive workflows.
-
Review processing limits
As a defensive measure, constrain untrusted archive intake and monitor CPU, memory and process exits while upgrades roll out. These are operational checks, not vendor-published detection signatures.
-
Check conditional file-list use
Identify callers that supply a file list to node-tar. Include them in regression tests because the advisory describes a separate prefix-memoization path under that condition.
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-140240 in Brandefense Atlas
The Atlas record of CVE-2026-140240: 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 version fixes CVE-2026-140240?
The node-tar maintainer lists npm tar 8.0.2 as patched. Version 8.0.0 fixed other archive flaws, but is within this advisory's affected range.
Can a small archive affect service availability?
Yes. The maintainer says a small crafted archive can exhaust CPU or memory in a service using the default asynchronous extraction API.
Do the published tests establish active exploitation?
No. The advisory describes controlled tests against a 7.5.22 build on macOS. That evidence is a reproduction, not a report of deployed-system attacks.
Sources
- node-tar path-reservation resource exhaustion advisoryisaacs/node-tar via GitHub Security Advisories
- CVE-2026-140240 NVD recordNIST NVD
- Known Exploited Vulnerabilities catalogCISA