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

node-tar NUL Name Parsing Flaw (CVE-2026-140234)

CVE-2026-140234 is a NUL-byte name parsing 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-140234
Vendor
isaacs
Affected Product
node-tar (npm tar package)
Exploitation
Not confirmed
Published
2026-11-28

The maintainer says affected ustar, GNU and PAX archive names can produce different interpretations across tools. During asynchronous extraction, an uncaught filesystem error can crash the process.The maintainer lists versions before 8.0.0 as affected and 8.0.0 as patched. Teams handling untrusted archives can use the vulnerability intelligence platform as a CVE reference while checking deployed package versions. The maintainer's published reproduction shows a test outcome, not observed exploitation in a deployment.

What it allows

How Does CVE-2026-140234 Affect Archive Names?

The maintainer says node-tar removes text after a NUL with a regular expression that stops at certain line separators. A remaining NUL can therefore reach the filesystem during asynchronous extraction. The filesystem throws, and a process without an error handler can crash.

The same parsing rule applies to ustar names, GNU long names and links, and PAX values. With the strip option, surviving name characters can give node-tar a different view from other archive tools. That difference matters when a workflow validates an archive with one tool and processes it with another.

The maintainer published local reproduction results against version 7.5.22 on macOS. Those results support the stated crash and parsing differential, but they do not establish use against a production system. CISA's 30 November 2026 KEV catalog version does not list this CVE.

For broader release context, see the node-tar 8.0.0 archive handling report. This profile focuses on the NUL parsing issue in GHSA-wpwg-r92p-fjjh. It does not merge this CVE with the release's other archive fixes.

Who is affected

Which CVE-2026-140234 Versions Need an Update?

The maintainer's advisory marks npm tar versions before 8.0.0 as affected and 8.0.0 as patched. An application is exposed to the described behavior when it processes a crafted archive through the affected parsing paths. The advisory identifies asynchronous extraction as the crash path and strip as the name differential condition.

Version 8.0.0 is a major release with migration work. Its release notes say it requires Node.js 22 or newer and changes callback and stream APIs. Test the application's extraction path before deployment, then check the installed tar version in the running environment.

Record the update in the patch management process. An application manifest alone may not show the version actually loaded by a deployed process. Verify the resolved package version after the build and redeploy.

Timeline

  1. 2026-11-28

    The node-tar maintainer published GHSA-wpwg-r92p-fjjh and released version 8.0.0.

  2. 2026-12-01

    NVD published its CVE-2026-140234 record.

What to do

  1. Inventory archive processing

    Find services and jobs that ingest archives from outside their trust boundary. Identify the installed npm tar version and whether they use asynchronous extraction or strip.

  2. Plan the 8.0.0 migration

    Update to tar 8.0.0 or later. Check Node.js 22 compatibility and the callback and stream changes named in the maintainer's release notes.

  3. Verify the running version

    After deployment, inspect the resolved tar package version in the running build. Confirm it is 8.0.0 or later, then exercise the application's normal archive workflow.

  4. Review error handling

    Check whether asynchronous extraction errors are caught and logged. Treat this as a defensive check inferred from the maintainer's described uncaught-error crash path.

What Brandefense can do

Frequently Asked Questions

What is fixed in node-tar 8.0.0 for CVE-2026-140234?

The maintainer marks 8.0.0 as the patched version for NUL-related name parsing differences and asynchronous extraction crashes.

Does the published reproduction prove active exploitation?

No. The maintainer describes local tests against an unmodified 7.5.22 build on macOS. Those test results are separate from observations in deployed systems.

Why does an update need migration testing?

The 8.0.0 release requires Node.js 22 or newer and changes callback and stream APIs. Test those changes against the application's archive workflow.

Sources

  1. node-tar security advisory GHSA-wpwg-r92p-fjjhisaacs
  2. node-tar v8.0.0 release notesisaacs
  3. CVE-2026-140234 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 →