# CVE-2025-55303: Unauthorized third-party images in Astro’s _image endpoint

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.76%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-08-19T15:40:31.000Z
- Modified: 2026-06-17T09:41:36.960Z
- Also known as: GHSA-xf8x-j4p2-f749
- Weaknesses: CWE-79, CWE-115
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- withastro astro: >= 5.0.0-alpha.0, < 5.13.2; < 4.16.18
- astro (npm): from 5.0.0-alpha.0 before 5.13.2; before 4.16.19
- @astrojs/node (npm): before 9.1.1
- astro astro: before 4.16.18; from 5.0.0 before 5.13.2

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/withastro/astro/security/advisories/GHSA-xf8x-j4p2-f749> (exploit, vendor-advisory, web)
- <https://github.com/withastro/astro/commit/4d16de7f95db5d1ec1ce88610d2a95e606e83820> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-55303> (advisory)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2025-55303](https://www.cve.org/CVERecord?id=CVE-2025-55303), CVE Terms of Use, modified 2025-08-19
- GitHub Advisory Database: [GHSA-xf8x-j4p2-f749](https://github.com/advisories/GHSA-xf8x-j4p2-f749), CC-BY-4.0, modified 2025-11-27
- NVD: [CVE-2025-55303](https://nvd.nist.gov/vuln/detail/CVE-2025-55303), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-55303 · Whole record: https://cve.day/CVE-2025-55303.json · Rebuilt by cve.day 2026-11-25T22:59:03.326Z
