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

node-tar Symlink Chain Escape (CVE-2026-140249)

CVE-2026-140249 affects the npm tar package, known as node-tar, from version 7.5.5 up to but excluding 8.0.0.

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

With default extraction options, a crafted archive can leave a symbolic link pointing outside the destination directory. The maintainer says extraction raises no warning for this behavior.The risk arises when an application later reads or writes through that link. Node-tar itself does not perform that outside read or write during the demonstrated extraction. Teams using a vulnerability intelligence platform should map the package to the archive workflows they operate.GitHub's advisory rates the issue High, while its CVSS 4.0 score is 7.2. The public reproduction demonstrates a flaw under controlled conditions; it does not document exploitation in a deployed system.

What it allows

How Does CVE-2026-140249 Escape the Extraction Directory?

The archive contains a directory and two symbolic links arranged as a chain. Node-tar validates a normalized target that appears to stay inside the extraction directory. It then creates the link using the original target, which the operating system can resolve through the first link and outside the directory.

The maintainer reports that the link can be created with default tar.x() options and no warning. Its reproduction covers synchronous and asynchronous extraction on an affected release. The advisory explains that the earlier chain fix blocked a hardlink outcome, while the symbolic link still remained possible.

Impact depends on later application behavior. A subsequent read or write through the extracted link can reach a file outside the extraction directory with the extracting user's permissions. The advisory's controlled reproduction shows an outside write and an outside path resolution; it is not evidence of an observed campaign.

The advisory was published on 28 November 2026. CISA's KEV catalog version dated 30 November does not list this CVE. That catalog status does not establish whether exploitation has occurred elsewhere.

Who is affected

Which CVE-2026-140249 Versions and Workflows Need Action?

The maintainer lists npm tar versions at least 7.5.5 and below 8.0.0 as affected. Version 8.0.0 is patched. The advisory says 7.5.3 and 7.5.4 rejected the demonstrated chain; it identifies 7.5.5 as the regression point.

Prioritize applications that accept archives from less-trusted sources and later open paths in the extracted tree. The advisory says applications that filter link entries for untrusted input are not affected by this path. Check both direct and transitive package versions in services, developer tools, build jobs and deployment images.

Upgrade affected installations and verify the resolved version in every deployed environment. The node-tar 8.0.0 security update covers the release context. Our software dependency risk guide helps assign ownership across build and production workflows.

Version 8.0.0 also changes the package API and requires Node.js 22 or later, according to its release notes. Test archive extraction callers during migration. Until the upgrade is complete, reject untrusted archives containing link entries and review later file operations against the intended extraction boundary.

Timeline

  1. 2026-11-28

    The node-tar advisory was published and identified 8.0.0 as patched.

  2. 2026-12-01

    NVD published the CVE record.

  3. 2026-12-02

    The GitHub advisory record was updated and reviewed.

What to do

  1. Locate archive workflows

    Inventory direct and transitive npm tar installations. Identify applications that process less-trusted archives and later read or write paths in the extracted tree.

  2. Upgrade and verify

    Upgrade affected installations to tar 8.0.0 or later. Confirm the resolved version in lockfiles, deployed services, build jobs and images. Test callers against the version 8 API.

  3. Restrict risky inputs

    Until upgraded, reject link entries in archives from untrusted sources. This follows the maintainer's stated condition for applications that filter such entries.

  4. Review downstream file access

    Check whether code follows extracted symbolic links during later reads or writes. Resolve each destination against the extraction boundary; review unexpected outside file access as an investigation lead.

What Brandefense can do

Frequently Asked Questions

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

The maintainer identifies npm tar 8.0.0 as patched. Check the resolved version in every affected service and build environment, then test the version 8 API changes.

Does extraction itself overwrite files outside the destination?

The maintainer says node-tar creates an outside-pointing symbolic link but does not write through it during extraction. A later application read or write must follow that link.

Does the published proof of concept establish active exploitation?

No. It demonstrates the flaw in a controlled environment. The advisory does not document exploitation in a deployed system, so the profile marks exploitation as unknown.

Sources

  1. node-tar in-archive symlink chain advisoryisaacs/node-tar via GitHub Security Advisories
  2. node-tar v8.0.0 release notesisaacs/node-tar
  3. CVE-2026-140249 NVD recordNIST NVD
  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 →