Threats / Vite / CVE-2025-31125
CVE-2025-31125
· EUVD no mirror located
· GCVE no mirror located
Verified 2026-06-22
Vite Vitejs vulnerability
Vite dev server contains an improper access control vulnerability allowing unauthorized file content exposure through query parameters when the server is exposed to the network.
Verdict
Today item — known-exploited.
An attacker on the network can bypass access controls in Vite's dev server to read non-allowed files by manipulating inline and raw import query parameters, affecting applications with network-exposed dev servers.
01
Is it exploitable?
— the evidence, ranked above the scoreExploit available
Public proof-of-concept exploit code is cataloged for this vulnerability.We link the existence of the exploit; we do not host or redistribute payloads.
Reported exploitation
3 independent public reports of in-the-wild exploitation are cataloged.Distinct reporting sources (vendor, incident response, government); open them for the underlying claims.
Exploited in the wild
Listed in the CISA Known Exploited Vulnerabilities catalog (added 2026-01-22).
Probability (EPSS)
EPSS 0.60288 — modeled likelihood of exploitation activity.EPSS is a daily-changing model output — open the source for today's value.
Severity / affected
Affected: Vite, Vitejs. Confirm exact fixed builds in the vendor advisory.
Weakness (CWE)
Mapped to CWE-200 Information Exposure, CWE-284 Improper Access Control — weakness family: Authorization / access control.CWE assignment from the public NVD record; the weakness class drives how the flaw is exploited.
WeaknessCWE-200 · Information ExposureCWE-284 · Improper Access ControlAuthorization / access control
02
Who’s exploiting it?
— attribution turns risk into urgencyAttribution not established
No confirmed (advisory-backed) threat-actor attribution is established for this record. Absence of a named actor is not absence of compromise — see Coverage & confidence.
03
Why it matters
— the attack path, told twice: adversary, then board1
Front door — unauthenticated access narrative 1
Attacker
I craft HTTP requests with ?inline&import or ?raw?import query parameters to the exposed Vite dev server.
Business
Source code, configuration files, and other sensitive application content become readable to network-based attackers.
2
Keys to the kingdom — privilege/identity takeover narrative 2
Attacker
I enumerate accessible files by testing various paths and parameter combinations against the dev server.
Business
Intellectual property and secrets embedded in the codebase are compromised, increasing breach scope and regulatory exposure.
3
Lateral reach — past segmentation narrative 3
Attacker
I extract environment variables, API keys, or database credentials visible in exposed configuration or source files.
Business
Downstream systems and services become compromised, enabling lateral movement and further infrastructure attacks.
04
What to do
— defensible action- Remediate per the vendor advisory — confirm the fixed build for your version and verify exposure.1
Say it to the boardA vulnerability with this evidence profile is a defensible budget line, not a backlog ticket — fund the change against the proof above.
05