node-tar 8.0.0 Patches High-Severity Symlink Escape Vulnerability

2 min read
Source: CVEs | Zero Wire | Cloudflare Radar
node-tar 8.0.0 Patches High-Severity Symlink Escape Vulnerability
Photo: CVEs | Zero Wire | Cloudflare Radar
TL;DR

GitHub disclosed CVE-2026-140249, a high-severity vulnerability in the node-tar library that allows attackers to escape extraction directories via malicious symlink chains. The flaw, rated 7.2 on the CVSS scale, affects versions 7.5.5 through 7.9.9 and is resolved in version 8.0.0. Exploitation requires user interaction but can lead to arbitrary file read and write access on the system.

Key points

  • CVE-2026-140249 affects node-tar versions 7.5.5 up to, but not including, 8.0.0.
  • The vulnerability allows a malicious tarball to create symlinks that point to any path on the system during extraction.
  • While tar.x() does not write through these symlinks, subsequent application reads or writes can follow them, enabling arbitrary file access.
  • The CVSS 4.0 score is 7.2 (High), with high impact on integrity and low impact on confidentiality and availability.
  • The fix is included in node-tar version 8.0.0, which was released on November 28, 2026.

Background

This disclosure is part of a series of high-severity vulnerabilities patched in the node-tar 8.0.0 release. Earlier coverage noted CVE-2026-140243, which also involved symlink escapes, as well as CVE-2026-140119 (heap exhaustion), CVE-2026-140236 (archive framing), and a denial-of-service flaw in async extraction. The 8.0.0 release introduced major breaking changes, including dropping support for Node.js versions below 22 and removing runtime dependencies, alongside these security fixes.

Why it matters

node-tar is a widely used library for handling tar archives in Node.js applications. A vulnerability allowing arbitrary file read and write access poses a significant risk to any application that processes untrusted tarballs, potentially leading to data theft, system compromise, or unauthorized modifications to critical files.

What to watch

Developers should update their node-tar dependencies to version 8.0.0 or later to mitigate CVE-2026-140249. Subsequent patch releases, v8.0.1 through v8.0.4, were issued between November 28 and 30, 2026, to address additional parser and unpack issues, so users should ensure they are on the latest stable version.

Share this article

Want the full story? Read the original reporting

Read on CVEs | Zero Wire | Cloudflare Radar