CVE-2025-31125

HIGH CISA KEV EPSS 99.1%
Published Mar 31, 20251y ago · Modified Jun 17, 20261w ago
7.5 CVSS 3.1
High
Find Similar
Published Mar 31, 2025 1y ago
Last Modified Jun 17, 2026 1w ago
KEV Listed Jan 22, 2026 5mo ago
KEV Due Feb 12, 2026 138d overdue

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 Details

Base Score
7.5
Exploitability
3.9
Impact
3.6
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality High
Integrity None
Availability None

Threat Intelligence

CISA Known Exploited Overdue 138d
Added
Jan 22, 2026
Due
Feb 12, 2026

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

EPSS Exploit Probability
99.1% percentile
Exploit & Patch Status
Actively Exploited (KEV)
Patch Available

Weaknesses 2

CWE-200 Exposure of Sensitive Information to an Unauthorized Actor Information Exposure
CWE-284

Affected Products 5

VendorProductVersionRange
vitejsvite* <4.5.11
vitejsvite*≥5.0.0  –  <5.4.16
vitejsvite*≥6.0.0  –  <6.0.13
vitejsvite*≥6.1.0  –  <6.1.3
vitejsvite*≥6.2.0  –  <6.2.4

References 3

  • github.com https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
    Patch
  • github.com https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8
    ExploitVendor Advisory
  • cisa.gov https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125
    US Government Resource

Remediation

  • github.com https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
    Patch