CVE-2024-45812Cross-site Scripting in Vite

Severity
6.4MEDIUMNVD
GHSA6.1OSV6.1
EPSS
0.3%
top 50.99%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedSep 17
Latest updateOct 14

Description

Vite a frontend build tooling framework for javascript. Affected versions of vite were discovered to contain a DOM Clobbering vulnerability when building scripts to `cjs`/`iife`/`umd` output format. The DOM Clobbering gadget in the module can lead to cross-site scripting (XSS) in web pages where scriptless attacker-controlled HTML elements (e.g., an img tag with an unsanitized name attribute) are present. DOM Clobbering is a type of code-reuse attack where the attacker first embeds a piece of no

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:HExploitability: 1.6 | Impact: 4.7

Affected Packages4 packages

CVEListV5vitejs/vite< 3.2.11+4
npmvitejs/vite5.4.05.4.6+5
npmastro/astro3.0.04.16.1
npmlayui/layui< 2.9.17

🔴Vulnerability Details

6
GHSA
DOM Clobbering Gadget found in astro's client-side router that leads to XSS2024-10-14
OSV
DOM Clobbering Gadget found in astro's client-side router that leads to XSS2024-10-14
OSV
Layui has DOM Clobbering gadgets that leads to Cross-site Scripting2024-09-26
GHSA
Layui has DOM Clobbering gadgets that leads to Cross-site Scripting2024-09-26
GHSA
Vite DOM Clobbering gadget found in vite bundled scripts that leads to XSS2024-09-17

📋Vendor Advisories

1
Red Hat
vite: XSS via DOM Clobbering gadget found in vite bundled scripts2024-09-17