CVE-2024-47068
MEDIUM 6.1CVSS 3.1DOM Clobbering Gadget found in rollup bundled scripts that leads to XSS
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.
- Published
- 23 Sep 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-gcx4-mw62-g8wm
- Sources
- NVDJSONOSV GHSA-gcx4-mw62-g8wmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N | |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rollupjs | rollupcpe:2.3:a:rollupjs:rollup:*:*:*:*:*:node.js:*:* |
>= 0.59.0, < 2.79.2 | 2.79.2 |
| NVD | rollupjs | rollupcpe:2.3:a:rollupjs:rollup:*:*:*:*:*:node.js:*:* |
>= 3.0.0, < 3.29.5 | 3.29.5 |
| NVD | rollupjs | rollupcpe:2.3:a:rollupjs:rollup:*:*:*:*:*:node.js:*:* |
>= 4.0.0, < 4.22.4 | 4.22.4 |
| OSV | npm | rollup | >= 3.0.0, < 3.29.5 | 3.29.5 |
| OSV | npm | rollup | >= 4.0.0, < 4.22.4 | 4.22.4 |
| OSV | npm | rollup | < 2.79.2 | 2.79.2 |
References
- https://github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.ts#L157-L162 · Product, WEB
- https://github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.ts#L180-L185 · Product, WEB
- https://github.com/rollup/rollup/commit/2ef77c00ec2635d42697cff2c0567ccc8db34fb4 · Patch, WEB
- https://github.com/rollup/rollup/commit/e2552c9e955e0a61f70f508200ee9f752f85a541 · Patch, WEB
- https://github.com/rollup/rollup/security/advisories/GHSA-gcx4-mw62-g8wm · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-47068 · ADVISORY
- https://github.com/rollup/rollup · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 23 Sep 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 23 Sep 2024)