Skip to content

Vite

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

CVE-2025-30208Published 24 Mar 2025, 17:03 UTC

Real-world risk

2.5/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

5.3

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
ViteUbiquitous< 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.34.5.10, 5.4.15, 6.0.12, 6.1.2, 6.2.3

What to do

Update to a fixed version: 4.5.10, 5.4.15, 6.0.12, 6.1.2, 6.2.3.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T4: Weaponized (× 1.00)

A Metasploit module, a Nuclei template, or a verified Exploit-DB entry

  • Exploit-DB entry (link)
  • Public proof of concept on GitHub
  • Public proof of concept on GitHub
  • Public proof of concept on GitHub
  • Public proof of concept on GitHub
  • Public proof of concept on GitHub
  • Public proof of concept on GitHub
  • Public proof of concept on GitHub
  • Public proof of concept on GitHub
  • Public proof of concept on GitHub
  • Public proof of concept on GitHub
  • Public proof of concept on GitHub
  • Nuclei scanner template (link)
  • CISA SSVC: proof of concept

EPSS 74.8% chance of exploitation in 30 days (percentile 100), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.315
  2. Threat T4: Weaponized1.000
  3. 10 × impact 0.8 × prerequisites 0.315 × threat 12.520
  4. Rounded to one decimal between 0.1 and 102.5

How the score works

Exploitation and evidence timeline

  1. 24 Mar 2025 Published
  2. 3 Dec 2026 Exploit-DB entry first seen
  3. 3 Dec 2026 Public proof of concept on GitHub first seen
  4. 3 Dec 2026 Public proof of concept on GitHub first seen
  5. 3 Dec 2026 Public proof of concept on GitHub first seen
  6. 3 Dec 2026 Public proof of concept on GitHub first seen
  7. 3 Dec 2026 Public proof of concept on GitHub first seen
  8. 3 Dec 2026 Public proof of concept on GitHub first seen
  9. 3 Dec 2026 Public proof of concept on GitHub first seen
  10. 3 Dec 2026 Public proof of concept on GitHub first seen
  11. 3 Dec 2026 Public proof of concept on GitHub first seen
  12. 3 Dec 2026 Public proof of concept on GitHub first seen
  13. 3 Dec 2026 Public proof of concept on GitHub first seen
  14. 3 Dec 2026 Nuclei scanner template first seen
  15. 3 Dec 2026 CISA SSVC: proof of concept first seen
  16. 3 Dec 2026 Risk 2.5 (cvss fallback)

Weakness

CWE-200, CWE-284

References

Get alerts for Vite

Free email or text alerts when a vulnerability in Vite reaches risk 8 or higher. Nothing else.