CVE-2025-65019: withastro astro · Cross-site Scripting
Affects withastro astroSource CVE Database V5
Not known to be exploited · CVSS 5.4 Medium : upgrade to 5.15.9 when convenient.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 19% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.15.9
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 19 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade withastro astro to 5.15.9.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmastropkg:npm/astroOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately upgrade all Astro framework instances to version 5.15.9 or later to apply the official patch that corrects the URL validation logic. Review and tighten Content Security Policy configurations to restrict allowable sources for images and scripts, explicitly disallowing data: protocol URLs where possible. Implement input validation and sanitization on any user-supplied content that may be processed by the image optimization endpoint. Conduct thorough security testing, including automated scanning and manual penetration testing, focusing on SVG and image handling functionalities. Educate developers about the risks of improper input neutralization and the importance of adhering to secure coding practices. Monitor web application logs for suspicious requests targeting the _/image endpoint and consider deploying Web Application Firewalls (WAF) with custom rules to detect and block malicious payloads. Finally, maintain an incident response plan to quickly address any exploitation attempts.
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.