CVE-2025-58752 (CNNVD-202509-1032)
中文标题:
Vite 访问控制错误漏洞
英文标题:
Vite's `server.fs` settings were not applied to HTML files
漏洞描述
中文描述:
Vite是Vite开源的一种新型的前端构建工具。 Vite 7.1.5之前版本、7.0.7之前版本、6.3.6之前版本和5.4.20之前版本存在访问控制错误漏洞,该漏洞源于显式地将Vite开发服务器暴露给网络导致任意HTML文件访问。
英文描述:
Vite is a frontend tooling framework for JavaScript. Prior to versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20, any HTML files on the machine were served regardless of the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or server.host config option) and use `appType: 'spa'` (default) or `appType: 'mpa'` are affected. This vulnerability also affects the preview server. The preview server allowed HTML files not under the output directory to be served. Versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 fix the issue.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| vitejs | vite | < 5.4.20 | - | - |
cpe:2.3:a:vitejs:vite:<_5.4.20:*:*:*:*:*:*:*
|
| vitejs | vite | >= 6.0.0, < 6.3.6 | - | - |
cpe:2.3:a:vitejs:vite:>=_6.0.0,_<_6.3.6:*:*:*:*:*:*:*
|
| vitejs | vite | >= 7.0.0, < 7.0.7 | - | - |
cpe:2.3:a:vitejs:vite:>=_7.0.0,_<_7.0.7:*:*:*:*:*:*:*
|
| vitejs | vite | >= 7.1.0, < 7.1.5 | - | - |
cpe:2.3:a:vitejs:vite:>=_7.1.0,_<_7.1.5:*:*:*:*:*:*:*
|
| vitejs | vite | * | - | - |
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
cve.org
cve.org
cve.org
cve.org
CVSS评分详情
4.0 (cna)
LOWCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2025-58752 |
2025-11-11 15:23:30 | 2025-11-11 07:40:46 |
| NVD | nvd_CVE-2025-58752 |
2025-11-11 15:01:02 | 2025-11-11 07:48:32 |
| CNNVD | cnnvd_CNNVD-202509-1032 |
2025-11-11 15:12:56 | 2025-11-11 08:00:09 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 授权问题
- cnnvd_id: 未提取 -> CNNVD-202509-1032
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- affected_products_count: 4 -> 5
- data_sources: ['cve'] -> ['cve', 'nvd']