Skip to main content
← All vulnerabilities
CVE-2024-47068GHSA-GCX4-MW62-G8WM

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.29.5, 4.22.4, 2.79.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • rollup rollup

    From 3.0.0 · fixed in 3.29.5; From 4.0.0 · fixed in 4.22.4; fixed in 2.79.2

  • rollupnpm

    From 3.0.0 · fixed in 3.29.5

  • rollupnpm

    From 4.0.0 · fixed in 4.22.4

  • rollupnpm

    fixed in 2.79.2

References 5

GitHub · rollup/rollup