Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
vitejs vite
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Vite是Vite开源的一种新型的前端构建工具。 Vite存在安全漏洞,该漏洞源于任意文件内容可返回浏览器,可能导致绕过限制。

CVSS 5.3 · Medium EPSS 40.46% · P99

Public Exploits 1

Possible ATT&CK Techniques 1 AI

T1005 · Data from Local System
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-31486

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Vite allows server.fs.deny to be bypassed with .svg or relative paths
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
信息暴露
Source: CVE Program / CVE List V5
Vulnerability Title
Vite 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Vite是Vite开源的一种新型的前端构建工具。 Vite存在安全漏洞,该漏洞源于任意文件内容可返回浏览器,可能导致绕过限制。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
vitejs vite < 4.5.12 -

II. Public POCs for CVE-2025-31486

# POC Description Source Link Shenlong Link
1 Vite任意文件读取漏洞批量检测脚本CVE-2025-31486 https://github.com/iSee857/CVE-2025-31486-PoC POC Details
2 CVE-2025-31486 poc https://github.com/Ly4j/CVE-2025-31486 POC Details
3 None https://github.com/hackmelocal/CVE-2025-31486-Simulation POC Details
4 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. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-31486.yaml POC Details
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-31486

请登录查看更多情报信息。

Vendor Advisories for CVE-2025-31486 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2025-31486

No comments yet


Leave a comment