# CVE-2025-61925: Astro's `X-Forwarded-Host` is reflected with no validation

- 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): 0.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-10T19:34:05.142Z
- Modified: 2026-10-08T13:10:00.200Z
- Also known as: GHSA-5ff5-9fcw-vg88
- Weaknesses: CWE-20, CWE-470
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- withastro astro: < 5.14.2
- astro (npm): before 5.14.3
- astro astro: before 5.14.2

## 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-5ff5-9fcw-vg88> (exploit, third-party-advisory, web)
- <https://github.com/Chisnet/minimal_dynamic_astro_server> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-61925> (advisory)
- <https://github.com/withastro/astro/commit/6ee63bfac4856f21b4d4633021b3d2ee059e553f> (web)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2025-61925](https://www.cve.org/CVERecord?id=CVE-2025-61925), CVE Terms of Use, modified 2025-10-10
- GitHub Advisory Database: [GHSA-5ff5-9fcw-vg88](https://github.com/advisories/GHSA-5ff5-9fcw-vg88), CC-BY-4.0, modified 2025-10-11
- NVD: [CVE-2025-61925](https://nvd.nist.gov/vuln/detail/CVE-2025-61925), Public domain, modified 2026-10-08

---

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