What’s Vulnerable › Vulnerabilities

CVE-2025-31125: Vite Vitejs Improper Access Control Vulnerability

Description

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.

Affected products

How to fix

Upgrade to a fixed version: vitejs vite 4.5.11, 5.4.16, 6.0.13, 6.1.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-31125 or the next vulnerability affects your stack