{"id":"CVE-2024-47068","published":"2024-09-23T15:26:09Z","modified":"2024-10-29T15:16:32Z","title":"DOM Clobbering Gadget found in rollup bundled scripts that leads to XSS","vendor":"rollup","product":"rollup","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00989,"percentile":0.61296,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/rollup/rollup/security/advisories/GHSA-gcx4-mw62-g8wm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rollup/rollup/commit/2ef77c00ec2635d42697cff2c0567ccc8db34fb4","tags":["x_refsource_MISC"]},{"url":"https://github.com/rollup/rollup/commit/e2552c9e955e0a61f70f508200ee9f752f85a541","tags":["x_refsource_MISC"]},{"url":"https://github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.ts#L157-L162","tags":["x_refsource_MISC"]},{"url":"https://github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.ts#L180-L185","tags":["x_refsource_MISC"]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":12.26},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"rollup","affectedVersions":[{"vendor":"rollup","product":"rollup","versions":[">= 3.0.0, < 3.29.5",">= 4.0.0, < 4.22.4","< 2.79.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-23T15:47:09.301929Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"rollup","vulnerableRanges":[">=3.0.0, <3.29.5",">=4.0.0, <4.22.4","<2.79.2"],"patched":["3.29.5","4.22.4","2.79.2"],"from":["GHSA-gcx4-mw62-g8wm"],"provenance":"source"}],"summary":{"text":"A DOM Clobbering flaw exists in the Rollup JavaScript module bundler, in the scripts it generates when bundling code that uses import.meta properties (such as import.meta.url) in cjs, umd, or iife format. An attacker who can inject scriptless HTML elements with unsanitized attributes, such as an img tag with a crafted name, into a page using the affected bundle can clobber DOM properties to achieve cross-site scripting, which requires a user to interact with the page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:38Z"},"euvd":{"id":"EUVD-2024-2800","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-47068","published":"2024-09-23","fixed":"4.22.4","kev":false},{"cve":"CVE-2026-27606","published":"2026-02-25","fixed":"4.59.0","kev":false,"link":{"from":"CVE-2024-47068","to":"CVE-2026-27606","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:rollup","fromFixed":"2.79.2","toFixed":"2.80.0","daysApart":520},{"kind":"version-step","provenance":"source","package":"npm:rollup","fromFixed":"3.29.5","toFixed":"3.30.0","daysApart":520}]}}],"package":"npm:rollup"}}