What’s Vulnerable › Vulnerabilities

CVE-2026-50146: Astro: Reflected XSS via unescaped slot name

Description

Astro is a web framework. Prior to 6.3.3, when a component uses a client:* directive, Astro inserts named slot content into a data-astro-template attribute without HTML escaping the slot name allowing an attacker to break out of the attribute context and inject arbitrary HTML, resulting in reflected XSS during SSR. This vulnerability is fixed in 6.3.3.

Affected products

How to fix

Upgrade to a fixed version: withastro astro 6.3.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-50146 or the next vulnerability affects your stack