Technical impact
Astro’s @astrojs/svelte renderer, between versions 5.7.3 and 9.1.2, inserted a user‑controlled named slot into a quoted name attribute of an astro‑slot wrapper without HTML escaping. This permits an attacker to terminate the attribute and inject active HTML when the slot name contains a quote character. The vulnerability is limited to reflected content because it only manifests when the application renders the attacker‑controlled slot name. Exploitation does not alter the server‑side rendering per se; it relies on client‑side hydration of a Svelte component that uses a client:* directive along with dynamically chosen slot names.
Affected Systems
The affected product is Astro by withastro. Versions from 5.7.3 up to but not including 9.1.2 are vulnerable. The flaw was fixed in release 9.1.2 of the @astrojs/svelte renderer.
Risk and Exploitability
The CVSS score of 2.3 indicates low severity, and the EPSS score of less than 1% suggests a very low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Attackers would need to supply a crafted request that triggers the hydrated Svelte component with a client:* directive and a dynamic slot name containing a quote. The attack vector is therefore limited and requires specific framework usage patterns, reducing overall risk even though the impact is active content injection.
Github GHSA