cvelo
P1 · CriticalIn CISA KEV since Jan 22, 2026EPSS 75%

Vite Vitejs Improper Access Control Vulnerability

  • CVE-2025-31125

Summary

CVE-2025-31125 is an improper access control vulnerability in Vite, the Vitejs build tool. Requests using the ?inline&import or ?raw?import query parameters can expose the contents of files that are not on the allowed list. Only applications that explicitly expose the Vite dev server to the network, through the --host flag or the server.host configuration option, are affected. The record is listed in CISA's known exploited vulnerabilities catalog, and no CVSS score is given in the data.

AI summary · verify against the vendor advisory

Description

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.

Text from the CISA KEV record.

Required action

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

From CISA KEV · due for US federal agencies by Feb 12, 2026

Recommendation

  • vitejs vite

    • If you run 6.2.xupdate to 6.2.4 or laterPatch update: breaking changes are unlikely
    • If you run 6.1.xupdate to 6.1.3 or laterPatch update: breaking changes are unlikely
    • If you run 6.0.xupdate to 6.0.13 or laterPatch update: breaking changes are unlikely
    • If you run a version from 5.0.0 to before 5.4.16update to 5.4.16 or laterMinor version change: check the release notes
    • If you run a version before 4.5.11update to 4.5.11 or later

Taken from the version ranges of the NVD record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • vitejs vite

    Affected versionsFixed in
    from 6.2.0 to before 6.2.46.2.4
    from 6.1.0 to before 6.1.36.1.3
    from 6.0.0 to before 6.0.136.0.13
    from 5.0.0 to before 5.4.165.4.16
    before 4.5.114.5.11

Product versions from the NVD record.

Timeline

  1. Added to CISA KEV
  2. EPSS first scored at 75%

Related news

No article from the followed outlets names this vulnerability.