Astro
Astro Cloudflare adapter is vulnerable to Server-Side Request Forgery via /_image endpoint
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 11.0.3, < 12.6.6
Fixed in 12.6.6
Mitigation
Upgrade astro to 12.6.6 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 7.1 days after publication; not in CISA KEV. First PoC: nuclei template: Astro Cloudflare Adapter - Server Side Request Forgery (nuclei template, 12 Sep 2025).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| shitodcy/CVE-2025-58179-Check | 11 Nov 2025 +67 d | 2 | Scanner |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Astro Cloudflare Adapter - Server Side Request Forgery | 12 Sep 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /_image
- Query
href=- Ports
- 80, 443
- PoC User-Agent
body_markers_placeholder- Seen in
- 1 repo: shitodcy/CVE-2025-58179-Check
- Evidence
- shitodcy/CVE-2025-58179-Check/CVE-2025-58179-Check.py:32 shitodcy/CVE-2025-58179-Check/CVE-2025-58179-Check.py:47 shitodcy/CVE-2025-58179-Check/README.md:57
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/_image\?(?:.*&)?href=
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [80,443] (msg:"GG PoC-Monitor CVE-2025-58179 withastro astro exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/_image"; http.uri; content:"href="; reference:url,poc.griffinguard.io/cve/CVE-2025-58179; classtype:web-application-attack; sid:9881003; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: withastro astro exploit attempt (CVE-2025-58179)
id: gg-pocmon-cve-2025-58179-9881003
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-58179. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-58179
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/_image'
cs-uri-query|contains|all:
- 'href='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.58179