CVE-2025-59343
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-59343 affects tar-fs, a Node.js module that provides filesystem bindings for tar-stream. The vulnerability was discovered and disclosed on September 24, 2025. Versions prior to 3.1.1, 2.1.3, and 1.16.5 are vulnerable to symlink validation bypass if the destination directory is predictable with a specific tarball (NVD, Debian Security).

Technical details

The vulnerability stems from an improper symlink validation mechanism in the tar-fs package. The issue has been assigned a CVSS 4.0 Base Score of 8.7 (HIGH) with the vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N. The vulnerability is categorized under CWE-61 (UNIX Symbolic Link Following) and CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) (NVD).

Impact

The vulnerability could allow an attacker to bypass symlink validation when the destination directory is predictable with a specific tarball. This could potentially lead to overwriting, deleting, or corrupting critical files such as programs, libraries, or important data (Red Hat Portal).

Mitigation and workarounds

The issue has been patched in versions 3.1.1, 2.1.4, and 1.16.6. As a workaround, users can implement the ignore option to ignore non-files/directories using the following pattern: ignore (_, header) { return header.type ! 'file' && header.type ! 'directory' } (GitHub Advisory).

Community reactions

Multiple Linux distributions have responded to this vulnerability by releasing security updates. Debian has issued DSA-6013-1 for both oldstable (bookworm) and stable (trixie) distributions. Red Hat has released RHSA-2025:17376 to address this vulnerability in their products (Debian Security, Red Hat Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management