CVE-2025-58179
JavaScript vulnerability analysis and mitigation

Overview

Astro, a web framework for content-driven websites, disclosed a Server-Side Request Forgery (SSRF) vulnerability identified as CVE-2025-58179. The vulnerability affects versions 11.0.3 through 12.6.5 when using Astro's Cloudflare adapter with specific configurations. The issue was discovered and disclosed on September 4, 2025, impacting systems using the @astrojs/cloudflare adapter configured with output: 'server' while using the default imageService: 'compile' (GitHub Advisory).

Technical details

The vulnerability stems from a flaw in the image optimization endpoint that fails to properly validate URLs it receives. When configured with output: 'server' and using the default imageService: 'compile', the generated image optimization endpoint doesn't perform proper URL validation checks. The vulnerability has been assigned a CVSS v3.1 base score of 7.2 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N. The issue is classified under CWE-918 (Server-Side Request Forgery) (GitHub Advisory).

Impact

The vulnerability allows attackers to bypass third-party domain restrictions and serve unauthorized content from the vulnerable origin. This could lead to Server-Side Request Forgery (SSRF) attacks and potentially Cross-Site Scripting (XSS) if users follow maliciously crafted URLs. The impact includes the potential for unauthorized content serving and security scope breaches (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 12.6.6 of the @astrojs/cloudflare adapter. Users are strongly advised to upgrade to this version or later to address the security issue. The fix implements proper URL validation checks for the image optimization endpoint (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-58362HIGH7.5
  • JavaScriptJavaScript
  • hono
NoYesSep 05, 2025
CVE-2025-58358HIGH7.5
  • JavaScriptJavaScript
  • mcp-markdownify-server
NoYesSep 04, 2025
CVE-2025-58179HIGH7.2
  • JavaScriptJavaScript
  • @astrojs/cloudflare
NoYesSep 05, 2025
CVE-2025-55305MEDIUM6.1
  • JavaScriptJavaScript
  • electron
NoYesSep 04, 2025
CVE-2025-58064LOW2.3
  • JavaScriptJavaScript
  • @ckeditor/ckeditor5-clipboard
NoYesSep 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management