Skip to content

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

MediumCVSS 6.1 EPSS 0.27%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
astro < 6.3.3 6.3.3 Fixed
npm astro(npm) < 6.3.3 6.3.3 Fixed
withastro astro = < 6.3.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
withastro astro = < 6.3.3 No fix listed
npm astro(npm) < 6.3.3 6.3.3
astro < 6.3.3 6.3.3

References