LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

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

RBRecent Breaches Vulnerability Intelligence·Jan 22, 2026
High⚠ Actively exploited (CISA KEV)
High
Severity
Active
CISA KEV
No
Ransomware use
Feb 12, 2026
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2025-31125 to its Known Exploited Vulnerabilities catalog on Jan 22, 2026, with a federal patch deadline of Feb 12, 2026 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

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…

Vite is a development server and build tool used in many JavaScript and TypeScript projects. CVE-2025-31125 is an improper access control weakness that can let an attacker retrieve the contents of files that should remain inaccessible when the Vite development server is deliberately exposed to the network.

How it works

The vulnerability is classified under CWE-200 and CWE-284. It stems from insufficient access control checks in the handling of specific query parameters on the development server. An attacker who can reach the server may request files using the parameters ?inline&import or ?raw?import and receive their contents even when those files are outside the intended public directory or otherwise restricted.

Exploitation requires the server to be reachable from the network. The issue does not affect typical local-only usage.

Am I affected? How to find it in your systems

Vite runs as a local development server during application development and testing. It is commonly present in frontend codebases that use modern JavaScript frameworks. Begin by searching project files for vite.config, package.json entries that list vite as a dependency, or scripts that invoke the vite command.

Exact affected versions and configurations must be confirmed against the vendor advisory.

How to remediate

Apply the vendor-supplied update referenced in the official advisory. After patching, review all Vite configurations and remove or restrict any use of --host or server.host unless network exposure is explicitly required and additional controls are in place.

If you can't patch immediately

Until the update can be applied, prevent network exposure of the development server. Block inbound connections to the Vite port at the host firewall or container network policy. If temporary network access is unavoidable, place the server behind an authenticated reverse proxy or VPN and monitor logs for the specific query parameters mentioned above.

If your data may have been exposed

Actively exploited vulnerabilities of this type can lead to unauthorized access to source code or configuration files. Organizations can run a free exposure scan of their email domains against known breach data to check for related incidents.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedVite · Vitejs
WeaknessCWE-200
Added to CISA KEVJan 22, 2026
Federal patch deadlineFeb 12, 2026
Known ransomware useNot documented
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities