{"id":"CVE-2024-47068","state":"PUBLISHED","title":"DOM Clobbering Gadget found in rollup bundled scripts that leads to XSS","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.","publishedAt":"2024-09-23T15:26:09.313Z","updatedAt":"2024-10-29T15:16:32.075Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["rollup rollup"],"affected":[{"vendor":"rollup","product":"rollup","versions":[{"version":">= 3.0.0, < 3.29.5","status":"affected"},{"version":">= 4.0.0, < 4.22.4","status":"affected"},{"version":"< 2.79.2","status":"affected"}]}],"references":["https://github.com/rollup/rollup/security/advisories/GHSA-gcx4-mw62-g8wm","https://github.com/rollup/rollup/commit/2ef77c00ec2635d42697cff2c0567ccc8db34fb4","https://github.com/rollup/rollup/commit/e2552c9e955e0a61f70f508200ee9f752f85a541","https://github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.ts#L157-L162","https://github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.ts#L180-L185"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/47xxx/CVE-2024-47068.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-47068","state":"PUBLISHED","datePublished":"2024-09-23T15:26:09.313Z","dateUpdated":"2024-10-29T15:16:32.075Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-09-17T17:42:37.029Z"},"containers":{"cna":{"title":"DOM Clobbering Gadget found in rollup bundled scripts that leads to XSS","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"rollup","product":"rollup","versions":[{"version":">= 3.0.0, < 3.29.5","status":"affected"},{"version":">= 4.0.0, < 4.22.4","status":"affected"},{"version":"< 2.79.2","status":"affected"}]}],"references":[{"url":"https://github.com/rollup/rollup/security/advisories/GHSA-gcx4-mw62-g8wm","name":"https://github.com/rollup/rollup/security/advisories/GHSA-gcx4-mw62-g8wm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rollup/rollup/commit/2ef77c00ec2635d42697cff2c0567ccc8db34fb4","name":"https://github.com/rollup/rollup/commit/2ef77c00ec2635d42697cff2c0567ccc8db34fb4","tags":["x_refsource_MISC"]},{"url":"https://github.com/rollup/rollup/commit/e2552c9e955e0a61f70f508200ee9f752f85a541","name":"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","name":"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","name":"https://github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.ts#L180-L185","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-10-29T15:16:32.075Z"},"source":{"advisory":"GHSA-gcx4-mw62-g8wm","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"rollup","product":"rollup","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"3.29.5","versionType":"custom"},{"version":"4.0.0","status":"affected","lessThan":"4.22.4","versionType":"custom"}],"cpes":["cpe:2.3:a:rollup:rollup:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-23T15:47:09.301929Z","id":"CVE-2024-47068","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-23T15:53:25.040Z"}}]}}}