针对CVE-2025-30208和CVE-2025-31125的漏洞利用
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:NDescription
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 ProgramExploit source choices
4 sourcesVite任意文件读取漏洞批量检测脚本CVE-2025-31486
nkuty/cve-2025-30208-31125-31486-32395 source repository
Analysis of the Reproduction of CVE-2025-30208 Series Vulnerabilities