← back
CVE-2025-30208mediumobserved exploitationCWE-200CWE-284

Vite bypasses server.fs.deny when using `?raw??`

97Vexday Risk Score

Patch now. It exploitation observed by VulnCheck and has a working public exploit.

ssvc Actcvss 5.3epss 75%
from disclosure to weapon0 days
Published on NVDMar 24
1st PoCMar 21
VulnCheck+35d
exploitation probability
75%top 1% of all CVEs
observed exploitation
yesVulnCheck
51 public exploit(s)
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.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Affected products
vitejs · vite
public PoCs found51
exploitdbwww.exploit-db.com/exploits/52111unverifiedgithubgithub.com/ThumpBo/CVE-2025-30208-EXP196githubgithub.com/xuemian168/CVE-2025-3020848githubgithub.com/4xura/CVE-2025-3020810githubgithub.com/ThemeHackers/CVE-2025-3020810githubgithub.com/marino-admin/Vite-CVE-2025-30208-Scanner10githubgithub.com/4m3rr0r/CVE-2025-30208-PoC7githubgithub.com/jackieya/ViteVulScan7githubgithub.com/nkuty/CVE-2025-30208-31125-31486-323955githubgithub.com/On1onss/CVE-2025-302084githubgithub.com/r0ngy40/CVE-2025-30208-Series3githubgithub.com/sumeet-darekar/CVE-2025-302081githubgithub.com/TH-SecForge/CVE-2025-302081githubgithub.com/lilil3333/Vite-CVE-2025-30208-EXP1githubgithub.com/imbas007/CVE-2025-30208-template1githubgithub.com/keklick1337/CVE-2025-30208-ViteVulnScanner1githubgithub.com/Lusensec/CVE-2025-302080githubgithub.com/HazaVVIP/CVE-2025-302080githubgithub.com/cc3305/CVE-2025-302080githubgithub.com/MiclelsonCN/CVE-2025-30208_POC0githubgithub.com/iSee857/CVE-2025-30208-PoC0githubgithub.com/sadhfdw129/CVE-2025-30208-Vite0githubgithub.com/0xshaheen/CVE-2025-302080githubgithub.com/HaGsec/CVE-2025-302080vulncheckvulncheck.com/xdb/e849c744163eunverifiedvulncheckvulncheck.com/xdb/116a9432fccaunverifiedvulncheckvulncheck.com/xdb/7216ff7bdb87unverifiedvulncheckvulncheck.com/xdb/80a9c1d50a28unverifiedvulncheckvulncheck.com/xdb/c84cbb3fd16bunverifiedvulncheckvulncheck.com/xdb/8ae6806b4071unverifiedvulncheckvulncheck.com/xdb/573055c0e76aunverifiedvulncheckvulncheck.com/xdb/108529b531b0unverifiedvulncheckvulncheck.com/xdb/14e5ead281aeunverifiedvulncheckvulncheck.com/xdb/5e5666f6e4b5unverifiedvulncheckvulncheck.com/xdb/bb5065ec0b7aunverifiedvulncheckvulncheck.com/xdb/41f5125956cbunverifiedvulncheckvulncheck.com/xdb/471869748223unverifiedvulncheckvulncheck.com/xdb/e32d7a06be19unverifiedvulncheckvulncheck.com/xdb/90a18ae15449unverifiedvulncheckvulncheck.com/xdb/388dd832b246unverifiedvulncheckvulncheck.com/xdb/5e7ec44b1362unverifiedvulncheckvulncheck.com/xdb/2b49283dffeeunverifiedvulncheckvulncheck.com/xdb/e33919a9052aunverifiedvulncheckvulncheck.com/xdb/6cf8cde60cdeunverifiedvulncheckvulncheck.com/xdb/24952455a76cunverifiedvulncheckvulncheck.com/xdb/548faa8fa166unverifiedvulncheckvulncheck.com/xdb/17f3c0aa6eb8unverifiedvulncheckvulncheck.com/xdb/c07d38ebc777unverifiedvulncheckvulncheck.com/xdb/e32c52f19c5bunverifiedvulncheckvulncheck.com/xdb/9ec1c547aa75unverifiedvulncheckvulncheck.com/xdb/d281d302d090unverified
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.