CVE-2025-55303 Unauthorized third-party images in Astro’s _image endpoint
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
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.
Upgrade path
4 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| @astrojs/node(npm) | < 9.1.1; <= 9.1.0 | 9.1.1 | Fixed |
| astro | < 4.16.18; >= 5.0.0, < 5.13.2 | 4.16.18, 5.13.2 | Fixed |
| npm astro(npm) | < 4.16.19; <= 4.16.18; >= 5.0.0-alpha.0, < 5.13.2 | 4.16.19, 5.13.2 | Fixed |
| withastro astro | = < 4.16.18; = >= 5.0.0-alpha.0, < 5.13.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| @astrojs/node(npm) | <= 9.1.0 | No fix listed |
| npm astro(npm) | <= 4.16.18 | No fix listed |
| npm astro(npm) | >= 5.0.0-alpha.0, < 5.13.2 | 5.13.2 |
| withastro astro | = >= 5.0.0-alpha.0, < 5.13.2 | No fix listed |
| withastro astro | = < 4.16.18 | No fix listed |
| astro | < 4.16.18 | 4.16.18 |
| astro | >= 5.0.0, < 5.13.2 | 5.13.2 |
| @astrojs/node(npm) | < 9.1.1 | 9.1.1 |
| npm astro(npm) | < 4.16.19 | 4.16.19 |
References
- https://github.com/withastro/astro/security/advisories/GHSA-xf8x-j4p2-f749 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/withastro/astro/commit/4d16de7f95db5d1ec1ce88610d2a95e606e83820 patch
- github.com
- github.com product