Skip to content

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

MediumCVSS 6.5 EPSS 1.2% Scanner template
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

Description

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
astro >= 2.16.0, < 5.15.5 5.15.5 Fixed
npm astro(npm) >= 2.16.0, < 5.15.5 5.15.5 Fixed
withastro astro = >= 2.16.0, < 5.15.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm astro(npm) >= 2.16.0, < 5.15.5 5.15.5
withastro astro = >= 2.16.0, < 5.15.5 No fix listed
astro >= 2.16.0, < 5.15.5 5.15.5

References