Skip to content

CVE-2025-31125

Vite Vitejs Improper Access Control

5.3 MEDIUMActively exploited (CISA KEV)Public exploitEPSS 74.9%
  1. Published31 Mar 2025
  2. Added to CISA KEV22 Jan 2026
  3. Remediation due12 Feb 2026
5.3CVSS 3.1 scoreMEDIUM
Exploit probability (EPSS)74.9%
100th percentile of all scored CVEs
Actively exploited (CISA KEV)

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.

Added to KEV: 22 Jan 2026Federal remediation due: 12 Feb 2026
01

In short

CVE-2025-31125 (Vite Vitejs Improper Access Control) has a CVSS 3.1 base score of 5.3, rated medium. CISA added it to the Known Exploited Vulnerabilities catalog on 22 Jan 2026. Fixed in Vitejs Vite 5.4.16 or later.

02

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.

03

CVSS 3.1 breakdown

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
04

Affected products

  • Vitejs Vite≥ 5.0.0 < 5.4.16 · ≥ 6.0.0 < 6.0.13 · ≥ 6.1.0 < 6.1.3 · ≥ 6.2.0 < 6.2.4

Get Patch this first every Monday

Five vulnerabilities that matter this week, ranked on real exploitation. Plain language, one email, no spam.

You can unsubscribe with one click from every issue. We handle your details as described in our privacy policy.

Data from the NVD, CISA KEV catalog and FIRST EPSS. The CVSS 4.0 base score is shown where the NVD has one, otherwise CVSS 3.1.

06:00 · IN YOUR FLEET

How Secuno handles this

Secuno matches CVE-2025-31125 against the software on every managed device each hour and ranks it by exploit status, EPSS and exposure. Because it is on the CISA KEV list, its fix goes straight to the Emergency patch lane.