CVE-2025-64525: Astro vulnerable to URL manipulation via headers, leading to middleware and CVE-2025-61925 bypass
Affects astroSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · public detection template (Nuclei) · CVSS 6.5 Medium : upgrade to 5.15.5 when convenient.
Data as of 13 Nov 2026, 18:37 UTC
- Patch
- Available – fixed in 5.15.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 13 Nov 2025
Detectable: evidence found.
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade astro to 5.15.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmastro | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch addressing this vulnerability is available in Astro version 5.15.5. Users should upgrade to version 5.15.5 or later to remediate the issue. Until patched, avoid relying on the x-forwarded-proto and x-forwarded-port headers for URL construction or implement strict sanitization and validation of these headers to prevent manipulation. No vendor advisory states that no action is required or that the issue is already mitigated without patching.
Description
Astro versions from 2.16.0 up to but not including 5.15.5 are vulnerable to URL manipulation via unsanitized use of the x-forwarded-proto and x-forwarded-port headers in on-demand rendering. This flaw allows attackers to bypass middleware protections on routes, cause denial of service through cache poisoning, perform SSRF attacks, pollute URLs potentially leading to stored cross-site scripting, and bypass web application firewalls. The vulnerability arises because these headers are directly used to construct URLs without validation, enabling attackers to rewrite URLs arbitrarily. A proof of concept demonstrates bypassing middleware route protection by manipulating the protocol header to alter the URL path parsing. A fix is available in version 5.15.5.
References
- github.com/withastro/astro/security/advisories/GHSA-hr2q-hp5q-x767 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-64525 (opens in a new tab)
- github.com/withastro/astro/commit/dafbb1ba29912099c4faff1440033edc768af8b4 (opens in a new tab)
- github.com/withastro/astro (opens in a new tab)
- github.com/withastro/astro/blob/970ac0f51172e1e6bff4440516a851e725ac3097/packages/astro/src/core/app/node.ts (opens in a new tab)
- github.com/withastro/astro/blob/970ac0f51172e1e6bff4440516a851e725ac3097/packages/astro/src/core/app/node.ts (opens in a new tab)