Exploit database

Vulnerability

CVE-2025-31486

Vite allows server.fs.deny to be bypassed with .svg or relative paths

Vulnerability details

Score
5.3
Severity
medium

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

Description

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.

CVE Program

Exploit source choices

4 sources
jackieya/vitevulscan
GH-d016a19e48794d1f5437bfed6b634c92GitHubUnofficial GitHub sourcePreferred

针对CVE-2025-30208和CVE-2025-31125的漏洞利用

2025-03-3114 files · 7 stars
isee857/cve-2025-31486-poc
GH-d179bced1e024f6edaae184550602627GitHubUnofficial GitHub source

Vite任意文件读取漏洞批量检测脚本CVE-2025-31486

2025-04-072 files · 6 stars
r0ngy40/cve-2025-30208-series
GH-21d763667e9a03fd7e627795d8dfeaddGitHubUnofficial GitHub source

Analysis of the Reproduction of CVE-2025-30208 Series Vulnerabilities

2025-04-2440 files · 3 stars