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.
Severity (CVSS)
| Base score | 2.1 |
|---|---|
| Severity | Low |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-80 — CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 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] |
| vitejs | vite-plus | < 1.1.0 [affected] |
References
- https://github.com/vitejs/vite/security/advisories/GHSA-9jrq-w75r-8gcw (x_refsource_CONFIRM)
- https://github.com/vitejs/vite/pull/23653 (x_refsource_MISC)
- https://github.com/vitejs/vite/commit/7dafd8e56f152403a3230608fa4005273c2e9e17 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 21 Oct 2026 07:04 UTC.