Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Astro | Astro | < 4.16.18 |
Related Weaknesses (CWE)
References
- https://github.com/withastro/astro/commit/4d16de7f95db5d1ec1ce88610d2a95e606e838Patch
- https://github.com/withastro/astro/security/advisories/GHSA-xf8x-j4p2-f749ExploitVendor Advisory
- https://github.com/withastro/astro/security/advisories/GHSA-xf8x-j4p2-f749ExploitVendor Advisory
FAQ
What is CVE-2025-55303?
CVE-2025-55303 is a vulnerability with a CVSS score of 6.1 (MEDIUM). 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 u...
How severe is CVE-2025-55303?
CVE-2025-55303 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-55303?
Check the references section above for vendor advisories and patch information. Affected products include: Astro Astro.