Appsecure logo

CVE-2025-30208: Medium Vulnerability in vitejs vite

A medium-severity vulnerability exists in vitejs versions prior to 6.2.3, allowing attackers to access arbitrary files through crafted URLs. Organizations must prioritize remediation to safeguard their applications.

MEDIUMPublic ExploitCVSS 5.3 · Published March 24, 2025

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

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. This vulnerability allows attackers to access arbitrary files through crafted URLs. By appending `?raw??` or `?import&raw??` to the URL, the access restriction imposed by `@fs` can be bypassed, returning the contents of files outside of the Vite serving allow list.

The vulnerability exists due to the removal of trailing separators such as `?` in several places, which are not accounted for in query string regexes. Only applications that explicitly expose the Vite dev server to the network (using `--host` or `server.host` configuration options) are affected by this issue.

Versions 6.2.3, 6.1.2, 6.0.12, 5.4.15, and 4.5.10 have been released to fix this issue. Organizations should prioritize patching immediately to mitigate potential risks.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.