CVE-2025-31486 | Vite allows server.fs.deny to be bypassed with .svg or relative paths

Vite is a frontend tooling framework for javascript. The contents of arbitrary files can be returned to the browser. By adding ?.svg with ?.wasm?init or with sec-fetch-dest: script header, the server.fs.deny restriction was able to bypass. This bypass is only possible if the file is smaller than build.assetsInlineLimit (default: 4kB) and when using Vite 6.0+. 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 4.5.12, 5.4.17, 6.0.14, 6.1.4, and 6.2.5.

Published: 2025-04-03 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-31486 is rated Moderate Risk (60.6/100): CVSS Medium severity, with high exploitation likelihood (EPSS 35.06%, 98th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. EPSS rose +30.32% over the last day, indicating growing attacker interest. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

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

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

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 4.74% 35.06% +30.32%
2 2026-05-27 5.15% 4.74% -0.41%
3 2026-05-13 5.15%

Full EPSS history (11 records total)

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

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]

Weakness enumeration for CVE-2025-31486

GitHub Security Advisory for CVE-2025-31486

GHSA-xcj6-pq6g-qj4x · Severity: medium · Ecosystem: npm — Vite allows server.fs.deny to be bypassed with .svg or relative paths

OS Trackers for CVE-2025-31486

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

Affected software / configurations for CVE-2025-31486

Vendor Product Version Raw CPE
No affected products in dataset.

References for CVE-2025-31486

cvelogic Threat Intelligence