CVE-2024-47068: rollup bundled scripts · DOM Clobbering Gadget Found
Affects rollupSource GCVE Database
Not known to be exploited · CVSS 6.4 Medium : upgrade to 4.22.4 when convenient.
Data as of 18 Nov 2026, 20:24 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 55% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 4.22.4
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:HExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 18 Nov 2026.
What to do
Upgrade rollup to 4.22.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewrolluppkg:brew/rollupOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available that addresses this vulnerability by adding type checking to ensure the element used for import.meta.url is a SCRIPT tag before accessing its src attribute. Users of rollup versions >=2.56.3 and <4.22.4 should upgrade to version 4.22.4 or later to remediate this issue.
Description
CVE-2024-47068 is a DOM Clobbering vulnerability in rollup bundled scripts when using import.meta.url with cjs, umd, or iife output formats. It allows an attacker to manipulate document.currentScript by injecting scriptless HTML elements named 'currentScript', leading to cross-site scripting (XSS). The vulnerability affects rollup versions from 2.56.3 up to but not including 4.22.4. A patch is available that adds type checking to ensure only SCRIPT elements are used for the src attribute.
References
- github.com/rollup/rollup/security/advisories/GHSA-gcx4-mw62-g8wm (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2024-47068 (opens in a new tab)
- github.com/rollup/rollup/commit/2ef77c00ec2635d42697cff2c0567ccc8db34fb4 (opens in a new tab)
- github.com/rollup/rollup/commit/e2552c9e955e0a61f70f508200ee9f752f85a541 (opens in a new tab)
- github.com/rollup/rollup (opens in a new tab)
- github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.ts (opens in a new tab)
- github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.ts (opens in a new tab)