7.5

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

Analyzed
AliasesGHSA-x574-m823-4x7wCGA-2334-66w2-w5fqCGA-395r-jgmj-f2vp
Published 24-03-2025Last modified 24-03-2025

Vulnerability summary

CVE-2025-30208 is a high (CVSS 7.5) vulnerability in vitejs vite. EPSS estimates a 74.77% chance of exploitation in the next 30 days, higher than 99.5% of scored vulnerabilities. 2 public exploits are recorded.

Priority
Routine

Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
74.77%
0%100%
Critical · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits2github, exploit-database

Advisory lineage

Upstream 0 · Downstream 0 · Related 5

Timeline

  1. 24-03-2025
    PublishedVulnerability first disclosed.
  2. 24-03-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

74.77%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

No change 0.00 pp

From 74.77% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

2 found
  • githubUnverified

    Vite

    Maturity: poc

  • exploit-databaseremotemultipleUnverified

    Vite 6.2.2 - Arbitrary File Read

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard2 products
  • langfuse-2-worker< 2.95.12-r26
  • langfuse-fips-2-worker< 2.95.12-r28
Npm1 product
  • 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
Vitejs1 product
  • vite< 4.5.10 | ≥ 5.0.0, < 5.4.15 | ≥ 6.0.0, < 6.0.12 | ≥ 6.1.0, < 6.1.2 | ≥ 6.2.0, < 6.2.3

3 vendors · 4 products

References

9 links