Astro - XSS (CVE-2025-64525)
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.
psychologyCrowdSec Analysis
CVE-2025-64525 is a vulnerability in Astro web framework versions 2.16.0 up to but excluding 5.15.5, where unsanitized use of the x-forwarded-proto and x-forwarded-port headers can allow attackers to bypass middleware protections, poison caches, perform SSRF attacks, pollute URLs, and evade web application firewalls. This flaw could be exploited remotely, especially in environments using CDNs, leading to potential denial of service or security policy bypasses. Upgrading to version 5.15.5 mitigates these risks.
CrowdSec has been tracking this vulnerability and its exploits since 10th of December 2025.
CrowdSec has not observed any significant exploitation activity targeting CVE-2025-64525 across its network. As a result, no community-driven trend analysis is available for this vulnerability at this time.
Attackers exploit this vulnerability by sending requests with crafted x-forwarded-proto headers, often targeting the root / endpoint, to bypass middleware protections and potentially trigger SSRF or other security bypasses.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2025-11-13 |
| Rule Released | 2025-12-10 |
Remediation & Protection
External References
- https://github.com/withastro/astro/security/advisories/GHSA-hr2q-hp5q-x767
- https://github.com/withastro/astro/blob/970ac0f51172e1e6bff4440516a851e725ac3097/packages/astro/src/core/app/node.ts#L121
- https://github.com/withastro/astro/commit/dafbb1ba29912099c4faff1440033edc768af8b4
- https://github.com/withastro/astro/blob/970ac0f51172e1e6bff4440516a851e725ac3097/packages/astro/src/core/app/node.ts#L97
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-64525.yaml