← Back

CVE-2023-49293

Published: Dec 4, 2023Modified: Jun 17, 2026

JSON object

Loading...
6.1
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Exploitability: 2.8 / Impact: 2.7
Source: NVD

Description

Vite is a website frontend framework. When Vite's HTML transformation is invoked manually via `server.transformIndexHtml`, the original request URL is passed in unmodified, and the `html` being transformed contains inline module scripts (`<script type="module">...</script>`), it is possible to inject arbitrary HTML into the transformed output by supplying a malicious URL query string to `server.transformIndexHtml`. Only apps using `appType: 'custom'` and using the default Vite HTML middleware are affected. The HTML entry must also contain an inline script. The attack requires a user to click on a malicious URL while running the dev server. Restricted files aren't exposed to the attacker. This issue has been addressed in vite@5.0.5, vite@4.5.1, and vite@4.4.12. There are no known workarounds for this vulnerability.

Affected (24)

Products: Vitejs: Vite
1 product
Vite
Configuration A
24 vulnerable
Vulnerable SoftwareAffected Versions
Vitejs
From 4.4.0 to 4.4.11
From 5.0.0 to 5.0.4
Version 5.0.0
Version 5.0.0 beta0
Version 5.0.0 beta10
Version 5.0.0 beta11
Version 5.0.0 beta12
Version 5.0.0 beta13
Version 5.0.0 beta14
Version 5.0.0 beta15
Version 5.0.0 beta16
Version 5.0.0 beta17
Version 5.0.0 beta18
Version 5.0.0 beta19
Version 5.0.0 beta1
Version 5.0.0 beta20
Version 5.0.0 beta2
Version 5.0.0 beta3
Version 5.0.0 beta4
Version 5.0.0 beta5
Version 5.0.0 beta6
Version 5.0.0 beta7
Version 5.0.0 beta8
Version 5.0.0 beta9

References (2)

Source: security-advisories@github.com
ExploitThird Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
ExploitThird Party Advisory

Timeline

No history available yet.