CVE-2025-48387
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2025-48387) affects tar-fs, a package that provides filesystem bindings for tar-stream. The issue was discovered in versions prior to 3.0.9, 2.1.3, and 1.16.5, where the extract functionality could write files outside the specified directory when processing a specially crafted tarball. The vulnerability was disclosed on June 2, 2025, and was reported by Caleb Brown from Google Open Source Security Team (GitHub Advisory).

Technical details

The vulnerability is classified as a Path Traversal issue (CWE-22) that allows improper limitation of a pathname to a restricted directory. The issue received 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 specifically affects the extract functionality in tar-fs, where the validation of extraction paths was insufficient, potentially allowing writes outside the intended directory (NVD).

Impact

When exploited, this vulnerability allows an attacker to write files outside the intended extraction directory, potentially leading to unauthorized file system access and modifications. This could result in data exposure, system compromise, or other security implications depending on the context in which tar-fs is being used (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 3.0.9, 2.1.3, and 1.16.5. As a temporary 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).

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-58754HIGH7.5
  • JavaScriptJavaScript
  • grafana-azure-monitor
NoYesSep 12, 2025
CVE-2025-59049HIGH7.5
  • JavaScriptJavaScript
  • @mockoon/cli
NoYesSep 10, 2025
CVE-2025-59052HIGH7.1
  • JavaScriptJavaScript
  • @angular/platform-server
NoYesSep 10, 2025
CVE-2025-59139MEDIUM5.3
  • JavaScriptJavaScript
  • hono
NoYesSep 12, 2025
CVE-2025-9910LOW1.3
  • JavaScriptJavaScript
  • jsondiffpatch
NoYesSep 11, 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