NetSight
high7.1

CVE-2026-50146

Astro: Reflected XSS via unescaped slot name

Impact

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 packages

EcosystemPackageAffectedFixed in
npmastro< 6.3.36.3.3

Affected products

VendorProductAffected versions
AstroAstro
before 6.3.3

Weakness classification

References