CVE-2025-64525
MEDIUM 6.5CVSS 3.1Astro vulnerable to URL manipulation via headers, leading to middleware and CVE-2025-61925 bypass
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.
- Published
- 13 Nov 2025
- Last modified
- 7 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-918
- Also known as
- GHSA-hr2q-hp5q-x767
- Sources
- NVDJSONOSV GHSA-hr2q-hp5q-x767JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | astro | astrocpe:2.3:a:astro:astro:*:*:*:*:*:node.js:*:* |
>= 2.16.0, < 5.15.5 | 5.15.5 |
| OSV | npm | astro | >= 2.16.0, < 5.15.5 | 5.15.5 |
References
- 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://github.com/withastro/astro/commit/dafbb1ba29912099c4faff1440033edc768af8b4 · Patch, WEB
- https://github.com/withastro/astro/security/advisories/GHSA-hr2q-hp5q-x767 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-64525 · ADVISORY
- https://github.com/withastro/astro · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 13 Nov 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Nov 2025)