CVE-2026-50146: CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in withastro astro
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.
AI Analysis
Technical Summary
CVE-2026-50146 is a reflected XSS vulnerability in the Astro web framework before version 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. This improper neutralization of script-related HTML tags (CWE-80) enables an attacker to break out of the attribute context and inject arbitrary HTML during SSR, leading to reflected cross-site scripting. The issue is resolved in Astro 6.3.3.
Potential Impact
An attacker can exploit this vulnerability to inject arbitrary HTML into web pages rendered by Astro during SSR, potentially leading to the execution of malicious scripts in the context of the victim's browser. This can result in information disclosure or other impacts associated with reflected XSS. The CVSS 3.1 base score is 7.1 (High), reflecting the network attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, low confidentiality impact, high integrity impact, and no availability impact.
Mitigation Recommendations
Upgrade to Astro version 6.3.3 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are indicated. Patch status is confirmed by the vendor advisory stating the fix is in 6.3.3.
CVE-2026-50146: CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in withastro astro
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.
CVSS v3.1
Score 7.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-50146 is a reflected XSS vulnerability in the Astro web framework before version 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. This improper neutralization of script-related HTML tags (CWE-80) enables an attacker to break out of the attribute context and inject arbitrary HTML during SSR, leading to reflected cross-site scripting. The issue is resolved in Astro 6.3.3.
Potential Impact
An attacker can exploit this vulnerability to inject arbitrary HTML into web pages rendered by Astro during SSR, potentially leading to the execution of malicious scripts in the context of the victim's browser. This can result in information disclosure or other impacts associated with reflected XSS. The CVSS 3.1 base score is 7.1 (High), reflecting the network attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, low confidentiality impact, high integrity impact, and no availability impact.
Mitigation Recommendations
Upgrade to Astro version 6.3.3 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are indicated. Patch status is confirmed by the vendor advisory stating the fix is in 6.3.3.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-03T18:49:32.276Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a398861eed863c81e5021bb
Added to database: 06/22/2026, 19:09:21 UTC
Last enriched: 06/29/2026, 21:54:12 UTC
Last updated: 08/05/2026, 12:41:15 UTC
Views: 75
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.