CVE-2025-31125
CVE-2025-31125 · Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline&import or ?raw?import. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. This vulnerability is fixed in 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11.
CVSS 5.3 · Medium · EPSS 65.8% · In KEV · Public exploit · Fix available
- Published
- Updated
Stack: node
Affected products and versions
vite
- Versions
- >= 6.2.0, < 6.2.4: Affected
- >= 6.1.0, < 6.1.3: Affected
- >= 6.0.0, < 6.0.13: Affected
- >= 5.0.0, < 5.4.16: Affected
- < 4.5.11: Affected
No fix published
vite npm
- Affected ranges
- SEMVER: ≥ 6.2.0, < 6.2.4
Update to 6.2.4
vite npm
- Affected ranges
- SEMVER: ≥ 6.1.0, < 6.1.3
Update to 6.1.3
vite npm
- Affected ranges
- SEMVER: ≥ 6.0.0, < 6.0.13
Update to 6.0.13
vite npm
- Affected ranges
- SEMVER: ≥ 5.0.0, < 5.4.16
Update to 5.4.16
vite npm
- Affected ranges
- SEMVER: < 4.5.11
Update to 4.5.11