CVE-2025-58179 Astro Cloudflare adapter is vulnerable to Server-Side Request Forgery via /_image endpoint

High 7.2 Published Updated

Attackers can bypass domain restrictions to serve unauthorized content via the image endpoint in Astro's Cloudflare adapter when server output is enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-58179?

CVE-2025-58179 is a high-severity server-side request forgery vulnerability in withastro astro, published on 4 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-918

Which versions are affected by CVE-2025-58179?

2 open source packages ship an affected version, including @astrojs/cloudflare. It affects 1 product.

PackageAffectedFixed in
@astrojs/cloudflare npmFrom 11.0.312.6.6
@astrojs/cloudflare npmFrom 11.0.312.6.6

Products include Astro \@Astrojs\/Cloudflare.

How do I fix CVE-2025-58179?

Upgrade @astrojs/cloudflare to 12.6.6 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2025-58179 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-58179 exists.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

Sources

Also known as GHSA-qpr4-c339-7vq8.

Is CVE-2025-58179 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free