Vite allows any websites to send any requests to the development server and read the response (vitejs vite)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.30 % · percentile 24 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- Affected products
- vitejs · vite
- NVD status
- Analyzed
Description
Vite is a frontend tooling framework for javascript. Vite allowed any websites to send any requests to the development server and read the response due to default CORS settings and lack of validation on the Origin header for WebSocket connections. This vulnerability is fixed in 6.0.9, 5.4.12, and 4.5.6.
Weaknesses (CWE)
- CWE-346 — Origin Validation Error
- CWE-350 — Reliance on Reverse DNS Resolution for a Security-Critical Action
- CWE-1385 — Missing Origin Validation in WebSockets
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N | NVD · security-advisories@github.com (Secondary) |
Advisories
- GHSA-vg6x-rcgg-rjx6 — Websites were able to send any requests to the development server and read the response in vite
European references
- ENISA EUVD · EUVD-2025-0195
- GCVE · GCVE-0-2025-24010
Affected configurations (NVD CPE)
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*< 4.5.5cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*≥ 5.0.0 < 5.4.12cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*≥ 6.0.0 < 6.0.9
Affected products
| Product | Affected versions |
|---|---|
| vitejs · vite | affected : >= 6.0.0, < 6.0.9 affected : >= 5.0.0, < 5.4.12 affected : < 4.5.6 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |