Skip to content
Server Security Center
KEVmedium5.3

CVE-2025-31125: Vite Vitejs Improper Access Control

Vitejs · listed in the CISA catalog of actively exploited vulnerabilities since 2026-01-22.

CVSS v3.1 (CVE record)
5.3
medium
EPSS (exploit probability, 30 days)
75%
higher than 99.5% of all CVEs
Added to CISA KEV
2026-01-22
US federal due date 2026-02-12
Automatable (CISA SSVC)
no
technical impact: total

What is CVE-2025-31125?

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.

CISA 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.

CISA notes

Affected and fixed versions

From the CVE record published by the vendor or CVE numbering authority.

  • vitejs vite
    Affected
    • < 4.5.11
    • 5.0.0
    • < 5.4.16
    • 6.0.0
    • < 6.0.13
    • 6.1.0
    • < 6.1.3
    • 6.2.0
    • < 6.2.4
    Fixed in
    not stated

How to fix it

  • The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
  • Vendor advisory: github.com/vitejs/vite/commit/5967313…
  • CISA's deadline for US federal agencies: 2026-02-12 (passed) – a useful benchmark for everyone else, too.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
No – each attack needs manual steps
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-200 Exposure of Sensitive Information to an Unauthorized Actor, CWE-284 Improper Access Control

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.