CVE-2025-31125 | Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query

Exp

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: 2025-03-31 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-31125 is rated Active Exploitation (75.9/100): CVSS Medium severity, with high exploitation likelihood (EPSS 59.59%, 99th percentile). Core evidence: CISA KEV confirms active exploitation (added 2026-01-22) affecting Vite / Vitejs. a weakness (CWE-200) Unauthenticated remote administrative access may be possible. Mandatory action: The CISA remediation deadline has passed—treat as an emergency patch priority.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

CISA KEV Record for CVE-2025-31125

Name: Vite Vitejs Improper Access Control Vulnerability · CISA KEV detail

Exploit added: 2026-01-22

Action due: 2026-02-12

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.

Public exploit references (Exploit-DB) for CVE-2025-31125

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2025-31125

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 83.24% 59.59% -23.66%
2 2026-05-24 84.26% 83.24% -1.01%
3 2026-05-10 84.26%

Full EPSS history (61 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-31125

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.3 3.1 MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
1.6 3.6 [email protected]
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 [email protected]

Weakness enumeration for CVE-2025-31125

GitHub Security Advisory for CVE-2025-31125

GHSA-4r4m-qw57-chr8 · Severity: medium · Ecosystem: npm — Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query

OS Trackers for CVE-2025-31125

vendor priority summary link
redhat medium https://access.redhat.com/security/cve/CVE-2025-31125

Affected software / configurations for CVE-2025-31125

Vendor Product Version Raw CPE
vitejs vite < 4.5.11 cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
vitejs vite >= 5.0.0, < 5.4.16 cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
vitejs vite >= 6.0.0, < 6.0.13 cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
vitejs vite >= 6.1.0, < 6.1.3 cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
vitejs vite >= 6.2.0, < 6.2.4 cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*

References for CVE-2025-31125

cvelogic Threat Intelligence