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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.24%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-11-13T15:58:16.797Z
- Modified: 2026-10-07T21:10:00.200Z
- Also known as: GHSA-hr2q-hp5q-x767
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- withastro astro: >= 2.16.0, < 5.15.5
- astro (npm): from 2.16.0 before 5.15.5
- astro astro: from 2.16.0 before 5.15.5

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`

## References

- <https://github.com/withastro/astro/security/advisories/GHSA-hr2q-hp5q-x767> (exploit, third-party-advisory, web)
- <https://github.com/withastro/astro/commit/dafbb1ba29912099c4faff1440033edc768af8b4> (patch, web)
- <https://github.com/withastro/astro/blob/970ac0f51172e1e6bff4440516a851e725ac3097/packages/astro/src/core/app/node.ts#L121> (product, web)
- <https://github.com/withastro/astro/blob/970ac0f51172e1e6bff4440516a851e725ac3097/packages/astro/src/core/app/node.ts#L97> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-64525> (advisory)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2025-64525](https://www.cve.org/CVERecord?id=CVE-2025-64525), CVE Terms of Use, modified 2025-11-13
- GitHub Advisory Database: [GHSA-hr2q-hp5q-x767](https://github.com/advisories/GHSA-hr2q-hp5q-x767), CC-BY-4.0, modified 2025-11-13
- NVD: [CVE-2025-64525](https://nvd.nist.gov/vuln/detail/CVE-2025-64525), Public domain, modified 2026-10-07

---

Page: https://cve.day/CVE-2025-64525 · Whole record: https://cve.day/CVE-2025-64525.json · Rebuilt by cve.day 2026-11-25T22:59:07.633Z
