# CVE-2024-47068: DOM Clobbering Gadget found in rollup bundled scripts that leads to XSS

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-09-23T15:26:09.313Z
- Modified: 2026-09-10T03:50:18.179Z
- Also known as: GHSA-gcx4-mw62-g8wm
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- rollup rollup: >= 3.0.0, < 3.29.5; >= 4.0.0, < 4.22.4; < 2.79.2; before 3.29.5; from 4.0.0 before 4.22.4
- rollup (npm): from 3.0.0 before 3.29.5; from 4.0.0 before 4.22.4; before 2.79.2
- rollupjs rollup: from 0.59.0 before 2.79.2; from 3.0.0 before 3.29.5; from 4.0.0 before 4.22.4

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.4 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/rollup/rollup/security/advisories/GHSA-gcx4-mw62-g8wm> (exploit, vendor-advisory, web)
- <https://github.com/rollup/rollup/commit/2ef77c00ec2635d42697cff2c0567ccc8db34fb4> (patch, web)
- <https://github.com/rollup/rollup/commit/e2552c9e955e0a61f70f508200ee9f752f85a541> (patch, web)
- <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://nvd.nist.gov/vuln/detail/CVE-2024-47068> (advisory)
- <https://github.com/rollup/rollup> (package)

## Sources

- CVE List: [CVE-2024-47068](https://www.cve.org/CVERecord?id=CVE-2024-47068), CVE Terms of Use, modified 2024-10-29
- GitHub Advisory Database: [GHSA-gcx4-mw62-g8wm](https://github.com/advisories/GHSA-gcx4-mw62-g8wm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-47068](https://nvd.nist.gov/vuln/detail/CVE-2024-47068), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-47068 · Whole record: https://cve.day/CVE-2024-47068.json · Rebuilt by cve.day 2026-11-25T22:58:45.679Z
