# CVE-2025-65019: Astro Cloudflare adapter has a Stored Cross Site Scripting vulnerability in /_image endpoint

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A: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.27%, higher than 21% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-11-19T16:40:47.826Z
- Modified: 2026-10-18T20:10:00.110Z
- Also known as: GHSA-fvmw-cj7j-j39q
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Astro is a web framework. Prior to version 5.15.9, when using Astro's Cloudflare adapter (@astrojs/cloudflare) with output: 'server', the image optimization endpoint (/_image) contains a critical vulnerability in the isRemoteAllowed() function that unconditionally allows data: protocol URLs. This enables Cross-Site Scripting (XSS) attacks through malicious SVG payloads, bypassing domain restrictions and Content Security Policy protections. This issue has been patched in version 5.15.9.

(As written by CVE List.)

## Affected

- withastro astro: < 5.15.9
- astro (npm): before 5.15.9
- astro astro: before 5.15.9

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A: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-fvmw-cj7j-j39q> (exploit, third-party-advisory, web)
- <https://github.com/withastro/astro/commit/9e9c528191b6f5e06db9daf6ad26b8f68016e533> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-65019> (advisory)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2025-65019](https://www.cve.org/CVERecord?id=CVE-2025-65019), CVE Terms of Use, modified 2025-11-19
- GitHub Advisory Database: [GHSA-fvmw-cj7j-j39q](https://github.com/advisories/GHSA-fvmw-cj7j-j39q), CC-BY-4.0, modified 2025-11-27
- NVD: [CVE-2025-65019](https://nvd.nist.gov/vuln/detail/CVE-2025-65019), Public domain, modified 2026-10-18

---

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