CVE-2024-45811vitejs vite
Medium 4.8 No auth needed
Follow: this CVE · vitejs · vitejs vite We alert you by email or Slack (account required).
- Priority
- 44
- CVSS 3.1
- 4.8
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 37
- Auth required
- No
- Published
- Sep 17, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
What happens
Vite a frontend build tooling framework for javascript. In affected versions the contents of arbitrary files can be returned to the browser. `@fs` denies access to files outside of Vite serving allow list. Adding `?import&raw` to the URL bypasses this limitation and returns the file content if it exists. This issue has been patched in versions 5.4.6, 5.3.6, 5.2.14, 4.5.5, and 3.2.11. Users are advised to upgrade. There are no known workarounds for this vulnerability.
What to do
- Apply the vendor's security update for vite.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | vite |
≥ 5.4.0 < 5.4.6 |
5.4.6 |
npm install vite@5.4.6 |
| npm | vite |
≥ 5.3.0 < 5.3.6 |
5.3.6 |
npm install vite@5.3.6 |
| npm | vite |
≥ 5.2.0 < 5.2.14 |
5.2.14 |
npm install vite@5.2.14 |
| npm | vite |
≥ 4.0.0 < 4.5.4 |
4.5.4 |
npm install vite@4.5.4 |
| npm | vite |
< 3.2.11 |
3.2.11 |
npm install vite@3.2.11 |
| npm | vite |
≥ 5.0.0 < 5.1.8 |
5.1.8 |
npm install vite@5.1.8 |
Per OSV / GitHub Advisories (GHSA-9cwx-2883-4wfx). Check the version in your lockfile before upgrading.
Affected products
- vitejs · vite
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.