A non-finite PAX size can pass a check that only rejects negative values. The maintainer demonstrated that this can hide later archive entries during extraction or listing and crash a process during re-packing.The maintainer lists npm tar 7.0.0 through versions before 7.5.24 as affected and 7.5.24 as patched. Teams accepting archives from outside a trusted boundary should check the version loaded by each service or job. The vulnerability intelligence platform is a reference for that review.
What it allows
How Does CVE-2026-140242 Disrupt Archive Processing?
The maintainer says the PAX parser accepts a numeric size after checking only that it is at least zero. A non-finite positive value passes that condition. When the following entry inherits that size, the parser can keep treating subsequent archive entries as its body instead of emitting them as separate entries.
The advisory describes a second outcome when a consumer re-packs entries from that archive. The invalid size reaches the numeric header encoder, which throws an uncaught exception and can terminate the host process. Extraction or listing may instead appear successful while dropping later entries, with an archive warning only at the end in non-strict mode.
The maintainer published a local reproduction that demonstrates both outcomes. It is evidence of a reproducible flaw, not evidence that attackers used it against deployed systems. The CISA KEV catalog snapshot released on 30 November 2026 does not list this CVE. The node-tar archive handling report provides broader release context for separate flaws.
Who is affected
Version Check
| Release Line | Affected Range | Fixed In |
|---|---|---|
| 7.x | 7.0.0 to before 7.5.24 | 7.5.24 |
For distribution packages and custom builds, check the supplier’s advisory.
Which CVE-2026-140242 Versions Need a Fix?
The maintainer lists npm tar versions from 7.0.0 inclusive to 7.5.24 exclusive as affected. Version 7.5.24 is the patched boundary. The advisory says the older 6.x line has related unvalidated parsing code, but it does not confirm the end-to-end impact there; assess that line separately.
The described exposure requires an application or job to parse, extract, list, or re-pack an archive supplied across a trust boundary. Re-packing is the demonstrated process-crash path. Extraction or listing can lose later entries, so a successful operation alone does not prove that every expected entry was processed.
Update affected 7.x installations to 7.5.24 or a later release carrying the fix. In the deployed runtime, inspect the resolved tar package version and exercise the normal archive workflow after updating. Record the version and test result in the patch management process.
Timeline
- 2026-11-26
The node-tar maintainer tagged version 7.5.24, the patched version named in its advisory.
- 2026-11-28
The node-tar maintainer published GHSA-ph3c-p786-j4rp.
- 2026-12-01
NVD published the CVE-2026-140242 record.
What to do
-
Find archive consumers
Inventory services and jobs that accept archives from outside their trust boundary. Identify the resolved npm tar version in each deployed runtime.
-
Prioritize re-packing paths
Prioritize exposed jobs that re-pack untrusted archives because the maintainer demonstrated an uncaught process exception. Also review extraction and listing paths for lost entries.
-
Update affected versions
Upgrade affected npm tar 7.x installations to 7.5.24 or a later release carrying the fix. Test normal extraction, listing and re-packing behavior before rollout.
-
Verify after deployment
Inspect the resolved tar package version in the running build and confirm it is 7.5.24 or later on the fixed 7.x line. Exercise representative archive processing and check that expected entries are present.
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-140242 in Brandefense Atlas
The Atlas record of CVE-2026-140242: 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 does CVE-2026-140242 affect?
It affects npm tar archive processing when an untrusted archive supplies a non-finite PAX size. The maintainer demonstrated dropped later entries and a re-packing process crash.
Which node-tar version fixes CVE-2026-140242?
The maintainer lists 7.5.24 as the patched version for the affected 7.x range, starting at 7.0.0. Verify the resolved package version in the deployed runtime.
Does the published reproduction show attacks in the wild?
No. The maintainer published a local reproduction of the flaw. That test does not establish exploitation against a deployed system.
Does strict mode remove the risk?
The advisory says strict mode surfaces the archive-integrity warning as an error. It does not prevent the demonstrated re-packing crash, so updating remains necessary.