Astro - XSS (CVE-2025-55303)
Description
Astro is a web framework for content-driven websites. In versions of astro before 5.13.2 and 4.16.18, the image optimization endpoint in projects deployed with on-demand rendering allows images from unauthorized third-party domains to be served. On-demand rendered sites built with Astro include an /_image endpoint which returns optimized versions of images. A bug in impacted versions of astro allows an attacker to bypass the third-party domain restrictions by using a protocol-relative URL as the image source, e.g. /_image?href=//example.com/image.png. This vulnerability is fixed in 5.13.2 and 4.16.18.
psychologyCrowdSec Analysis
CVE-2025-55303 is a vulnerability in the Astro web framework that allows attackers to bypass domain restrictions on the image optimization endpoint, enabling unauthorized third-party images to be served via protocol-relative URLs. This flaw could be exploited to facilitate cross-site scripting (XSS) or content injection attacks, potentially compromising the security of content-driven websites built with affected versions of Astro.
CrowdSec has been tracking this vulnerability and its exploits since 11th of February 2026.
CrowdSec network observations suggest that most exploitation of CVE-2025-55303 involves focused reconnaissance to identify viable targets. Attackers typically tailor their campaigns based on system exposure and configuration. It is unlikely that a given attack is accidental. In addition, according to the CrowdSec network, attack volume against CVE-2025-55303 has dipped slightly compared to the previous week. Although still commonly targeted, the decline suggests a cooling-off period. Long-term relevance remains, but attention is waning.
Attackers exploit the image optimization endpoint by sending requests to URLs containing /_image?href=// followed by a third-party domain, allowing unauthorized access to external images. This targets Astro deployments with on-demand rendering and can lead to information disclosure or content spoofing.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2025-08-19 |
| Rule Released | 2026-02-11 |
| CrowdSec First Seen | 2026-02-12 |
Related Weaknesses
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
The product misinterprets an input, whether from an attacker or another product, in a security-relevant fashion.