CVE-2025-48387
JavaScript vulnerability analysis and mitigation

Overview

tar-fs, a package that provides filesystem bindings for tar-stream, was found to contain a critical vulnerability identified as CVE-2025-48387. The vulnerability affects versions prior to 3.0.9, 2.1.3, and 1.16.5, where an extract operation can write outside the specified directory with a specific tarball. The issue was discovered and 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), involving improper limitation of a pathname to a restricted directory. The severity is rated as HIGH with a CVSS 4.0 Base Score of 8.7 (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) (NVD).

Impact

The vulnerability allows an attacker to write files outside the intended directory during tar extraction operations, potentially leading to unauthorized file system access and modifications (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. The recommended workaround code is to use: ignore (_, header) { return header.type ! 'file' && header.type ! 'directory' } (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

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