{"id":"CVE-2025-61925","published":"2025-10-10T19:34:05Z","modified":"2025-10-10T20:01:06Z","title":"Astro's `X-Forwarded-Host` is reflected with no validation","vendor":"withastro","product":"astro","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00432,"percentile":0.38176,"provenance":"source"},"cwes":[{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"}],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-5ff5-9fcw-vg88","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Chisnet/minimal_dynamic_astro_server","tags":["x_refsource_MISC"]}],"priority":{"score":12.2,"factors":[{"name":"EPSS percentile","points":7.64},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"withastro","affectedVersions":[{"vendor":"withastro","product":"astro","versions":["< 5.14.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-10-10T20:00:44.551372Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"astro","vulnerableRanges":["<5.14.3"],"patched":["5.14.3"],"from":["GHSA-5ff5-9fcw-vg88"],"provenance":"source"}],"summary":{"text":"Astro's handling of Astro.url in versions before 5.14.2 reflects the value of the X-Forwarded-Host request header without validation, so any code that uses Astro.url, such as canonical links or form URLs, can have its output altered by a request. An attacker needs only network access to send a request with a mismatched Host and malicious X-Forwarded-Host header, with no authentication or user interaction, and the impact is greater in on-demand rendering mode behind a caching proxy, where the malicious value can persist for other users.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:04Z"},"euvd":{"id":"EUVD-2025-33766","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-withastro-astro-cve-2025-61925","children":[{"from":"CVE-2025-61925","to":"CVE-2025-64525","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/astro/src/core/app/index.ts","packages/astro/src/core/app/node.ts"],"commits":["https://github.com/withastro/astro/commit/6ee63bfac4856f21b4d4633021b3d2ee059e553f","https://github.com/withastro/astro/commit/dafbb1ba29912099c4faff1440033edc768af8b4"],"basis":"shared function","functions":["App","NodeApp"]}]},{"from":"CVE-2025-61925","to":"CVE-2026-102984","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/astro/src/core/app/node.ts"],"commits":["https://github.com/withastro/astro/commit/6ee63bfac4856f21b4d4633021b3d2ee059e553f","https://github.com/withastro/astro/commit/2066f39c60707a100531b4ef4bb5dab8feafa7f2"],"basis":"rarely changed file"}]},{"from":"CVE-2025-61925","to":"CVE-2026-29772","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/astro/src/container/index.ts","packages/astro/src/core/app/types.ts","packages/astro/src/core/build/plugins/plugin-manifest.ts","packages/astro/src/types/public/config.ts"],"commits":["https://github.com/withastro/astro/commit/6ee63bfac4856f21b4d4633021b3d2ee059e553f","https://github.com/withastro/astro/commit/f9ee8685dd26e9afeba3b48d41ad6714f624b12f"],"basis":"shared function","functions":["AstroUserConfig","buildManifest","createManifest"]}]}]}}