Skip to main content
CVE-2025-58179VulnerabilityPublished

CVE-2025-58179: withastro astro · Server-Side Request Forgery (SSRF)

Affects withastro astroSource CVE Database V5

0

Not known to be exploited · public detection template (Nuclei) · CVSS 7.2 High · fixed in 12.6.6 : patch withastro astro soon.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
7.2High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.8% chance of exploitation in 30 days – higher than 58% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 12.6.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Sep 2025

  2. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  3. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  4. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

AI-suggested

To mitigate this vulnerability, European organizations should promptly upgrade Astro to version 12.6.6 or later, where the issue is fixed. Beyond upgrading, organizations should audit their Astro configurations to ensure that the output is not unnecessarily set to 'server' unless required, and consider alternative imageService configurations if feasible. Implement strict network egress filtering on servers running Astro to restrict outbound HTTP requests only to trusted domains, preventing SSRF exploitation from reaching internal or sensitive endpoints. Employ Web Application Firewalls (WAFs) with rules tuned to detect and block unusual or unauthorized requests to image optimization endpoints. Conduct thorough code reviews and penetration testing focusing on SSRF vectors, especially in custom integrations with Astro and Cloudflare. Monitor logs for unusual outbound requests or access patterns indicative of SSRF attempts. Finally, maintain an up-to-date inventory of web frameworks and dependencies to ensure timely patching of vulnerabilities.

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.

References

Community reviews

Loading reviews…