Vulnerabilities · 2025 · Astro
CVE-2025-64525
Astro vulnerability
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.
Affected products
Astro. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Astro runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/withastro/astro/security/advisories/GHSA-hr2q-hp5q-x767
- nvd.nist.gov/vuln/detail/CVE-2025-64525
- github.com/withastro/astro/commit/dafbb1ba29912099c4faff1440033edc768af8b4
- github.com/withastro/astro/blob/970ac0f51172e1e6bff4440516a851e725ac3097/packages/astro/sr
- github.com/withastro/astro/blob/970ac0f51172e1e6bff4440516a851e725ac3097/packages/astro/sr
- github.com/advisories/GHSA-hr2q-hp5q-x767
- nvd.nist.gov/vuln/detail/CVE-2025-64525
- cve.org/CVERecord?id=CVE-2025-64525
More vulnerabilities in Astro products
CVE-2026-54298CVE-2026-50146CVE-2025-66202CVE-2025-65019CVE-2025-64765CVE-2025-64764CVE-2025-64757CVE-2025-64745All 17
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.