Skip to content

CVE-2025-31125

Vite Vitejs Improper Access Control

5.3 MEDIUMActively exploited (CISA KEV)Public exploitEPSS 65.2%
  1. Published31 Mar 2025
  2. Added to CISA KEV22 Jan 2026
  3. Remediation due12 Feb 2026
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

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.

CVSS 3.1 breakdown

Attack vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionRequired
ScopeUnchanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

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

Frequently asked

Is CVE-2025-31125 being actively exploited?

Yes. CVE-2025-31125 is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added 22 Jan 2026.

How severe is CVE-2025-31125?

CVE-2025-31125 has a CVSS 3.1 base score of 5.3, rated medium. EPSS estimates a 65.2% probability of exploitation.

Which products are affected by CVE-2025-31125?

Affected products include Vitejs Vite.

How do I fix CVE-2025-31125?

Upgrade affected software to a fixed version, for example Vitejs Vite 5.4.16 or later, then confirm no affected versions remain in your inventory.

How Secuno handles this

Secuno correlates vulnerabilities like CVE-2025-31125 against the real software inventory on every managed device, every day. Rather than a static severity, each match is scored in context: exploit availability, EPSS, the asset's exposure, and business criticality decide where it lands in the queue. Because it is on the CISA KEV list, Secuno flags any affected asset as top-priority automatically. If an affected version is present anywhere across your portfolio, it surfaces automatically with a prioritised remediation path.

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. CVSS 3.1 base score shown where available.