CVE-2026-126362
Astro: Reflected XSS via unescaped slot names in @astrojs/svelte
Description
Astro is a web framework for content-driven websites. From 5.7.3 until 9.1.2, the @astrojs/svelte renderer inserted a named slot into the quoted name attribute of an astro-slot wrapper without HTML escaping. Request-controlled slot names containing a quote could terminate the attribute and inject active HTML. Exploitation required a hydrated Svelte component using a client:* directive and dynamic rendering of the attacker-chosen slot; components that did not render that slot emitted only Astro's escaped fallback content. Both server rendering and client-side hydration used the unsafe slot name. This issue is fixed in version 9.1.2.
INFO
Published Date :
Nov. 12, 2026, 10:29 p.m.
Last Modified :
Nov. 12, 2026, 10:29 p.m.
Remotely Exploit :
No
Source :
GitHub_M
Solution
- Update to @astrojs/svelte renderer version 9.1.2.
- Ensure Svelte components do not use dynamic slot names.
- Sanitize any user-provided slot names.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-126362 vulnerability anywhere in the article.