Astro Cloudflare adapter is vulnerable to Server-Side Request Forgery via /_image endpoint
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
Astro is a web framework for content-driven websites. Versions 11.0.3 through 12.6.5 are vulnerable to SSRF when using Astro's Cloudflare adapter. When 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. a A bug in impacted versions of the @astrojs/cloudflare adapter for deployment on Cloudflare’s infrastructure, allows an attacker to bypass the third-party domain restrictions and serve any content from the vulnerable origin. This issue is fixed in version 12.6.6.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| withastro | astro | 11.0.3 to before 12.6.6 | 12.6.6 | Patch available | CNA |
| — | @astrojs/cloudflare (npm) | 11.0.3 to before 12.6.6 | 12.6.6 | Patch available | GHSA-qpr4-c339-7vq8 |
- astro Vendorwithastro Affected 11.0.3 to before 12.6.6 Fixed in 12.6.6 Patch available CNA
- @astrojs/cloudflare (npm) Vendor— Affected 11.0.3 to before 12.6.6 Fixed in 12.6.6 Patch available GHSA-qpr4-c339-7vq8
Remediation
- Fix · CNA astro (withastro) Fixed in 12.6.6
- Fix · GHSA-qpr4-c339-7vq8 @astrojs/cloudflare (npm) Fixed in 12.6.6 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-58179
- 2026-10-03 Alias added: GHSA-qpr4-c339-7vq8
References
Sources
- CVE-2025-58179 · CVE Program
- CVE-2025-58179 · NVD
- FIRST EPSS
- GHSA-qpr4-c339-7vq8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences