Actively exploited vulnerability
Vitejs: improper access control flaw under attack
CVE-2025-31125 · Vite Vitejs Improper Access Control Vulnerability
What is affected
Vitejs is mostly run by companies, schools and public bodies, not on home computers. You are unlikely to have it yourself, but organisations that hold your data may. Breaches that start with flaws like this one are how personal data ends up leaked.
Vite Vitejs contains an improper access control vulnerability that 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.
What an attacker can do
This is a improper access control flaw. It lets an attacker perform actions or reach data that should be restricted to authorised users.
- How it is reached
- Over the internet or network
- Access the attacker needs
- No account needed
- Does the victim have to do something?
- No, works without the victim doing anything
What to do
- At home: nothing to install. Keep your own devices updated and use a different password for every service, so that a breach at one organisation does not open your other accounts.
- If you administer Vitejs at work: apply the vendor's fix or mitigation now and review logs for signs of compromise, because the flaw was being exploited before it was listed.
- If the product is past its support date and no fix exists, take it off the internet or retire it.
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Vendor advisories and fixes
- github.comgithub.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
How urgent is it
CISA added this vulnerability to its Known Exploited Vulnerabilities catalogue on January 22, 2026, which means there is reliable evidence of attacks in the wild. US federal agencies must fix it by February 12, 2026, a deadline that has already passed. That deadline does not bind anyone else, but it shows how seriously the agency rates it.
The EPSS model estimates a 65% probability that this flaw will be exploited somewhere in the next 30 days. That is higher than 99.2% of all scored vulnerabilities.
Its CVSS severity score is 7.5 out of 10 (high), as recorded in the US National Vulnerability Database.
Technical 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.