CVE-2025-65019
JavaScript vulnerability analysis and mitigation

Overview

A critical vulnerability (CVE-2025-65019) was discovered in Astro's Cloudflare adapter (@astrojs/cloudflare) affecting versions below 5.15.9. The vulnerability exists in the /_image endpoint when using output: 'server' configuration, where the isRemoteAllowed() function incorrectly allows data: protocol URLs without proper validation. This vulnerability was disclosed on November 19, 2025, and has been patched in version 5.15.9 (GitHub Advisory).

Technical details

The vulnerability stems from a flaw in the isRemoteAllowed() function located in packages/internal-helpers/src/remote.ts. The function unconditionally allows all data: protocol URLs without any validation or sanitization, bypassing domain restrictions and Content Security Policy protections. The vulnerability has been assigned a CVSS score of 5.4 (Moderate) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N. The issue is classified as CWE-79: Improper Neutralization of Input During Web Page Generation (GitHub Advisory).

Impact

The vulnerability can lead to several serious security implications including: Stored Cross-Site Scripting (XSS) allowing execution of malicious JavaScript in victims' browsers, potential session hijacking through access to cookies and session tokens, possible account takeover when combined with CSRF attacks, and data exfiltration where sensitive information can be stolen and transmitted to attacker-controlled servers (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 5.15.9 of the package. Users should upgrade to this version or later. For those who need to use data URIs for remote images, they must explicitly authorize them by updating their astro.config.mjs file to include specific remotePatterns configuration that allows the data protocol (GitHub Advisory, Astro Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65099HIGH7.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesNov 19, 2025
CVE-2025-64764HIGH7.1
  • JavaScriptJavaScript
  • astro
NoYesNov 19, 2025
CVE-2025-64765MEDIUM6.9
  • JavaScriptJavaScript
  • astro
NoYesNov 19, 2025
CVE-2025-65019MEDIUM5.4
  • JavaScriptJavaScript
  • astro
NoYesNov 19, 2025
CVE-2025-64757LOW3.5
  • JavaScriptJavaScript
  • astro
NoYesNov 19, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management