{"answers":{"affected":"6 open source packages ship an affected version, including rollup. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-47068 exists.","fix":"Upgrade rollup to a fixed version for your release line: 2.79.2, 3.29.5 or 4.22.4.","what":"CVE-2024-47068 is a medium-severity cross-site scripting vulnerability in rollup, published on 23 Sep 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-47068 and fix it if it is affected.\n\nWhat it is: CVE-2024-47068 is a medium-severity cross-site scripting vulnerability in rollup, published on 23 Sep 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-47068 exists.\n\nAffected packages and fixed versions:\n- rollup (npm): affected all versions; fixed in 2.79.2\n- rollup (npm): affected all versions; fixed in 2.79.2\n- rollup (npm): affected from 3.0.0; fixed in 3.29.5\n- rollup (npm): affected from 3.0.0; fixed in 3.29.5\n- rollup (npm): affected from 4.0.0; fixed in 4.22.4\n- rollup (npm): affected from 4.0.0; fixed in 4.22.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-47068/ (Markdown: https://insights.sbomify.com/CVE-2024-47068/index.md)","id":"CVE-2024-47068","markdown":"https://insights.sbomify.com/CVE-2024-47068/index.md","name":"CVE-2024-47068","record":{"aliases":["CLSA-2026-1774570949","CLSA-2026-1774830282","CLSA-2026-1775089651","CLSA-2026-1775089653","CLSA-2026-1775089660","CLSA-2026-1784682991","DEBIAN-CVE-2024-47068","GHSA-gcx4-mw62-g8wm","MINI-vhfm-wmcv-43jm","ROOT-APP-NPM-CVE-2024-47068","UBUNTU-CVE-2024-47068"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"JavaScript module bundler","requires_auth":"none","summary":"Attacker can execute arbitrary JavaScript via DOM clobbering in bundled scripts using import.meta properties in specific output formats.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"rollup","vendor":"rollupjs"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"DOM Clobbering Gadget found in rollup bundled scripts that leads to XSS","id":"CVE-2024-47068","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":6,"n_references":5,"next":{"headline":"Oveleon Cookiebar reflected Cross-site Scripting vulnerability","id":"CVE-2024-47069"},"packages":[{"ecosystem":"npm","fixed":["2.79.2"],"introduced":["0"],"last_affected":[],"package":"rollup","purl":null,"source":"GHSA-gcx4-mw62-g8wm"},{"ecosystem":"npm","fixed":["2.79.2"],"introduced":["0"],"last_affected":[],"package":"rollup","purl":"pkg:npm/rollup","source":"GHSA-gcx4-mw62-g8wm"},{"ecosystem":"npm","fixed":["3.29.5"],"introduced":["3.0.0"],"last_affected":[],"package":"rollup","purl":null,"source":"GHSA-gcx4-mw62-g8wm"},{"ecosystem":"npm","fixed":["3.29.5"],"introduced":["3.0.0"],"last_affected":[],"package":"rollup","purl":"pkg:npm/rollup","source":"GHSA-gcx4-mw62-g8wm"},{"ecosystem":"npm","fixed":["4.22.4"],"introduced":["4.0.0"],"last_affected":[],"package":"rollup","purl":null,"source":"GHSA-gcx4-mw62-g8wm"},{"ecosystem":"npm","fixed":["4.22.4"],"introduced":["4.0.0"],"last_affected":[],"package":"rollup","purl":"pkg:npm/rollup","source":"GHSA-gcx4-mw62-g8wm"}],"prev":{"headline":"Alist Contains a Reflected Cross-Site Scripting Vulnerability","id":"CVE-2024-47067"},"products":["rollup"],"published":"2024-09-23","related":[{"cvss_score":8.8,"headline":"Rollup 4 has Arbitrary File Write via Path Traversal","id":"CVE-2026-27606","kev_date_added":null,"published":"2026-02-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-29","vendors":["rollup"]},"summary":"Attacker can execute arbitrary JavaScript via DOM clobbering in bundled scripts using import.meta properties in specific output formats.","url":"https://insights.sbomify.com/CVE-2024-47068/"}