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

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 12% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-16T14:05:06.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-8hv8-536x-4wqp
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- withastro astro: < 6.3.3
- astro (npm): before 6.3.3
- astro astro: before 6.3.3

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/withastro/astro/security/advisories/GHSA-8hv8-536x-4wqp> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-50146> (advisory)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2026-50146](https://www.cve.org/CVERecord?id=CVE-2026-50146), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-8hv8-536x-4wqp](https://github.com/advisories/GHSA-8hv8-536x-4wqp), CC-BY-4.0, modified 2026-08-12
- NVD: [CVE-2026-50146](https://nvd.nist.gov/vuln/detail/CVE-2026-50146), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-50146 · Whole record: https://cve.day/CVE-2026-50146.json · Rebuilt by cve.day 2026-11-25T22:59:25.402Z
