Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
NodeJS-Tar-Symlink-Exploit-CVE-2026-29786 — Technical analysis and Proof-of-Concept (PoC) for a critical Path Traversal vulnerability via Symlink manipulation in the Node.js 'tar' package (CVE-2026-29786) | Kitploit
Tools/GitHubGitHub/rohitberiwala/nodejs-tar-symlink-exploit-cve-2026-29786
Vulnerability AnalysisExploitationWeb SecuritySupply Chain Security
GitHubrohitberiwala/nodejs-tar-symlink-exploit-cve-2026-29786

NodeJS-Tar-Symlink-Exploit-CVE-2026-29786

Technical analysis and Proof-of-Concept (PoC) for a critical Path Traversal vulnerability via Symlink manipulation in the Node.js 'tar' package (CVE-2026-29786)

View Repository
15 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

📦 CVE-2026-29786: Node.js Tar Symlink Vulnerability

CVE Language Category

📌 Executive Summary

This repository documents research into CVE-2026-29786, a high-severity vulnerability discovered in the popular Node.js tar package. The flaw allows an attacker to create a malicious tar archive that, when extracted, uses symlinks to overwrite files outside the intended extraction directory (Path Traversal).

🔍 Technical Analysis

The vulnerability exists in how the tar extraction engine validates file paths. By crafting a header with a type: 'symlink', an attacker can point a link to a sensitive location (e.g., /etc/shadow or application config files) and subsequently overwrite it during the extraction process.

Attack Mechanism:

  1. Archive Creation: A malicious tarball is generated containing a symlink entry.
  2. Path Redirection: The symlink points to a path outside the destination folder.
  3. Arbitrary File Write: When the victim extracts the archive, the engine follows the link and writes data to the attacker's target path.

🏗️ Proof of Concept (PoC)

The research includes a functional script poc.cjs to demonstrate the vulnerability in a controlled environment.

Execution Steps:

  1. Ensure Node.js is installed on your system.
  2. Install the vulnerable version of the tar package:
    root@kitploit:~
    npm install [email protected]
    To reproduce the research, you must install the specific vulnerable version of the package:
    node poc.cjs
    
Download Tool