Live threats

All CVEs / Vite

CVE-2025-31125Vitejs

Information Disclosure in Vite via Improper File Access Control

High 7.5 KEV No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
In KEV since
Jan 22, 2026
CISA deadline
Feb 12, 2026
Ransomware use
Unknown
Published
Mar 31, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200, CWE-284
SSVC (CISA)
Exploitation: active · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

Vite exposes content of non-allowed files using ?inline&import or ?raw?import parameters when the dev server is exposed to the network. An unauthenticated attacker can access sensitive files if the application uses --host or server.host option. CISA confirmed this vulnerability is actively exploited.

AI-generated summary (Claude) based on NVD and CISA data. Not reviewed yet: check the details in the vendor advisory.

Show the original NVD text

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.

Source text, unmodified. NVD.

Exploitation confirmed by CISA

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.

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

Source text, unmodified. CISA KEV.

What to do

Patch available · fixed versions: 4.5.11, 5.4.16, 6.0.13, 6.1.3, 6.2.4

Update Vite to version 4.5.11, 5.4.16, 6.0.13, 6.1.3, or 6.2.4 depending on your branch. Avoid exposing the dev server to the network in production.

Vendor advisory · github.com ↗

AI-generated from public data; not reviewed.

  1. Apply the vendor's security update for Vitejs.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was February 12, 2026.
  3. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
  4. Check logs for signs of earlier exploitation.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm vite ≥ 6.2.0 < 6.2.4 6.2.4 npm install vite@6.2.4
npm vite ≥ 6.1.0 < 6.1.3 6.1.3 npm install vite@6.1.3
npm vite ≥ 6.0.0 < 6.0.13 6.0.13 npm install vite@6.0.13
npm vite ≥ 5.0.0 < 5.4.16 5.4.16 npm install vite@5.4.16
npm vite < 4.5.11 4.5.11 npm install vite@4.5.11

Per OSV / GitHub Advisories (GHSA-4r4m-qw57-chr8). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
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

Official sources

References

Links published by the sources. Open them with care.