Live threats

All CVEs / Rollupjs

CVE-2024-47068Rollupjs Rollup

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.0%
probability of exploitation in 30 days · percentile 61
Auth required
No
Published
Sep 23, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rollup.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm rollup ≥ 3.0.0 < 3.29.5 3.29.5 npm install rollup@3.29.5
npm rollup ≥ 4.0.0 < 4.22.4 4.22.4 npm install rollup@4.22.4
npm rollup < 2.79.2 2.79.2 npm install rollup@2.79.2

Per OSV / GitHub Advisories (GHSA-gcx4-mw62-g8wm). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
rollupjsrollup≥ 0.59.0 < 2.79.2
rollupjsrollup≥ 3.0.0 < 3.29.5
rollupjsrollup≥ 4.0.0 < 4.22.4

Official sources

References

Links published by the sources. Open them with care.