CVE-2025-30208
Vite bypasses server.fs.deny when using `?raw??`
Basic Information
- CVE State
- PUBLISHED
- Reserved Date
- March 18, 2025
- Published Date
- March 24, 2025
- Last Updated
- March 24, 2025
- Vendor
- vitejs
- Product
- vite
- Description
- 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.
- Tags
- Exploitation
- poc
- Technical Impact
- partial
- Proof of Concept Available
- Yes (added 2025-03-28 12:17:36 UTC) Source
CVSS Scores
CVSS v3.1
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
SSVC Information
Exploit Status
References
Known Exploited Vulnerability Information
| Source | Added Date |
|---|---|
| The Shadowserver (via CIRCL) | 2026-04-06 19:42:04 UTC |
Scanner Integrations
| Scanner | URL | Date Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-30208.yaml | 2025-04-25 00:00:00 UTC |
Potential Proof of Concepts
Warning: These PoCs have not been tested and could contain malware. Use at your own risk.
r0ngy40/CVE-2025-30208-Series
Type: github • Created: 2025-04-24 10:53:23 UTC • Stars: 1
imbas007/CVE-2025-30208-template
Type: github • Created: 2025-04-21 01:33:14 UTC • Stars: 0
lilil3333/Vite-CVE-2025-30208-EXP
Type: github • Created: 2025-04-05 04:59:49 UTC • Stars: 1
4m3rr0r/CVE-2025-30208-PoC
Type: github • Created: 2025-04-03 11:46:19 UTC • Stars: 0
sumeet-darekar/CVE-2025-30208
Type: github • Created: 2025-04-02 05:52:24 UTC • Stars: 0
0xshaheen/CVE-2025-30208
Type: github • Created: 2025-04-02 04:26:21 UTC • Stars: 0
keklick1337/CVE-2025-30208-ViteVulnScanner
Type: github • Created: 2025-03-28 12:17:36 UTC • Stars: 0
sadhfdw129/CVE-2025-30208-Vite
Type: github • Created: 2025-03-28 09:50:48 UTC • Stars: 0
4xura/CVE-2025-30208
Type: github • Created: 2025-03-27 12:55:01 UTC • Stars: 1
On1onss/CVE-2025-30208-LFI
Type: github • Created: 2025-03-27 12:36:41 UTC • Stars: 2
iSee857/CVE-2025-30208-PoC
Type: github • Created: 2025-03-27 06:22:18 UTC • Stars: 0
Lusensec/CVE-2025-30208
Type: github • Created: 2025-03-27 04:58:54 UTC • Stars: 0
marino-admin/Vite-CVE-2025-30208-Scanner
Type: github • Created: 2025-03-26 20:10:20 UTC • Stars: 8
YuanBenSir/CVE-2025-30208_POC
Type: github • Created: 2025-03-26 19:06:44 UTC • Stars: 0
MiclelsonCN/CVE-2025-30208_POC
Type: github • Created: 2025-03-26 19:06:44 UTC • Stars: 0
kk12-30/CVE-2025-30208
Type: github • Created: 2025-03-26 17:18:46 UTC • Stars: 1
xaitx/CVE-2025-30208
Type: github • Created: 2025-03-26 17:14:11 UTC • Stars: 8
ThumpBo/CVE-2025-30208-EXP
Type: github • Created: 2025-03-26 15:42:31 UTC • Stars: 178
xuemian168/CVE-2025-30208
Type: github • Created: 2025-03-26 10:26:12 UTC • Stars: 41
Timeline
-
CVE ID Reserved
-
CVE Published to Public
-
Proof of Concept Exploit Available
-
Detected by Nuclei
-
Added to KEVIntel