CVE 7.1 HIGH

Astro: Reflected XSS via unescaped slot name_CVE-2026-50146

7.1 / 10
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N

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.

Basic Information

ID CVE-2026-50146
Source GitHub_M
Published Jun 22, 2026 at 17:31

Affected Product

Vendor withastro
Product astro
Version < 6.3.3
Affected Versions withastro astro < 6.3.3

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.