Skip to main content
VulnerabilityPublished Updated

CVE-2024-47068: rollup bundled scripts · DOM Clobbering Gadget Found

Affects rollupSource GCVE Database

0
Compare

Not known to be exploited · CVSS 6.4 Medium : upgrade to 4.22.4 when convenient.

Data as of 18 Nov 2026, 20:24 UTC

CVSS 3.1 base score
6.4Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.7% chance of exploitation in 30 days – higher than 55% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.22.4
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 18 Nov 2026.

What to do

Upgrade rollup to 4.22.4.

Affected software

ProductAffectedFixed in
Homebrewrolluppkg:brew/rollupOther threatsAffected
  • >=2.56.3 <4.22.4
Fixed in
  • 4.22.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available that addresses this vulnerability by adding type checking to ensure the element used for import.meta.url is a SCRIPT tag before accessing its src attribute. Users of rollup versions >=2.56.3 and <4.22.4 should upgrade to version 4.22.4 or later to remediate this issue.

Description

CVE-2024-47068 is a DOM Clobbering vulnerability in rollup bundled scripts when using import.meta.url with cjs, umd, or iife output formats. It allows an attacker to manipulate document.currentScript by injecting scriptless HTML elements named 'currentScript', leading to cross-site scripting (XSS). The vulnerability affects rollup versions from 2.56.3 up to but not including 4.22.4. A patch is available that adds type checking to ensure only SCRIPT elements are used for the src attribute.

References

Community reviews

Loading reviews…