CVE-2025-30208 | Vite bypasses server.fs.deny when using `?raw??`

Exp

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.

Published: 2025-03-24 Last update: 2025-09-23 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-30208 is rated High Exploit Risk (71.9/100): CVSS Medium severity, with high exploitation likelihood (EPSS 89.85%, 100th percentile). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2025-30208

EDB-ID Source Kind Published Link
52111 exploit_db edb 2025-04-03 Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2025-30208

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-02 88.96% 89.85% +0.89%
2 2026-03-04 90.45% 88.96% -1.50%
3 2026-03-03 90.45%

Full EPSS history (59 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-30208

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.3 3.1 MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
1.6 3.6 [email protected]
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 [email protected]

Weakness enumeration for CVE-2025-30208

GitHub Security Advisory for CVE-2025-30208

GHSA-x574-m823-4x7w · Severity: medium · Ecosystem: npm — Vite bypasses server.fs.deny when using ?raw??

OS Trackers for CVE-2025-30208

vendor priority summary link
redhat medium https://access.redhat.com/security/cve/CVE-2025-30208

Affected software / configurations for CVE-2025-30208

Vendor Product Version Raw CPE
vitejs vite < 4.5.10 cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
vitejs vite >= 5.0.0, < 5.4.15 cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
vitejs vite >= 6.0.0, < 6.0.12 cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
vitejs vite >= 6.1.0, < 6.1.2 cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
vitejs vite >= 6.2.0, < 6.2.3 cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*

References for CVE-2025-30208

cvelogic Threat Intelligence