{"id":"CVE-2024-47885","published":"2024-10-14T19:06:09Z","modified":"2024-10-15T14:51:20Z","title":"astro's client-side router has DOM Clobbering Gadget that leads to XSS","vendor":"withastro","product":"astro","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00689,"percentile":0.4805,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-m85w-3h95-hcf9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/withastro/astro/commit/a4ffbfaa5cb460c12bd486fd75e36147f51d3e5e","tags":["x_refsource_MISC"]},{"url":"https://github.com/withastro/astro/blob/7814a6cad15f06931f963580176d9b38aa7819f2/packages/astro/src/transitions/router.ts#L135-L156","tags":["x_refsource_MISC"]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":9.61},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"withastro","affectedVersions":[{"vendor":"withastro","product":"astro","versions":[">=3.0.0, < 4.16.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-15T14:46:55.450301Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"astro","vulnerableRanges":[">=3.0.0, <4.16.1"],"patched":["4.16.1"],"from":["GHSA-m85w-3h95-hcf9"],"provenance":"source"}],"summary":{"text":"The DOM Clobbering gadget in the client-side router of the Astro web framework, in versions 3.0.0 through prior to 4.16.1, can lead to cross-site scripting. An attacker who can get scriptless HTML elements such as iframe tags with unsanitized name attributes stored on destination pages can exploit this on sites that use Astro's client-side routing via ViewTransitions, which requires low-privileged access to store the content and user interaction for the attack to proceed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:53:26Z"},"euvd":{"id":"EUVD-2024-3078","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-47885","published":"2024-10-14","fixed":"4.16.1","kev":false},{"cve":"CVE-2024-56140","published":"2024-12-18","fixed":"4.16.17","kev":false,"link":{"from":"CVE-2024-47885","to":"CVE-2024-56140","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:astro","fromFixed":"4.16.1","toFixed":"4.16.17","daysApart":65}]}},{"cve":"CVE-2024-56159","published":"2024-12-19","fixed":"5.0.8","kev":false},{"cve":"CVE-2025-54793","published":"2025-08-08","fixed":"5.12.8","kev":false}],"package":"npm:astro"}}