CVE-2025-30208
Vite bypasses server.fs.deny when using `?raw??`
Public exploit available. Not confirmed exploited in the wild yet. A vendor fix is available.
What to do
The vendor has published a fix. Version details are below where the sources state them.
Steps
Written by AI from the record- Check whether your business uses Vite (especially any public-facing Vite dev server or internal tool exposed to users) and whether
server.fs.denyis configured to block sensitive paths. - Verify you are on a Vite version older than 6.2.3 (and not one of the listed safe versions) by checking your project’s installed
vitepackage version. - Upgrade Vite to the fixed release:
vitefixed in 6.2.3. - After upgrading, test that requests using the
?raw??pattern no longer return blocked files (e.g., try fetching a known-to-be-denied path through your app’s usual routes). - If you cannot upgrade immediately, reduce exposure by ensuring the Vite dev server is not reachable from untrusted networks/users and limit who can access it.
npm install vite@^6.2.3What it is
From the CVE record
Vite bypasses server.fs.deny when using ?raw??
In plain language
Written by AI from the recordVite can be tricked into serving files from inside your server even when your settings explicitly block those files, and this requires an attacker to reach your dev server and prompt a victim to open a crafted link.
In Vite, the server’s file-blocking rule `server.fs.deny` can be bypassed via a special `?raw??`-style request, allowing network-reachable retrieval of blocked files without authentication; exploitation appears to be in the wild (sustained press attention).
If you're affected
- Confidential source code exposure
- Secrets and config file exposure
- Intellectual property theft risk
- Targeted insider-data leakage
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
1 source with a proof of concept or module.
Exploit links, PoCs and Metasploit modules after sign-in- EPSS
75% chance of exploitation activity in the next 30 days, which ranks it in the 99th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
The patch came 164 days before any public exploit.
- OpenVAS check added
- Public exploit / PoCsource: github-poc
- Nuclei check added
- Patch availablerecord updated
- Publishedweakness classified, att&ck mapped
Affected products
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Scored 5.3 by NVD.
How it is reached
- Attack Vector NetworkExploitable remotely over the network without any special conditions
- Attack Complexity HighRequires specific conditions like a race condition or non-default configuration
- Privileges Required NoneNo authentication required — anyone can exploit this
- User Interaction RequiredA user must click a link, open a file, or perform some action
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity NoneNo integrity impact
- Availability NoneNo availability impact
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
Sources
References in the record
- github.com/vitejs/vite/security/advisories/GHSA-x574-m823-4x7w
- nvd.nist.gov/vuln/detail/CVE-2025-30208
- github.com/vitejs/vite/commit/315695e9d97cc6cfa7e6d9e0229fb50cdae3d9f4
And 12 more references. See all after sign-in
In the news
Watch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Vite, not every advisory. This one: public exploit.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI