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

node-tar Symlink Containment Bypass (CVE-2026-140244)

CVE-2026-140244 is a symlink containment bypass in node-tar, the npm tar archive library.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-140244
Vendor
node-tar maintainers
Affected Product
tar npm package (node-tar)
Exploitation
Not confirmed
Published
2026-12-01

Its archive extraction check resolves a link target as text before the operating system follows existing symlinks. A crafted archive can leave a link inside the extraction directory that points outside it.The vendor advisory, published on 28 November 2026, includes a public reproduction of an outside-root read. A later process must follow the planted link for file disclosure to occur. NVD published its CVE record on 1 December 2026.

What it allows

How Can CVE-2026-140244 Expose Files?

The vulnerable check collapses parent-directory components without following a symlink created earlier in the same archive. The operating system later follows that earlier link, changing where the second link points. The resulting link can refer to a file outside the extraction root.

The advisory demonstrates that an application can read an outside-root file through this planted link. It also says node-tar blocks hardlinks and later archive writes through the link. The supported impact is a file read when a subsequent consumer follows the extracted link.

Prioritize applications that extract archives from untrusted sources and then serve, copy, inspect or repackage their contents. Record that exposure in a vulnerability intelligence platform alongside the installed package version. This is our triage guidance based on the vendor’s stated impact.

The advisory contains a public reproduction, which demonstrates the flaw under test conditions. It does not establish exploitation against a deployed service. CISA’s 30 November 2026 KEV catalog did not list this CVE.

Who is affected

Which node-tar Versions Are Affected?

The vendor lists tar releases before 8.0.0 as affected, including 7.5.22. Version 8.0.0 is the patched release. The advisory supplies no lower starting version, so compare every installed pre-8.0.0 release with the vendor’s fixed version.

Exposure depends on how an application handles extracted content. An application must extract an attacker-controlled archive and then follow the planted link through a later read, serve, copy or archive step. Inventory direct and transitive tar dependencies, then check the version actually used at runtime or in a build job.

Upgrade affected installations to tar 8.0.0 or a later fixed release and verify the resolved dependency version after installation. Keep that evidence in your patch management process. For dependency review, use the software supply chain risk management guide to identify workflows that handle untrusted archives.

Timeline

  1. 2026-11-28

    The node-tar advisory published a public reproduction and identified version 8.0.0 as patched.

  2. 2026-12-01

    NVD published the CVE-2026-140244 record.

What to do

  1. Find archive extraction paths

    Identify services, build jobs and tools that use the tar npm package to extract archives from untrusted sources. Record whether a later step follows extracted symlinks.

  2. Update the package

    Upgrade affected tar installations to version 8.0.0 or a later fixed release. Rebuild or redeploy applications that bundle the older package.

  3. Verify the running dependency

    Inspect the resolved dependency and deployed build after updating. Confirm that the tar version in use is 8.0.0 or later.

  4. Review downstream file access

    Review code paths that read, serve, copy or archive extracted trees. Treat unexpected symlinks escaping the extraction root as investigation leads, not proof of exploitation.

What Brandefense can do

Frequently Asked Questions

What does CVE-2026-140244 allow?

A crafted archive can plant an outside-pointing symlink within the extraction root. A later consumer that follows the link can read a file outside that root.

Does the public reproduction show real-world exploitation?

The vendor advisory demonstrates the file-read path in a test. It does not establish that an attacker used the flaw against a deployed service.

Which node-tar version fixes CVE-2026-140244?

The node-tar advisory names tar 8.0.0 as the patched release. Verify that the application or build job actually uses that version or a later fixed release.

Sources

  1. node-tar Symlink Containment Bypass Advisorynode-tar maintainers via GitHub Security Advisories
  2. CVE-2026-140244 RecordNIST NVD
  3. 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 →