Security Digest · Vulnerability record · Known exploited

CVE-2025-31125: Vite Vitejs Improper Access Control Vulnerability

Exploited in the wild (CISA KEV). Vite is a frontend tooling framework for javascript.

CISA KEV · added 2026-01-22 CVSS 5.3 Medium EPSS 65.2% · p99

Should you act?

Exploited: patch now if you run it

CISA has confirmed exploitation in the wild. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

  • Yes, if you run Vite Vitejs. CISA added this CVE to its Known Exploited Vulnerabilities catalog on 2026-01-22, which means there is reliable evidence of exploitation in the wild. US federal agencies must remediate by 2026-02-12; treat that as the outer limit, not the target.
  • EPSS 65.2%, percentile 99: FIRST’s model estimates a 65.2% chance of exploitation activity in the next 30 days, higher than 99% of all scored CVEs (very high). EPSS is a probability, not a verdict.
  • Needs a user to click or open something. Phishing makes that realistic, but it is not wormable.

What it is

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’s summary

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.

Weakness type: CWE-200, CWE-284.

Product: Vite Vitejs · Assigned by: GitHub_M · Published: 2025-03-31

Affected and fixed versions

VendorProductAffected versions (per CVE record)
vitejsvite>= 6.2.0, < 6.2.4, >= 6.1.0, < 6.1.3, >= 6.0.0, < 6.0.13, >= 5.0.0, < 5.4.16, < 4.5.11

Severity scores

Scored byCVSSScoreVector
GitHub_M3.15.3 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Attack vector: network (remotely reachable)
  • Attack complexity: high (needs special conditions)
  • Privileges required: none (no login)
  • User interaction: required (a user must click/open something)
  • Scope: unchanged

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

  • CISA KEV: added 2026-01-22; federal due date 2026-02-12. Known ransomware use: Unknown.
  • 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 SSVC assessment: exploitation active, automatable no, technical impact total.
  • FIRST EPSS (model of 2026-10-21): 65.19% probability of exploitation activity in the next 30 days; percentile 99.

Timeline

  • — CVE record published by GitHub_M
  • — Added to CISA’s Known Exploited Vulnerabilities catalog
  • — CVE record last updated
  • — CISA remediation deadline for US federal agencies

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vendor and project advisories, patches

  1. Listed in CISA KEV notes (github.com) github.com

Vulnerability records

  1. CVE.org record CVE-2025-31125 cve.org
  2. NVD entry CVE-2025-31125 nvd.nist.gov

Government

  1. CISA Known Exploited Vulnerabilities catalog entry cisa.gov

Other references from the CVE record and advisory

  1. github.com github.com

All exploited Vite vulnerabilities · Today’s Security Digest