CVE-2025-55303

Medium

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.

SeverityMedium
CVSS6.1
Exploit probability51. percentile0.6%
ProductAstro
PublishedAug 19, 2025
First seenAug 19, 2025

How to fix

Update
  • 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

ProductAffected versionsFixed in
astro astrov < 4.16.18, 5.0.0 ≤ v < 5.13.24.16.18, 5.13.2
astronpm5.0.0-alpha.0 ≤ v < 5.13.2, v < 4.16.195.13.2, 4.16.19
@astrojs/nodenpmv < 9.1.19.1.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.