home / blog

2026-12-03 · high

CVE-2026-140249: Vulnerability in node-tar allows arbitrary file access

High vulnerability in node-tar from 7.5.5 to 8.0.0 allows arbitrary file access through symlink chain exploit.

CVE-2026-140249: Vulnerability in node-tar allows arbitrary file access

CVE-2026-140249 is a critical vulnerability found in node-tar, a library for Node.js used to manipulate tar archives. The vulnerability, present in versions from 7.5.5 up to 8.0.0, allows an attacker to create a symlink chain within an archive that, when extracted, can point to any path on the system. This translates into the ability to read and write arbitrary files with the permissions of the user performing the extraction.

The vulnerability has a CVSS score of 7.2, classified as high severity. It was officially published on 2026-12-01 in the National Vulnerability Database. Reports have already emerged on GitHub of exploit examples, including proof-of-concept that demonstrate the symlink bypass. The severity is confirmed by the fact that it allows access to sensitive files such as /etc/hostname.

To protect against CVE-2026-140249, it is essential to update node-tar to version 8.0.0 or later, which contains the fix for the issue. For applications that cannot be updated immediately, it is possible to implement mitigations such as manual validation of archives before extraction or using sandboxes to limit the damage from any potential exploits. It is also recommended to monitor access to critical system files.

At a glance

What
Vulnerability in node-tar that allows symlink extraction bypass, leading to arbitrary file read/write
Severity
High (CVSS 7.2)
Affected versions
7.5.5 to 8.0.0
Fix
Version 8.0.0
Status
Officially published on 2026-12-01
Action
Update to version 8.0.0 or later

Sources: NVD, CVE-2026-140249

← All articles