Skip to content
Fencer Vulns
medium 5.3

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

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-controller
    affected: 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-rhel8
    affected: 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-parent
    not 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

  1. Published
  2. 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

Weakness
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-284 Improper Access Control

References

Sources

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.