Cross-site Scripting (XSS) Affecting vite package, versions <5.4.8-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
2.91% (87th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-WOLFILATEST-VITE-15420525
  • published5 Mar 2026
  • disclosed23 Sept 2024

Introduced: 23 Sep 2024

CVE-2024-47068  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade Wolfi vite to version 5.4.8-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream vite package and not the vite package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

Rollup is a module bundler for JavaScript. Versions prior to 2.79.2, 3.29.5, and 4.22.4 are susceptible to a DOM Clobbering vulnerability when bundling scripts with properties from import.meta (e.g., import.meta.url) in cjs/umd/iife format. The DOM Clobbering gadget 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. Versions 2.79.2, 3.29.5, and 4.22.4 contain a patch for the vulnerability.

CVSS Base Scores

version 3.1