CVE-2025-62522
JavaScript vulnerability analysis and mitigation

Overview

Vite, a frontend tooling framework for JavaScript, contains a vulnerability (CVE-2025-62522) where files denied by server.fs.deny could be accessed if the URL ended with a backslash () when the dev server is running on Windows. This vulnerability affects multiple versions including 2.9.18 to before 3.0.0, 3.2.9 to before 4.0.0, 4.5.3 to before 5.0.0, 5.2.6 to before 5.4.21, 6.0.0 to before 6.4.1, 7.0.0 to before 7.0.8, and 7.1.0 to before 7.1.11. The issue was discovered and disclosed on October 20, 2025 (NVD, GitHub Advisory).

Technical details

The vulnerability stems from a path traversal issue where the server.fs.deny configuration could be bypassed using a backslash character at the end of URLs. The root cause was identified as fs.readFile('/foo.png/') being able to load /foo.png. The vulnerability has been assigned a CVSS v4.0 Base Score of 6.0 (Medium) with the vector string CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N. The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) (NVD, GitHub Advisory).

Impact

The vulnerability allows attackers to access files that should be denied by the server.fs.deny configuration. This particularly affects sensitive files like .env, .env., and .{crt,pem} which are protected by default. The impact is limited to applications that explicitly expose the Vite dev server to the network and are running on Windows systems (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 5.4.21, 6.4.1, 7.0.8, and 7.1.11. Users are advised to upgrade to these versions or later to address the security issue. If immediate upgrade is not possible, users should avoid exposing the Vite dev server to the network when running on Windows systems (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

GHSA-vffh-c9pq-4crhMEDIUM6.5
  • JavaScriptJavaScript
  • uptime-kuma
NoNoOct 20, 2025
CVE-2025-62522MEDIUM6
  • JavaScriptJavaScript
  • renovate
NoYesOct 20, 2025
CVE-2025-62595MEDIUM4.3
  • JavaScriptJavaScript
  • koa
NoYesOct 21, 2025
GHSA-xvp7-8vm8-xfxxMEDIUM4.2
  • JavaScriptJavaScript
  • @actual-app/sync-server
NoNoOct 20, 2025
CVE-2025-62505LOW3
  • JavaScriptJavaScript
  • @lobehub/chat
NoYesOct 17, 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