CVE-2025-30208 json
Vite bypasses server.fs.deny when using `?raw??`
published 2025-03-24 19 mo ago modified 2026-09-10 1 mo ago also EUVD-2025-8079 , GHSA-x574-m823-4x7w
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 74.8%
- EPSS 74.8% chance of exploitation in 30 days, percentile 99.5%
- public exploits
- 1
- Exploit-DB, plus a Nuclei check
Summary
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.
Patch / fix
- npm vite 4.5.10, 5.4.15, 6.0.12, 6.1.2, 6.2.3
- vitejs vite 4.5.10, 5.4.15, 6.0.12, 6.1.2, 6.2.3
- github.com/vitejs/vite@315695e commit
- github.com/vitejs/vite@80381c3 commit
- github.com/vitejs/vite@807d7f0 commit
- github.com/vitejs/vite@92ca12d commit
- github.com/vitejs/vite@f234b57 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-30208 updated cvss 5.3
vite: Vite bypasses server.fs.deny when using `?raw??`
-
Red Hat Ansible Automation Platform 2 automation-gateway, automation-controlleraffected: no fix planned “Out of support scope”
-
Red Hat OpenShift distributed tracing 3 rhosdt/tempo-rhel8, rhosdt/tempo-query-rhel8, rhosdt/tempo-gateway-rhel8, rhosdt/tempo-rhel8-operator, rhosdt/tempo-gateway-opa-rhel8, rhosdt/tempo-jaeger-query-rhel8affected: no fix available, no fix planned “Out of support scope”
-
Red Hat Ansible Automation Platform 2 automation-eda-controller Red Hat JBoss Enterprise Application Platform 8 org.keycloak-keycloak-parent Red Hat JBoss Enterprise Application Platform Expansion Pack org.keycloak-keycloak-parentnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (EDB-52111)
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
74.77% chance of exploitation in the next 30 days, higher than 99.5% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-52111 Vite 6.2.2 - Arbitrary File Read remote, 2025-04-03
- Nuclei template Vite - Arbitrary File Read nuclei detection template
- github.com https://github.com/vitejs/vite/security/advisories/GHSA-x574-m823-4x7w referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | vite | >=6.2.0, <6.2.3 >=6.1.0, <6.1.2 >=6.0.0, <6.0.12 >=5.0.0, <5.4.15 <4.5.10 |
6.2.3 6.1.2 6.0.12 5.4.15 4.5.10 |
Affected products
- vitejs vite
Classification
References
-
github.com
/vitejs/vite/commit/315695e9d97cc6cfa7e6d9e0229fb50cdae3d9f4
web, patch
-
github.com
/vitejs/vite/commit/80381c38d6f068b12e6e928cd3c616bd1d64803c
web, patch
-
github.com
/vitejs/vite/commit/807d7f06d33ab49c48a2a3501da3eea1906c0d41
web, patch
-
github.com
/vitejs/vite/commit/92ca12dc79118bf66f2b32ff81ed09e0d0bd07ca
web, patch
-
github.com
/vitejs/vite/commit/f234b5744d8b74c95535a7b82cc88ed2144263c1
web, patch
-
github.com
/vitejs/vite/security/advisories/GHSA-x574-m823-4x7w
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-30208
advisory
-
github.com
/vitejs/vite
package
Sources
- CVE List CVE-2025-30208
- GitHub Advisory GHSA-x574-m823-4x7w
- NVD CVE-2025-30208
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.