CVE-2026-112945
published low CVSS 4.0 · 2.1Vite: Cross origin script execution through Vite custom middleware
Package status and fixes
Description
Vite is a frontend tooling framework for JavaScript. Prior to 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3, applications using custom middleware are vulnerable when they pass an unchanged browser request URL to server.transformIndexHtml. getHtmlFilename uses the query-bearing request URL to resolve an existing local file while preserving attacker-supplied leading slashes in the generated proxy module URL. If the transformed HTML contains an inline module script and a victim browser loads the crafted development-server page, the leading double slash makes the browser fetch and execute an attacker-controlled module in the Vite-served page. This execution can expose sensitive page data or permit critical actions available to the affected application. This issue is fixed in versions 6.4.4, 7.3.7, 8.1.6, 8.2.4, and 8.3.3.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.1 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vitejs | vite | >= 8.3.0, < 8.3.3 (affected)>= 8.2.0, < 8.2.4 (affected)>= 8.0.0, < 8.1.6 (affected)>= 7.0.0, < 7.3.7 (affected)< 6.4.4 (affected) | GitHub_M · cna |
| vitejs | vite-plus | < 1.1.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-80 CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
References
3Provider assertions
2GitHub_M · cna
Vite: Cross origin script execution through Vite custom middleware
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d5baa55bf5e56a87a41e51980b29c367ec49398337f6137d620b7362fab8414d
- Ingested
- 28 Oct 2026, 14:20:54 UTC
- Source record
- Official CVE record