{"id":"CVE-2025-64525","published":"2025-11-13T15:58:16Z","modified":"2025-11-13T16:15:18Z","title":"Astro: URL manipulation via unsanitized headers leads to path-based middleware protections bypass, potential…","vendor":"withastro","product":"astro","tier":"tail","description":{"text":"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.","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.01245,"percentile":0.7004,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-hr2q-hp5q-x767","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/withastro/astro/commit/dafbb1ba29912099c4faff1440033edc768af8b4","tags":["x_refsource_MISC"]},{"url":"https://github.com/withastro/astro/blob/970ac0f51172e1e6bff4440516a851e725ac3097/packages/astro/src/core/app/node.ts#L121","tags":["x_refsource_MISC"]},{"url":"https://github.com/withastro/astro/blob/970ac0f51172e1e6bff4440516a851e725ac3097/packages/astro/src/core/app/node.ts#L97","tags":["x_refsource_MISC"]}],"priority":{"score":23.6,"factors":[{"name":"EPSS percentile","points":14.01},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.55}]},"exploitSources":{"nuclei":[{"id":"CVE-2025-64525","name":"Astro - Broken Access Control","severity":"medium","path":"http/cves/2025/CVE-2025-64525.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-64525.yaml"}],"provenance":"source"},"vendorSlug":"withastro","affectedVersions":[{"vendor":"withastro","product":"astro","versions":[">= 2.16.0, < 5.15.5"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-11-13T16:15:07.067807Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"astro","vulnerableRanges":[">=2.16.0, <5.15.5"],"patched":["5.15.5"],"from":["GHSA-hr2q-hp5q-x767"],"provenance":"source"}],"summary":{"text":"The Astro web framework, in on-demand rendering configurations, insecurely uses the unsanitized x-forwarded-proto and x-forwarded-port request headers when constructing URLs, which is a flaw in its request URL handling. An attacker can send crafted requests with these headers over the network, with no authentication or user interaction required, to bypass path-based middleware protections (via x-forwarded-proto), trigger server-side request forgery (via x-forwarded-proto), poison caches or pollute URLs when a CDN is present, or bypass a WAF.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:14Z"},"euvd":{"id":"EUVD-2025-175298","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-withastro-astro-cve-2025-61925","parents":[{"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"]}]}],"children":[{"from":"CVE-2025-64525","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/dafbb1ba29912099c4faff1440033edc768af8b4","https://github.com/withastro/astro/commit/2066f39c60707a100531b4ef4bb5dab8feafa7f2"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-59837","published":"2025-10-28","fixed":"5.13.10","kev":false},{"cve":"CVE-2025-61925","published":"2025-10-10","fixed":"5.14.3","kev":false},{"cve":"CVE-2025-64757","published":"2025-11-19","fixed":"5.14.3","kev":false,"link":{"from":"CVE-2025-64757","to":"CVE-2025-64525","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:astro","fromFixed":"5.14.3","toFixed":"5.15.5","daysApart":-6}]}},{"cve":"CVE-2025-64525","published":"2025-11-13","fixed":"5.15.5","kev":false},{"cve":"CVE-2025-64745","published":"2025-11-13","fixed":"5.15.6","kev":false,"link":{"from":"CVE-2025-64525","to":"CVE-2025-64745","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:astro","fromFixed":"5.15.5","toFixed":"5.15.6","daysApart":0}]}},{"cve":"CVE-2025-64764","published":"2025-11-19","fixed":"5.15.8","kev":false},{"cve":"CVE-2025-64765","published":"2025-11-19","fixed":"5.15.8","kev":false}],"package":"npm:astro"}}