{"id":"UBUNTU-CVE-2024-47068","details":"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.","modified":"2026-05-20T16:18:45.511233349Z","published":"2024-09-23T16:15:00Z","upstream":["CVE-2024-47068"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-47068"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-47068"},{"type":"REPORT","url":"https://github.com/rollup/rollup/security/advisories/GHSA-gcx4-mw62-g8wm"},{"type":"REPORT","url":"https://github.com/rollup/rollup/commit/2ef77c00ec2635d42697cff2c0567ccc8db34fb4"},{"type":"REPORT","url":"https://github.com/rollup/rollup/commit/e2552c9e955e0a61f70f508200ee9f752f85a541"},{"type":"REPORT","url":"https://github.com/rollup/rollup/commit/2ef77c00ec2635d42697cff2c0567ccc8db34fb4"},{"type":"REPORT","url":"https://github.com/rollup/rollup/commit/e2552c9e955e0a61f70f508200ee9f752f85a541"},{"type":"REPORT","url":"https://github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.ts#L157-L162"},{"type":"REPORT","url":"https://github.com/rollup/rollup/blob/b86ffd776cfa906573d36c3f019316d02445d9ef/src/ast/nodes/MetaProperty.ts#L180-L185"}],"affected":[{"package":{"name":"node-rollup","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-rollup?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.50.0-6build3","0.68.2-2","1.12.0-2build2","1.12.0-2build3"],"ecosystem_specific":{"binaries":[{"binary_version":"1.12.0-2build3","binary_name":"rollup"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47068.json"}},{"package":{"name":"node-rollup","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-rollup?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.38.4-1","2.42.1-2","2.61.1-5"],"ecosystem_specific":{"binaries":[{"binary_name":"rollup","binary_version":"2.61.1-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47068.json"}},{"package":{"name":"node-rollup","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-rollup?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.28.0-2","3.29.4-2","3.29.4-3"],"ecosystem_specific":{"binaries":[{"binary_name":"rollup","binary_version":"3.29.4-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47068.json"}},{"package":{"name":"node-rollup","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-rollup?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.29.5-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.29.5-1","binary_name":"rollup"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47068.json"}},{"package":{"name":"node-rollup","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/node-rollup?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.29.5-1","3.30.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"rollup","binary_version":"3.30.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-47068.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}