CVE-2026-50146 PUBLISHED

Astro: Reflected XSS via unescaped slot name

Assigner: GitHub_M
Reserved: 03.06.2026 Published: 22.06.2026 Updated: 23.06.2026

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.

Metrics

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

Product Status

Vendor withastro
Product astro
Versions
  • Version < 6.3.3 is affected

References

Problem Types

  • CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) CWE