CVE-2024-47068: rollup Cross-site Scripting
Vulnerability summary
CVE-2024-47068 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in rollup. EPSS estimates a 0.74% chance of exploitation in the next 30 days, higher than 53.9% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 4Timeline
- 23-09-2024PublishedVulnerability first disclosed.
- 29-10-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · NpmEcosystem advisory · calculated6.4MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:HDiffers
- OSV · ChainguardEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.74%
Chance of exploitation in the next 30 days
Percentile
54%
Versus all other CVEs
30-day change
0.00 pp
From 0.74% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundRollup
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard2 products
- arangodb-3.11< 3.11.14.5-r9
- vite< 5.4.8-r0
Debian1 product
- node-rollupAll versions (No fix recorded) | < 3.29.5-1
Npm1 product
- rollup≥ 3.0.0, < 3.29.5 | ≥ 4.0.0, < 4.22.4 | < 2.79.2
Rollup1 product
- rollup≥ 3.0.0, < 3.29.5 | ≥ 4.0.0, < 4.22.4 | < 2.79.2
Rollupjs1 product
- rollup≥ 0.59.0, < 2.79.2 | ≥ 3.0.0, < 3.29.5 | ≥ 4.0.0, < 4.22.4
Ubuntu1 product
- node-rollupAll versions (No fix recorded)
Wolfi1 product
- vite< 5.4.8-r0
7 vendors · 8 products
References
11 links- github.com/rollup/rollup/security/advisories/GHSA-gcx4-mw62-g8wmX Refsource CONFIRMREPORTAdvisoryWEBExploitVendor Advisory
- github.com/rollup/rollup/commit/2ef77c00ec2635d42697cff2c0567ccc8db34fb4X Refsource MISCREPORTFIXWEBPatch
- github.com/rollup/rollup/commit/e2552c9e955e0a61f70f508200ee9f752f85a541X Refsource MISCREPORTFIXWEBPatch
- github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.tsX Refsource MISCREPORTWEBProduct
- github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.tsX Refsource MISCREPORTWEBProduct
Show all 11 references
- github.com/rollup/rollupPACKAGE