Vulnerabilities · 2025 · Astro
CVE-2025-65019
Astro vulnerability
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.
Affected products
Astro. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Astro runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
More vulnerabilities in Astro products
CVE-2026-54298CVE-2026-50146CVE-2025-66202CVE-2025-64765CVE-2025-64764CVE-2025-64757CVE-2025-64745CVE-2025-64525All 17
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.