Security mailing lists by PureSourceCode

CVE-2024-47068

MEDIUM 6.1CVSS 3.1

DOM Clobbering Gadget found in rollup bundled scripts that leads to XSS

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.

Published
23 Sep 2024
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-gcx4-mw62-g8wm
Sources
NVDJSONOSV GHSA-gcx4-mw62-g8wmJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
OSV GitHub CVSS 3.1 MEDIUM 6.4 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD rollupjs rollup
cpe:2.3:a:rollupjs:rollup:*:*:*:*:*:node.js:*:*
>= 0.59.0, < 2.79.2 2.79.2
NVD rollupjs rollup
cpe:2.3:a:rollupjs:rollup:*:*:*:*:*:node.js:*:*
>= 3.0.0, < 3.29.5 3.29.5
NVD rollupjs rollup
cpe:2.3:a:rollupjs:rollup:*:*:*:*:*:node.js:*:*
>= 4.0.0, < 4.22.4 4.22.4
OSV npm rollup >= 3.0.0, < 3.29.5 3.29.5
OSV npm rollup >= 4.0.0, < 4.22.4 4.22.4
OSV npm rollup < 2.79.2 2.79.2

References

History

  • 25 Nov 2026 20:56 UTC · NVD: first stored (published 23 Sep 2024)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 23 Sep 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.