Skip to main content
← All vulnerabilities
CVE-2025-64525GHSA-HR2Q-HP5Q-X767

Astro: URL manipulation via unsanitized headers leads to path-based middleware protections bypass, potential SSRF/cache-poisoning, CVE-2025-61925 bypass

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.15.5
1 Nuclei template
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

Astro is a web framework. In Astro versions 2.16.0 up to but excluding 5.15.5 which utilizeon-demand rendering, request headers `x-forwarded-proto` and `x-forwarded-port` are insecurely used, without sanitization, to build the URL. This has several consequences, the most important of which are: middleware-based protected route bypass (only via `x-forwarded-proto`), DoS via cache poisoning (if a CDN is present), SSRF (only via `x-forwarded-proto`), URL pollution (potential SXSS, if a CDN is present), and WAF bypass. Version 5.15.5 contains a patch.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • withastro astro

    From 2.16.0 · fixed in 5.15.5

  • astronpm

    From 2.16.0 · fixed in 5.15.5

References 5

GitHub · withastro/astro

GitHub · projectdiscovery/nuclei-templates