CVE-2024-31207vitejs vite
Medium 5.9 No auth needed
Follow: this CVE · vitejs · vitejs vite We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 3.1
- 5.9
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 55
- Auth required
- No
- Published
- Apr 4, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
Vite (French word for "quick", pronounced /vit/, like "veet") is a frontend build tooling to improve the frontend development experience.`server.fs.deny` does not deny requests for patterns with directories. This vulnerability has been patched in version(s) 5.2.6, 5.1.7, 5.0.13, 4.5.3, 3.2.10 and 2.9.18.
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 |
≥ 2.7.0 < 2.9.18 |
2.9.18 |
npm install vite@2.9.18 |
| npm | vite |
≥ 3.0.0 < 3.2.10 |
3.2.10 |
npm install vite@3.2.10 |
| npm | vite |
≥ 4.0.0 < 4.5.3 |
4.5.3 |
npm install vite@4.5.3 |
| npm | vite |
≥ 5.0.0 < 5.0.13 |
5.0.13 |
npm install vite@5.0.13 |
| npm | vite |
≥ 5.1.0 < 5.1.7 |
5.1.7 |
npm install vite@5.1.7 |
| npm | vite |
≥ 5.2.0 < 5.2.6 |
5.2.6 |
npm install vite@5.2.6 |
Per OSV / GitHub Advisories (GHSA-8jhw-289h-jh2g). 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.