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.
How to fix
- astro astro4.16.18, 5.13.2 or later
- astro5.13.2, 4.16.19 or later
- @astrojs/node9.1.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| astro astro | v < 4.16.18, 5.0.0 ≤ v < 5.13.2 | 4.16.18, 5.13.2 |
| astronpm | 5.0.0-alpha.0 ≤ v < 5.13.2, v < 4.16.19 | 5.13.2, 4.16.19 |
| @astrojs/nodenpm | v < 9.1.1 | 9.1.1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.