Description
When using Astro’s Cloudflare adapter (@astrojs/cloudflare) configured with output: 'server' while using the default imageService: 'compile', the generated image optimization endpoint doesn’t check the URLs it receives, allowing content from unauthorized third-party domains to be served.
Recommendation
Update the @astrojs/cloudflare package to the latest compatible version. Followings are version details:
- Affected version(s): >= 11.0.3, < 12.6.6
- Patched version(s): 12.6.6
References
Could your website be exposed too?
SmartScanner can check your website for Server-Side Request Forgery via /_image endpoint in Astro Cloudflare adapter and gives you actionable findings to investigate.
Start a free scanRelated Issues
- HAX open-apis: Credential Theft via Server-Side Request Forgery (SSRF) in open-apis - CVE-2026-46391
- private-ip vulnerable to Server-Side Request Forgery - CVE-2025-8020
- Cloudflare has SSRF via redirect following through its image-binding-transform endpoint (incomplete fix for GHSA-qpr4) - CVE-2026-41321
- Lobe Chat vulnerable to Server-Side Request Forgery with native web fetch module - CVE-2025-62505


