Astro Web Framework Reflected Cross-Site Scripting Vulnerability in Server Islands Feature

Vulnerability

A reflected cross-site scripting vulnerability has been identified in the Astro web framework, specifically in versions prior to 5.15.8. This issue arises when the server islands feature is utilized, allowing for the injection of malicious scripts regardless of the component template's design. The vulnerability has been addressed in version 5.15.8.

Impact

Exploitation of this vulnerability allows for reflected cross-site scripting, where an attacker can inject malicious scripts that are executed in the context of the user's browser.

Reproduction

To reproduce this vulnerability, use Astro version 5.15.6 and enable the server islands feature. Create a component that is completely empty and does not utilize slots. Then, access the server islands endpoint for that component, injecting a cross-site scripting payload into the slots parameter. The injected script will be executed, demonstrating the vulnerability.

Remediation

Users can upgrade to Astro version 5.15.8 or later to address this vulnerability.

Added: Nov 19, 2025, 5:18 PM
Updated: Nov 19, 2025, 7:31 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.7
exploitability
7.7
remediation
7.7
relevance
1.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.