CVE-2026-50146 Details
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.
A reflected cross-site scripting vulnerability has been identified in the Astro web framework, specifically in versions prior to 6.3.3. The issue arises when a component utilizes a client directive, causing Astro to insert named slot content into a data attribute without proper HTML escaping. This flaw allows an attacker to inject arbitrary HTML, leading to reflected XSS during server-side rendering.
Users can update to Astro version 6.3.3 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/withastro/astro/security/advisories/GHSA-8hv8-536x-4wqp | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/withastro/astro/security/advisories/GHSA-8hv8-536x-4wqp | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-80 | Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| astro astro | < 6.3.3 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 23, 2026 | CVE Modified | CISA-ADP |
| Jun 22, 2026 | Initial Analysis | [email protected] |
| Jun 22, 2026 | New CVE Received | [email protected] |