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

In short

CVE-2025-31125 is a vulnerability in Vite Vitejs that attackers are exploiting. Vite Vitejs contains an improper access control vulnerability that exposes content of non-allowed files using ?inline&import or ?raw?import. CISA added it to its Known Exploited Vulnerabilities catalog on 22 Jan 2026, and US federal agencies had to fix it by 12 Feb 2026. CISA has not linked it to ransomware campaigns.

What is CVE-2025-31125?

CISA describes it as: 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: CWE-200, CWE-284.

Is CVE-2025-31125 being exploited?

Yes. CISA adds a vulnerability to the catalog only when it has evidence of exploitation in the wild, and it added CVE-2025-31125 on . CISA has not linked it to ransomware campaigns.

FIRST's EPSS model puts the chance of exploitation in the next 30 days at 15%, higher than 97% of scored CVEs (as of 29 Nov 2026).

How severe is CVE-2025-31125?

NVD scores it 7.5 (high) on CVSS 3.1. CVSS measures how bad a flaw is; EPSS and the KEV listing say how likely it is to be used.

How do you fix CVE-2025-31125?

CISA's 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.

Vendor guidance: github.com.

US federal agencies had until . For everyone else that date is a ceiling, not a target.

Which versions are affected?

CISA's catalog does not list version numbers. The vendor advisory and the NVD record list the affected and fixed versions.

Sources

  1. CISA Known Exploited Vulnerabilities catalog: CVE-2025-31125
  2. NIST National Vulnerability Database: CVE-2025-31125
  3. CVE record
  4. FIRST Exploit Prediction Scoring System (EPSS)
  5. github.com

Data last updated · Compiled by Rokkhe Research from CISA, FIRST and NVD. This page uses the NVD API and is not endorsed or certified by the NVD.

Put your attack surface on the record.

Agree the scope, see a real finding, leave with a quote.

Scope approved first. Evidence with every finding.