CVE-2026-112945
Published:October 20, 2026
Updated:October 21, 2026
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.
Affected Packages
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v8.3.0-beta.0 <v8.3.3Fix Suggestion:
Update to version v8.3.3https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v8.2.0-beta.0 <v8.2.4Fix Suggestion:
Update to version v8.2.4https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.0.0-alpha.0 <v6.4.4Fix Suggestion:
Update to version v6.4.4https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v7.0.0-beta.0 <v7.3.7Fix Suggestion:
Update to version v7.3.7https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v8.0.0-beta.0 <v8.1.6Fix Suggestion:
Update to version v8.1.6vite (NPM):
Affected version(s) >=8.0.0-beta.0 <8.1.6Fix Suggestion:
Update to version 8.1.6vite (NPM):
Affected version(s) >=7.0.0-beta.0 <7.3.7Fix Suggestion:
Update to version 7.3.7vite (NPM):
Affected version(s) >=8.3.0-beta.0 <8.3.3Fix Suggestion:
Update to version 8.3.3vite (NPM):
Affected version(s) >=8.2.0-beta.0 <8.2.4Fix Suggestion:
Update to version 8.2.4vite (NPM):
Affected version(s) >=6.0.0-alpha.0 <6.4.4Fix Suggestion:
Update to version 6.4.4Related Resources (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
2.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
ACTIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.4
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)