Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

node-tar Non-Finite PAX Size Flaw (CVE-2026-140242)

CVE-2026-140242 is an archive size validation flaw in the npm tar package, also called node-tar.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-140242
Vendor
isaacs
Affected Product
node-tar (npm tar package)
Exploitation
Not confirmed
Published
2026-11-28

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

npm tar (node-tar)
Release LineAffected RangeFixed In
7.x7.0.0 to before 7.5.247.5.24
Release ranges source

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

  1. 2026-11-26

    The node-tar maintainer tagged version 7.5.24, the patched version named in its advisory.

  2. 2026-11-28

    The node-tar maintainer published GHSA-ph3c-p786-j4rp.

  3. 2026-12-01

    NVD published the CVE-2026-140242 record.

What to do

  1. 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.

  2. 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.

  3. 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.

  4. 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

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.

Sources

  1. node-tar security advisory GHSA-ph3c-p786-j4rpisaacs
  2. node-tar v7.5.24 releaseisaacs
  3. CVE-2026-140242 recordNVD
  4. Known Exploited Vulnerabilities catalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →