Vite bypasses server.fs.deny when using `?raw??`
CVE-2025-30208Published 24 Mar 2025, 17:03 UTC
Real-world risk
2.5/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.3
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
Vite, a provider of frontend development tooling, has a vulnerability in versions prior to 6.2.3, 6.1.2, 6.0.12, 5.4.15, and 4.5.10. `@fs` denies access to files outside of Vite serving allow list. Adding `?raw??` or `?import&raw??` to the URL bypasses this limitation and returns the file content if it exists. This bypass exists because trailing separators such as `?` are removed in several places, but are not accounted for in query string regexes. The contents of arbitrary files can be returned to the browser. Only apps explicitly exposing the Vite dev server to the network (using `--host` or `server.host` config option) are affected. Versions 6.2.3, 6.1.2, 6.0.12, 5.4.15, and 4.5.10 fix the issue.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| ViteUbiquitous | < 4.5.10; >= 5.0.0, < 5.4.15; >= 6.0.0, < 6.0.12; >= 6.1.0, < 6.1.2; >= 6.2.0, < 6.2.3 | 4.5.10, 5.4.15, 6.0.12, 6.1.2, 6.2.3 |
What to do
Update to a fixed version: 4.5.10, 5.4.15, 6.0.12, 6.1.2, 6.2.3.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T4: Weaponized (× 1.00)
A Metasploit module, a Nuclei template, or a verified Exploit-DB entry
- Exploit-DB entry (link)
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Nuclei scanner template (link)
- CISA SSVC: proof of concept
EPSS 74.8% chance of exploitation in 30 days (percentile 100), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.315
- Threat T4: Weaponized1.000
- 10 × impact 0.8 × prerequisites 0.315 × threat 12.520
- Rounded to one decimal between 0.1 and 102.5
Exploitation and evidence timeline
- 24 Mar 2025 Published
- 3 Dec 2026 Exploit-DB entry first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Nuclei scanner template first seen
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 2.5 (cvss fallback)
Weakness
CWE-200, CWE-284
References
- https://github.com/vitejs/vite/security/advisories/GHSA-x574-m823-4x7wvendor-advisory
- https://github.com/vitejs/vite/commit/315695e9d97cc6cfa7e6d9e0229fb50cdae3d9f4misc
- https://github.com/vitejs/vite/commit/80381c38d6f068b12e6e928cd3c616bd1d64803cmisc
- https://github.com/vitejs/vite/commit/807d7f06d33ab49c48a2a3501da3eea1906c0d41misc
- https://github.com/vitejs/vite/commit/92ca12dc79118bf66f2b32ff81ed09e0d0bd07camisc
- https://github.com/vitejs/vite/commit/f234b5744d8b74c95535a7b82cc88ed2144263c1misc
- CVE-2025-30208 on CVE.org