CVE-2025-61925: withastro astro · Unsafe Reflection
Affects withastro astroSource CVE Database V5
Not known to be exploited · CVSS 6.5 Medium : upgrade to 5.14.2 when convenient.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 34% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.14.2
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 10 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: 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 26 Oct 2026.
What to do
Upgrade withastro astro to 5.14.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| withastro astro | Affected
| Fixed in
|
AI-suggested
European organizations should immediately upgrade all Astro framework instances to version 5.14.2 or later, where the vulnerability is patched. For environments where immediate upgrade is not feasible, implement strict validation and sanitization of the X-Forwarded-Host header at the web server or application gateway level, ensuring only trusted domains are accepted. Configure caching proxies to avoid caching responses that include user-controllable headers or disable caching for dynamic pages that use Astro.url. Employ Content Security Policy (CSP) headers to restrict redirection targets and mitigate the impact of malicious URL injection. Conduct thorough code reviews to identify any usage of Astro.url that could be influenced by headers and refactor to use safer alternatives or explicit allowlists. Monitor web logs for anomalous requests with mismatched Host and X-Forwarded-Host headers. Educate developers on the risks of unsafe reflection and the importance of header validation. Finally, integrate automated security testing in CI/CD pipelines to detect similar header injection issues in future development.
Description
Astro is a web framework. Prior to version 5.14.2, Astro reflects the value in `X-Forwarded-Host` in output when using `Astro.url` without any validation. It is common for web servers such as nginx to route requests via the `Host` header, and forward on other request headers. As such as malicious request can be sent with both a `Host` header and an `X-Forwarded-Host` header where the values do not match and the `X-Forwarded-Host` header is malicious. Astro will then return the malicious value. This could result in any usages of the `Astro.url` value in code being manipulated by a request. For example if a user follows guidance and uses `Astro.url` for a canonical link the canonical link can be manipulated to another site. It is theoretically possible that the value could also be used as a login/registration or other form URL as well, resulting in potential redirecting of login credentials to a malicious party. As this is a per-request attack vector the surface area would only be to the malicious user until one considers that having a caching proxy is a common setup, in which case any page which is cached could persist the malicious value for subsequent users. Many other frameworks have an allowlist of domains to validate against, or do not have a case where the headers are reflected to avoid such issues. This could affect anyone using Astro in an on-demand/dynamic rendering mode behind a caching proxy. Version 5.14.2 contains a fix for the issue.