CVE-2025-30208: Vite bypasses server.fs.deny when using ?raw??
Affects viteSource GCVE Database
Exposed hosts seen by OffSeq Mirage · public exploit available (Exploit-DB) · 74% EPSS · CVSS 5.3 Medium : upgrade to 6.2.3 as a priority.
Data as of 13 Nov 2026, 23:53 UTC
- EPSS
- 74.7% chance of exploitation in 30 days – higher than 99% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 6.2.3
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:NExploitation evidence
t = 0 is the CVE’s publication on cve.org
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: evidence found.
Weaponized: evidence found.
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: evidence found.
3 exposed hosts found; no attack traffic recorded
Timeline
First Exploit-DB entry (opens in a new tab)
Vite 6.2.2 - Arbitrary File Read
, 1.4 years before disclosure
CVE published
on cve.org
, t = 0
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), OffSeq Mirage (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade vite to 6.2.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewvitepkg:brew/viteOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available for this vulnerability. Users should upgrade Vite to version 6.2.3 or later to remediate the issue. Until patched, avoid exposing the Vite dev server to the network (do not use --host or server.host to bind to external interfaces).
Description
A vulnerability in Vite allows bypassing the server.fs.deny restriction when using the ?raw?? or ?import&raw?? query parameters, enabling access to arbitrary file contents. This affects Vite dev servers explicitly exposed to the network via the --host option or server.host configuration. The issue arises because trailing separators in the query string are removed inconsistently, allowing unauthorized file reads outside the allowed serving paths. A proof of concept demonstrates reading sensitive files such as /tmp/secret.txt. The vulnerability affects Vite versions from 2.5.1 up to but not including 6.2.3. A patch is available to address this issue. The CVSS score is 5.3 (medium severity).
References
- github.com/vitejs/vite/security/advisories/GHSA-x574-m823-4x7w (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-30208 (opens in a new tab)
- github.com/vitejs/vite/commit/315695e9d97cc6cfa7e6d9e0229fb50cdae3d9f4 (opens in a new tab)
- github.com/vitejs/vite/commit/80381c38d6f068b12e6e928cd3c616bd1d64803c (opens in a new tab)
- github.com/vitejs/vite/commit/807d7f06d33ab49c48a2a3501da3eea1906c0d41 (opens in a new tab)
- github.com/vitejs/vite/commit/92ca12dc79118bf66f2b32ff81ed09e0d0bd07ca (opens in a new tab)
- github.com/vitejs/vite/commit/f234b5744d8b74c95535a7b82cc88ed2144263c1 (opens in a new tab)
- github.com/vitejs/vite (opens in a new tab)