CVE-2025-30208

CVE-2025-30208 is a medium-severity vulnerability in Vitejs Vite with a CVSS 3.x base score of 5.3. Its EPSS exploit-prediction score of 75% places it in the 99th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-200.

Key facts

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.

Frequently asked questions

What is CVE-2025-30208?
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.
How severe is CVE-2025-30208?
CVE-2025-30208 has a CVSS 3.x base score of 5.3, rated medium severity. It is exploitable over network with high attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity none, and availability none.
Is CVE-2025-30208 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 75% (99th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2025-30208?
CVE-2025-30208 affects Vitejs Vite. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2025-30208?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2025-30208 have an EU (EUVD) identifier?
Yes. CVE-2025-30208 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-8079.
When was CVE-2025-30208 published?
CVE-2025-30208 was published on 2025-03-24 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Vitejs Vite

All CVEs affecting Vitejs Vite →

Other CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) vulnerabilities

Browse all CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) vulnerabilities →