Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 81%

CVE-2026-50146: CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in withastro astro

0
High
VulnerabilityCVE-2026-50146cvecve-2026-50146cwe-80
Published: 06/22/2026 (06/22/2026, 17:31:56 UTC)
Source: CVE Database V5
Vendor/Project: withastro
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N

Affected software

GitHub Actionsmore threats →ai
withastro/astro
pkg:github/withastro/astro
Affected versions
<6.3.3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/29/2026, 21:54:12 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses