Intel

AIKIDO-2026-10849

astro is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published May 19, 2026

65

Medium Risk

This Affects:

JSastro
3.0.0 - 6.3.2
Fixed in 6.3.3
Are you affected? Scan for Free

TL;DR

On the server, Astro renders hydrated client:* components with slot names embedded in astro-slot and data-astro-template attributes without HTML escaping. If slot names come from user-controlled input, an attacker can break out of the attribute context and inject markup or scripts into the SSR HTML response. Browsers that render that page can execute the injected content as reflected cross-site scripting. The fix applies escapeHTML() to slot name keys at both interpolation sites in the component renderer.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

astro is vulnerable to Cross-site Scripting (XSS) in versions 3.0.0 - 6.3.2.

How to fix this

Upgrade the astro library to the patch version.