Skip to main content
Exploitation reportedNot in CISA KEV yetFix available

CVE-2025-30208

Exploitation reported by one source. First attested on 2026-04-06 by GCVE · kevintel.

  • Published2025-03-24
  • Fixed in6.2.3 · 6.1.2 · 6.0.12 · 5.4.15 · 4.5.10
  • WeaknessCWE-200 · CWE-284

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2025-03-2417:15CVE publishedNVD
  2. 2025-04-03Exploit-DB entryExploit-DB
  3. 2026-04-0619:42Listed as exploited by GCVEGCVE
  4. 2026-04-0619:42Exploitation first reportedGCVE

Versions per branch

NVD · OSV
Vitejs vite
BranchAffectedFixed in
6.2≥ 6.2.0, < 6.2.36.2.3
6.1≥ 6.1.0, < 6.1.26.1.2
6.0≥ 6.0.0, < 6.0.126.0.12
5.x≥ 5.0.0, < 5.4.155.4.15
4.5< 4.5.104.5.10

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • vitejs vite
    Affected
    • = < 4.5.10no fix stated
    • = >= 5.0.0, < 5.4.15no fix stated
    • = >= 6.0.0, < 6.0.12no fix stated
    • = >= 6.1.0, < 6.1.2no fix stated
    • = >= 6.2.0, < 6.2.3no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-03-24

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • @rootio/viteRoot:npmall versions · fixed in 2.9.18-root.io.1
  • @rootio/viteRoot:npmall versions · fixed in 2.9.18-root.io.2
  • @rootio/viteRoot:npmall versions · fixed in 2.9.18-root.io.3
  • langfuse-2-workerChainguardall versions · fixed in 2.95.12-r26
  • langfuse-fips-2-workerChainguardall versions · fixed in 2.95.12-r28
  • trigger-devMinimOSall versions · fixed in 4.5.11-r1
  • viteTuxCare:npmfrom 5.4.14-tuxcare.0 · fixed in 5.4.14-tuxcare.1and 1 other package
  • viteTuxCare:npmfrom 4.5.5-tuxcare.0 · fixed in 4.5.5-tuxcare.1

8 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-30208 Red Hat Product Security8 known affected

    vite: Vite bypasses server.fs.deny when using `?raw??`

    automation-controller.src as a component of Red Hat Ansible Automation Platform 2 · automation-gateway.src as a component of Red Hat Ansible Automation Platform 2 · rhosdt/tempo-gateway-opa-rhel8 as a component of Red Hat OpenShift distributed tracing 3 · +5 more

Full record on NVD

Fix

  1. Update Vitejs vite to 6.2.3 · 6.1.2 · 6.0.12 · 5.4.15 · 4.5.10
  2. No fix available, says the vendor Red Hat Product Security CVE-2025-30208 · 1 productAffected
  3. No fix planned, says the vendor Red Hat Product Security CVE-2025-30208 · 7 productsOut of support scope

Advisories and patches

Detection

read 2026-11-02 22:43 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
EDB-52111
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
2025-03-24
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-x574-m823-4x7w

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.

Is CVE-2025-30208 actively exploited?

A proof-of-concept exploit exists for CVE-2025-30208, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2025-30208?

CVE-2025-30208 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

Running vite? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record