Skip to main content
← All vulnerabilities
CVE-2025-65019GHSA-FVMW-CJ7J-J39Q

Astro Cloudflare adapter has a Stored Cross Site Scripting vulnerability in /_image endpoint

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.15.9
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • withastro astro

    fixed in 5.15.9

  • astronpm

    fixed in 5.15.9

References 2

GitHub · withastro/astro