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
- lobe-chat `/api/proxy` endpoint Server-Side Request Forgery vulnerability - CVE-2024-32964
- LangSmith Client SDK Affected by Server-Side Request Forgery via Tracing Header Injection - CVE-2026-25528
- fast-uri vulnerable to server-side request forgery via repeated hostname percent-decoding - CVE-2026-75899
- fast-uri vulnerable to server-side request forgery via malformed IPv6 normalization - CVE-2026-75975


