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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/withastro/astro/security/advisories/GHSA-8hv8-536x-4wqp exploit mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product