CVE-2025-65019
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-11-19

Last updated on: 2025-11-25

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-11-19
Last Modified
2025-11-25
Generated
2026-05-07
AI Q&A
2025-11-19
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
astro astro to 5.15.9 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in Astro's Cloudflare adapter when using output: 'server' prior to version 5.15.9. The image optimization endpoint (/_image) has a critical flaw in the isRemoteAllowed() function that incorrectly allows data: protocol URLs. This flaw enables Cross-Site Scripting (XSS) attacks via malicious SVG payloads, bypassing domain restrictions and Content Security Policy protections.


How can this vulnerability impact me? :

The vulnerability can lead to Cross-Site Scripting (XSS) attacks, which may allow attackers to execute malicious scripts in users' browsers. This can result in unauthorized actions, data theft, session hijacking, or other malicious activities, compromising the security and integrity of your web application and its users.


What immediate steps should I take to mitigate this vulnerability?

Upgrade Astro to version 5.15.9 or later, as this version contains the patch that fixes the critical vulnerability in the image optimization endpoint. Until the upgrade is applied, consider disabling the use of the Cloudflare adapter with output set to 'server' to prevent exploitation.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart