Vulnerability library
Security checkSeptember 26, 2024

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmrollup

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

We discovered a DOM Clobbering vulnerability in rollup when bundling scripts that use import.meta.url or with plugins that emit and reference asset files from code 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.

Recommendation

Update the rollup package to the latest compatible version. Followings are version details:

  • Affected version(s): **< 2.79.2 >= 3.0.0, < 3.29.5 >= 4.0.0, < 4.22.4**
  • Patched version(s): **2.79.2 3.29.5 4.22.4**

References

Could your website be exposed too?

SmartScanner can check your website for DOM Clobbering Gadget found in rollup bundled scripts that leads to XSS and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 26, 2024