Vulnerability library
Security checkSeptember 05, 2025

Server-Side Request Forgery via /_image endpoint in Astro Cloudflare adapter

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated September 05, 2025