Vulnerability Description
The Astro web framework has a DOM Clobbering gadget in the client-side router starting in version 3.0.0 and prior to version 4.16.1. 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. This vulnerability can result in cross-site scripting (XSS) attacks on websites that built with Astro that enable the client-side routing with `ViewTransitions` and store the user-inserted scriptless HTML tags without properly sanitizing the `name` attributes on the page. Version 4.16.1 contains a patch for this issue.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Astro | Astro | >= 3.0.0, < 4.16.1 |
Related Weaknesses (CWE)
References
- https://github.com/withastro/astro/blob/7814a6cad15f06931f963580176d9b38aa7819f2Product
- https://github.com/withastro/astro/commit/a4ffbfaa5cb460c12bd486fd75e36147f51d3ePatch
- https://github.com/withastro/astro/security/advisories/GHSA-m85w-3h95-hcf9Vendor Advisory
FAQ
What is CVE-2024-47885?
CVE-2024-47885 is a vulnerability with a CVSS score of 5.9 (MEDIUM). The Astro web framework has a DOM Clobbering gadget in the client-side router starting in version 3.0.0 and prior to version 4.16.1. It can lead to cross-site scripting (XSS) in websites enables Astro...
How severe is CVE-2024-47885?
CVE-2024-47885 has been rated MEDIUM with a CVSS base score of 5.9/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-47885?
Check the references section above for vendor advisories and patch information. Affected products include: Astro Astro.