CVE-2024-47068

DOM Clobbering Gadget found in rollup bundled scripts that leads to XSS

MEDIUM
6.1
CVSS Score
Published: September 23, 2024 at 03:26 PM UTC
Updated: June 17, 2026 at 07:56 AM UTC
2 products affected across 2 vendorsRollupRollup

Using rollup by rollup?

Get instant alerts when new vulnerabilities affect rollup - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.1
Exploit prediction
EPSS 0.7%
SSVC
PoC

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

0.59.0 ≤ v < 2.79.23.0.0 ≤ v < 3.29.54.0.0 ≤ v < 4.22.4
Affected range stops below 2.79.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.29.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.22.4, so it looks safe — our inference, not a vendor statement
v < 2.79.2v < 3.29.5v < 4.22.44.0.0 ≤ v < 4.22.44.0.0
Affected range stops below 2.79.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.29.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.22.4, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.1MEDIUMGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card