Vulnerabilities/

Vite DOM Clobbering gadget found in vite bundled scripts that leads to XSS

Severity:
Medium

Description

We discovered a DOM Clobbering vulnerability in Vite 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.

Recommendation

Update the vite package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
vite
Anything's wrong? Let us know Last updated on September 19, 2024

This issue is available in SmartScanner Professional

See Pricing