CVE-2024-47068 DOM Clobbering Gadget found in rollup bundled scripts that leads to XSS
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
10 packages: 5 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-rollup(Debian 12) | = 3.15.0-1; = 3.15.0-1+deb12u1; = 3.15.0-2; = 3.28.0-1 +15 more | No fix listed | No fix yet |
| ubuntu/node-rollup(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-rollup(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-rollup(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-rollup(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/node-rollup(Debian 13) | < 3.29.5-1 | 3.29.5-1 | Fixed |
| debian/node-rollup(Debian 14) | < 3.29.5-1 | 3.29.5-1 | Fixed |
| npm rollup(npm) | < 2.79.2; >= 3.0.0, < 3.29.5; >= 4.0.0, < 4.22.4 | 2.79.2, 3.29.5, 4.22.4 | Fixed |
| rollup | < 3.29.5; = < 2.79.2; = >= 3.0.0, < 3.29.5; = >= 4.0.0, < 4.22.4 +1 more | 3.29.5, 4.22.4 | Fixed |
| rollupjs rollup | >= 0.59.0, < 2.79.2; >= 3.0.0, < 3.29.5; >= 4.0.0, < 4.22.4 | 2.79.2, 3.29.5, 4.22.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm rollup(npm) | >= 4.0.0, < 4.22.4 | 4.22.4 |
| npm rollup(npm) | >= 3.0.0, < 3.29.5 | 3.29.5 |
| npm rollup(npm) | < 2.79.2 | 2.79.2 |
| debian/node-rollup(Debian:12) | All versions | No fix listed |
| debian/node-rollup(Debian:12) | = 3.15.0-1 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.15.0-1+deb12u1 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.15.0-2 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.28.0-1 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.28.0-2 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.29.4-1 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.29.4-2 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.29.4-3 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.29.5-1 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.29.5-2 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.29.5-3 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.30.0-1 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.30.0-2 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.30.0-3 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.30.0-4 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.30.0-5 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.30.0-6 | No fix listed |
| debian/node-rollup(Debian:12) | = 3.30.0-7 | No fix listed |
| debian/node-rollup(Debian:13) | < 3.29.5-1 | 3.29.5-1 |
| debian/node-rollup(Debian:14) | < 3.29.5-1 | 3.29.5-1 |
| ubuntu/node-rollup(Ubuntu:22.04) | All versions | No fix listed |
Show 11 more
| Product | Affected versions | Fixed in |
|---|---|---|
| rollup | = >= 3.0.0, < 3.29.5 | No fix listed |
| rollup | = >= 4.0.0, < 4.22.4 | No fix listed |
| rollup | = < 2.79.2 | No fix listed |
| rollup | < 3.29.5 | 3.29.5 |
| rollup | >= 4.0.0, < 4.22.4 | 4.22.4 |
| ubuntu/node-rollup(Ubuntu:24.04) | All versions | No fix listed |
| rollupjs rollup | >= 0.59.0, < 2.79.2 | 2.79.2 |
| rollupjs rollup | >= 3.0.0, < 3.29.5 | 3.29.5 |
| rollupjs rollup | >= 4.0.0, < 4.22.4 | 4.22.4 |
| ubuntu/node-rollup(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-rollup(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/rollup/rollup/security/advisories/GHSA-gcx4-mw62-g8wm exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/rollup/rollup/commit/2ef77c00ec2635d42697cff2c0567ccc8db34fb4 patch
- https://github.com/rollup/rollup/commit/e2552c9e955e0a61f70f508200ee9f752f85a541 patch
- https://github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.ts#L157-L162 product
- github.com
- Debian Security Tracker CVE-2024-47068 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- github.com product