Vulnerabilities

CVE-2025-31125

Vite Vitejs Improper Access Control Vulnerability

Actively exploited (CISA KEV) High 7.5 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2025-03-31
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
58.8 % higher than 99 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Actively exploited

CISA added this vulnerability to the Known Exploited Vulnerabilities catalogue on 2026-01-22, with a remediation deadline of 2026-02-12 for US federal agencies.

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.

Affected products

Vendor Product Versions Status
vite (npm) < 4.5.11 Affected
vite (npm) ≥ 5.0.0, < 5.4.16 Affected
vite (npm) ≥ 6.0.0, < 6.0.13 Affected
vite (npm) ≥ 6.1.0, < 6.1.3 Affected
vite (npm) ≥ 6.2.0, < 6.2.4 Affected
Vitejs Vite < 4.5.11 Affected
Vitejs Vite ≥ 5.0.0, < 5.4.16 Affected
Vitejs Vite ≥ 6.0.0, < 6.0.13 Affected
Vitejs Vite ≥ 6.1.0, < 6.1.3 Affected
Vitejs Vite ≥ 6.2.0, < 6.2.4 Affected

Weakness type

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1007: System Service Discovery discovery
  • T1014: Rootkit stealth
  • T1016: System Network Configuration Discovery discovery
  • T1018: Remote System Discovery discovery
  • T1027.009: Embedded Payloads stealth
  • T1033: System Owner/User Discovery discovery
  • T1036.005: Match Legitimate Resource Name or Location stealth
  • T1037: Boot or Logon Initialization Scripts persistence, privilege-escalation
  • T1046: Network Service Discovery discovery
  • T1049: System Network Connections Discovery discovery
  • T1057: Process Discovery discovery
  • T1069: Permission Groups Discovery discovery
  • T1080: Taint Shared Content lateral-movement
  • T1082: System Information Discovery discovery
  • T1083: File and Directory Discovery discovery
  • T1087: Account Discovery discovery
  • T1111: Multi-Factor Authentication Interception credential-access
  • T1120: Peripheral Device Discovery discovery
  • T1124: System Time Discovery discovery
  • T1134.001: Token Impersonation/Theft stealth, privilege-escalation

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities