CVE-2025-31125
CVE-2025-31125 — Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
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.
Published Updated Sources: NVD, vitejs (CNA), CISA, FIRST EPSS, GitHub, GitHub Security Advisory, Red Hat (VEX), SOCRadar CTI
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Confirmed
CISA KEV, listed Jan 22, 2026
EPSS
15%
ahead of 97% of scored CVEs
CVSS base
7.5
high · 2 sources
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
Active
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Remediation
The vendor's own words where we have them.
Upgrade vite to 6.2.4 or later (npm advisory GHSA-4r4m-qw57-chr8).
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.
Federal deadline Feb 12, 2026 — passed 295 days ago
Red Hat VEX · CVE-2025-31125
no_fix_planned: Out of support scope
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Treat as emergency remediation because CISA KEV status is present.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Vitejs | vite | >= 6.2.0, < 6.2.4 | Vulnerable |
| Vitejs | vite | >= 6.1.0, < 6.1.3 | Vulnerable |
| Vitejs | vite | >= 6.0.0, < 6.0.13 | Vulnerable |
| Vitejs | vite | >= 5.0.0, < 5.4.16 | Vulnerable |
| Vitejs | vite | < 4.5.11 | Vulnerable |
| Npm | vite | >= 6.2.0, < 6.2.4 | Vulnerable |
| Npm | vite | >= 6.1.0, < 6.1.3 | Vulnerable |
| Npm | vite | >= 6.0.0, < 6.0.13 | Vulnerable |
| Npm | vite | >= 5.0.0, < 5.4.16 | Vulnerable |
| Npm | vite | < 4.5.11 | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Availability
None
Confidentiality
High
Integrity
None
Scope
Unchanged
Attack Complexity
Low
Attack Vector
Network
Privileges Req
None
User Interaction
None
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.3 | CVSS 3.1 | medium | 1.6 | 3.6 | GitHub (CNA), vitejs (CNA), GHSA, Red Hat (VEX) |
| 7.5 | CVSS 3.1 | high | 3.9 | 3.6 | NVD |
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
What this weakness leads to
MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.
CWE-284 · Improper Access Control
- Varies by Context::
Mitigation: Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.
CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor
- Read Application Data::
Mitigation: Compartmentalize the system to have safe areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.::
Weakness & attack patterns
- CWE-200Exposure of Sensitive Information
- CWE-284Improper Access Control
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1562.003Impair Defenses: Impair Command History Logging
- T1574.006Hijack Execution Flow: Dynamic Linker Hijacking
- T1574.007Hijack Execution Flow: Path Interception by PATH Environment Variable
CISA KEV details
CISA lists a CVE here once it has evidence of exploitation against real targets.
Listed
Jan 22, 2026
Federal deadline
Feb 12, 2026
passed 295 days ago
Ransomware use
Unknown
CISA records ransomware use only for campaigns it has confirmed, so “Unknown” means unrecorded, not ruled out. The deadline binds US federal agencies; for everyone else it is a date to argue against.
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
PoC repos
37
3 of the 5 sampled are weaponized
Exploit entries
5
Exploit-DB and CTI exploit indexes
Social mentions
Posts naming this CVE. Attention, not evidence of exploitation — it spikes on disclosure and decays whether or not anything is exploited.
🛡️ Alerta de Seguridad: Vulnerabilidad de Control de Acceso Improper en Vite Vitejs (CVE-2025-31125) Vite Vitejs presenta una vulnerabilidad de control de acceso improper (CWE-200, CWE-284) que expone contenido de archivos no permitidos mediante parámetros ?inline&import o
@CiberPlanetaOrg· Mar 16, 2026
🛡️ Heads up! Cloudflare WAF is adding new protections against Zimbra & Vite vulnerabilities (CVE-2025-68645 & CVE-2025-31125) on Feb 9th. Stay secure with our proactive threat detection! 🚀 https://t.co/0IT2wg9qnr
@mveracf· Feb 6, 2026
@vite_js Improper access control CVE-2025-31125, just added by #CISA to #KEV on 1/22/26, detected and blocked by Divert when we deployed months ago. https://t.co/I7H5VgGJlt
@Divert_Security· Jan 28, 2026
🚨 Active Vite dev-server zero-day (CVE-2025-31125) leaks “denied” files via ?inline/?raw import bypass UpGuard reports active exploitation of CVE-2025-31125 in Vite where attackers can bypass `server.fs.deny` using query strings like `?inline&import` or `?raw&import` to expose
@ThreatSynop· Jan 28, 2026
🚨 CISA Flags Actively Exploited Vite, Prettier, Versa, and Zimbra Flaws in KEV Catalog CISA added four actively exploited issues to its KEV list, including Vite file exposure (CVE-2025-31125), a Versa Concerto auth bypass (CVE-2025-34026), a compromised eslint-config-prettier
@ThreatSynop· Jan 26, 2026
3 more posts on this CVEShowing 5 of 8 · Who is discussing this CVE, and how loudlyUnlock freeDetection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Prioritize edge telemetry for network-reachable Vite.
- Monitor for scanner or exploit-pattern traffic after 42 public PoC repositories were reported.
Groups associated with this CVE
Groups reported in connection with this vulnerability. A reported association, not a confirmed observation of that group using it — and not scoped to any sector or campaign.
2 more threat groups on this CVEShowing 5 of 7 · Attribution, campaigns and the malware each one runsUnlock free- ip46.36.37.8564
CINSscore · Jun 30, 2025
- ip185.181.60.1130
SOCRadar Threat Exchange Services · Oct 6, 2025
- ip23.235.188.340
Abuse.ch-ThreatFox-C&Cs · Nov 28, 2025
- hash6f746388853178a3b4c2c91a6bd98438fb59e760caa273a8d6a4c03936498c39100
AlienVault OTX Feeds · Jan 20, 2026
- hashaa0d3859d6633b62bccfb69017d33a8979a3be1f3f0a5a4bf6960d6c73d4112199
Computer Incident Response Center Luxembourg (CIRCL) · Oct 6, 2025
2 more indicators on this CVEShowing 5 of 7 · Hashes, addresses and domains from a live threat exchangeUnlock freeTimeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Cve is exploited Vite Vitejs Improper Access Control Vulnerability
Nov 20, 2026 · SOCRadar CTI
Cve is exploited L15B04/Exploit-VITE-CVE-2025-30208-CVE-2025-31125
Oct 29, 2026 · SOCRadar CTI
Added · CVSS 3.1 7.5 (AV:N)
Jun 17, 2026 · NVD
Added to CISA KEV catalog
Jan 22, 2026 · CISA
- 2025
Bulletin released on NIST.
Oct 16, 2025 · SOCRadar CTI
Initial · CVE published
Mar 31, 2025 · NVD
Added · GHSA-4r4m-qw57-chr8 published (medium)
Mar 31, 2025 · GitHub Security Advisory
Source activity
Readings a source repeats on a schedule, counted rather than listed.
- 12×SVRS was changedJan 24, 2026 – Feb 21, 2026 · SOCRadar CTI
- 9×TweetsJan 23, 2026 – Mar 17, 2026 · SOCRadar CTI
- 2×ModifiedJan 22, 2026 – Jan 24, 2026 · SOCRadar CTI
- 1×Github_Repos · Github repository created, L15B04/Exploit-VITE-CVE-2025-30208-CVE-2025-31125Oct 18, 2026 · SOCRadar CTI
- 1×1 time mentioned on 1 Telegram channelJan 25, 2026 · SOCRadar CTI
- 1×CVE appeared in the Cve Trends.Jan 24, 2026 · SOCRadar CTI
References
8 on the record
- github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
Patch, NIST, Mitre, Vendor Advisory
- github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8
Exploit, Vendor Advisory, GITHUB, NIST, Mitre
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125
US Government Resource
- nvd.nist.gov/vuln/detail/CVE-2025-31125
NVD, Vendor Advisory
- github.com/advisories/GHSA-4r4m-qw57-chr8
Exploit, Third Party Advisory
- access.redhat.com/security/cve/CVE-2025-31125
Vendor Advisory
- bugzilla.redhat.com/show_bug.cgi?id=2356283
Vendor Advisory
- www.cve.org/CVERecord?id=CVE-2025-31125
Vendor Advisory
Coverage
19 stories from the feeds we poll
Hackers target exposed Vite dev servers to steal AWS, Azure secrets - BleepingComputer
bleepingcomputer.com · Sep 14, 2026
Mass scanning campaign targets Vite development servers for cloud credentials - SC Media
scworld.com · Sep 15, 2026
Hackers Are Mass-Scanning Vite Servers to Steal AWS and Azure Credentials - windowsreport.com
windowsreport.com · Sep 15, 2026
Mass Scanning Targets Exposed Vite Servers to Steal AWS Keys and Azure Tokens - gbhackers.com
gbhackers.com · Sep 15, 2026
Hackers target exposed Vite dev servers to steal AWS, Azure secrets - BleepingComputer
bleepingcomputer.com · Sep 14, 2026
14 more reports on this CVEShowing 5 of 19 · Vendor research and security press coverageUnlock freeRelated CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-34908 Ubiquiti UniFi OS Improper Access Control VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2026-21962 Oracle HTTP Server and Oracle Weblogic Server Proxy Plug-in Improper Access Control VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2015-3306 ProFTPD Improper Access Control VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2015-0310 Adobe Flash Player ASLR Bypass VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2013-0422 Oracle JRE Remote Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2012-5076 Oracle Java SE Sandbox Bypass VulnerabilityCVSS 10.0 · CISA KEV
Elsewhere on this site
- Vitejsevery CVE for this vendor
- Npmevery CVE for this vendor
- viteevery page on this product
- January 2026what else CISA listed
- Info Disclosuresame class
- CWE-200other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- Only the 5 indicator(s) reported for this CVE are available; no packet-level or host-forensic artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2025-31125 is Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query, a high vulnerability affecting Vite from Vitejs, Npm. The current evidence lists it in CISA KEV, and the exploit status is: Yes: CISA KEV signal present. Public exploit evidence is: 42 public PoC repositories reported; 3 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 7.5 describes technical severity, while EPSS 15% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.