CVE-2026-140245
Deferred Deferred - Pending Action

Symlink Path Containment Bypass in node-tar

Vulnerability report for CVE-2026-140245, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-01

Last updated on: 2026-12-01

Assigner: GitHub, Inc.

Description

node-tar is a tar archive manipulation library for Node.js. From 7.5.5 until 8.0.0, symlink linkpath containment bypass via entry paths ending in '/.'. A crafted archive can create a symlink pointing outside the extraction directory using default options and without any warning. The affected security path includes [STRIPABSOLUTEPATH], linkpath, path.posix.dirname(entry.path). This issue is fixed in version 8.0.0.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-01
Last Modified
2026-12-01
Generated
2026-12-01
AI Q&A
2026-12-01
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
node-tar node-tar From 7.5.5 (exc) to 8.0.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in node-tar (versions 7.5.5 to 8.0.0) allows a crafted tar archive to create a symlink that points outside the intended extraction directory. It occurs because the validation of symlink paths uses an incorrect base directory, enabling a symlink to bypass containment checks when entry paths end with '/.'.

Detection Guidance

Check if your system uses node-tar versions between 7.5.5 and 8.0.0 with commands like 'npm list node-tar' or 'npm ls node-tar'. Inspect archives for paths ending in '/.' which may indicate malicious symlinks.

Impact Analysis

An attacker could use this to write files or create symlinks outside the extraction directory, potentially leading to unauthorized file access or system compromise. However, subsequent operations within node-tar cannot follow the malicious symlink.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating confidentiality requirements in GDPR and HIPAA. Organizations using affected node-tar versions may face compliance risks due to potential data breaches.

Mitigation Strategies

Upgrade node-tar to version 8.0.0 or later using 'npm update node-tar'. Avoid extracting untrusted archives with node-tar until patched. Review extraction directories for unexpected symlinks.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-140245. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...