文件
websafe-kb/07-framework-security/frameworks/vite/cases/vite-cve-2025-58751.md

5.5 KiB

title, system_id, category, advisory_mode, published_date, updated_date, severity, exploit_status, source_confidence, verification_status, verification_mode, artifact_mode, last_run_id, target_types, allow_public_validation, authorization_prerequisite, minimal_validation, aliases, affected_versions, fixed_versions, secure_code_topics, primary_source
title system_id category advisory_mode published_date updated_date severity exploit_status source_confidence verification_status verification_mode artifact_mode last_run_id target_types allow_public_validation authorization_prerequisite minimal_validation aliases affected_versions fixed_versions secure_code_topics primary_source
Vite middleware may serve files starting with the same name with the public directory vite frameworks core 2025-09-09T20:55:56Z 2026-02-04T04:33:22.508417Z medium unknown official triage-manual synthetic synthetic
lab-local
lab-public
authorized-third-party
yes, with ownership or explicit authorization asset ownership proof or explicit written authorization read-only probe, controlled payload, reversible test
CVE-2025-58751
GHSA-g4jq-h2w9-997c
introduced=7.1.0, fixed<7.1.5
introduced=7.0.0, fixed<7.0.7
introduced=6.0.0, fixed<6.3.6
introduced=0, fixed<5.4.20
7.1.5
7.0.7
6.3.6
5.4.20
dependency-upgrade-policy
file-upload-validation
proxy-trust-boundary
https://github.com/vitejs/vite/security/advisories/GHSA-g4jq-h2w9-997c

Vite middleware may serve files starting with the same name with the public directory

本地实证状态

  • 实证状态: triage-manual
  • 实证方式: synthetic
  • Artifact 模式: synthetic
  • 最近运行: -
  • 浏览器证据: missing
  • Run Bundle: -

事件层

  • Canonical ID: vite--CVE-2025-58751
  • 系统: vite
  • 严重度: medium
  • 来源置信度: official
  • 官方主源: https://github.com/vitejs/vite/security/advisories/GHSA-g4jq-h2w9-997c
  • 影响版本: introduced=7.1.0, fixed<7.1.5, introduced=7.0.0, fixed<7.0.7, introduced=6.0.0, fixed<6.3.6, introduced=0, fixed<5.4.20
  • 修复版本: 7.1.5, 7.0.7, 6.3.6, 5.4.20

其他来源

实验层

  • 仅用于自有资产、测试环境或已明确授权目标。
  • 允许公网可达目标,但必须满足资产归属或明确授权前提。
  • 最小化验证方式: 最小化验证、只读探测、可审计回显、受控注入。
  • 若该案例涉及插件、模块或扩展,应同时检查供应链与升级策略。
  • 禁止场景: 无归属证明或无明确授权的公网目标;知名公共网站或与测试无关的第三方资产;会造成持久破坏、数据越权下载或不可回滚影响的动作

修复示例