CVE-2025-65019 Details
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.
A stored cross-site scripting vulnerability has been identified in the Astro web framework's Cloudflare adapter, prior to version 5.15.9. The issue arises in the image optimization endpoint (/_image) when the output is set to 'server'. The vulnerability is rooted in the isRemoteAllowed() function, which improperly allows data: protocol URLs without validation. This flaw can be exploited by uploading malicious SVG files that execute JavaScript, bypassing domain restrictions and Content Security Policy protections.
Users can update to Astro version 5.15.9 or later, where this vulnerability has been patched. After updating, if data URLs need to be allowed for remote images, the astro.config.mjs file should be updated to include the appropriate remotePatterns configuration.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 19, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/withastro/astro/commit/9e9c528191b6f5e06db9daf6ad26b8f68016e533 | [email protected] | Patch |
| https://github.com/withastro/astro/security/advisories/GHSA-fvmw-cj7j-j39q | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| astro astro | < 5.15.9 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 25, 2025 | Initial Analysis | [email protected] |
| Nov 19, 2025 | New CVE Received | [email protected] |