DOM Clobbering Gadget found in astro's client-side router that leads to XSS
- Severity:
- Medium
Description
A DOM Clobbering gadget has been discoverd in Astro’s client-side router. It can lead to cross-site scripting (XSS) in websites enables Astro’s client-side routing and has stored attacker-controlled scriptless HTML elements (i.e., iframe tags with unsanitized name attributes) on the destination pages.
Recommendation
Update the astro package to the latest compatible version. Followings are version details:
- Affected version(s): >= 3.0.0, < 4.16.1
- Patched version(s): 4.16.1
References
Related Issues
- DOM Clobbering Gadget found in rollup bundled scripts that leads to XSS - CVE-2024-47068
- Vite DOM Clobbering gadget found in vite bundled scripts that leads to XSS - CVE-2024-45812
- Webpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSS - CVE-2024-43788
- DOM Clobbering Gadget found in Rspack's AutoPublicPathRuntimeModule that leads to XSS - Vulnerability
- Tags:
- npm
- astro
Anything's wrong? Let us know Last updated on November 27, 2025