{"id":"CVE-2025-64765","published":"2025-11-19T16:41:19Z","modified":"2025-11-20T15:50:41Z","title":"Astro middleware authentication checks based on url.pathname can be bypassed via url encoded values","vendor":"withastro","product":"astro","tier":"tail","description":{"text":"Astro is a web framework. Prior to version 5.15.8, a mismatch exists between how Astro normalizes request paths for routing/rendering and how the application’s middleware reads the path for validation checks. Astro internally applies decodeURI() to determine which route to render, while the middleware uses context.url.pathname without applying the same normalization (decodeURI). This discrepancy may allow attackers to reach protected routes using encoded path variants that pass routing but bypass validation checks. This issue has been patched in version 5.15.8.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00538,"percentile":0.46248,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-ggxq-hp9w-j794","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/withastro/astro/commit/6f800813516b07bbe12c666a92937525fddb58ce","tags":["x_refsource_MISC"]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":9.25},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"withastro","affectedVersions":[{"vendor":"withastro","product":"astro","versions":["< 5.15.8"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-11-20T15:50:37.171718Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"astro","vulnerableRanges":["<5.15.8"],"patched":["5.15.8"],"from":["GHSA-ggxq-hp9w-j794"],"provenance":"source"}],"summary":{"text":"Astro's internal routing decodes request paths with decodeURI() before choosing a route, but middleware that checks context.url.pathname does not apply the same decoding, so the two can disagree about the path. An unauthenticated remote attacker can send a URL-encoded variant of a protected path over the network, with no user interaction and no special configuration, to reach that route while the middleware's validation check is bypassed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:22Z"},"euvd":{"id":"EUVD-2025-198183","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-withastro-astro-cve-2025-64765","children":[{"from":"CVE-2025-64765","to":"CVE-2025-66202","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"While the original CVE-2025-64765 was fixed in v5.15.8, the fix is insufficient as it only decodes once.","from":"CVE.org","in":"CVE-2025-66202"},{"kind":"osv-related","provenance":"source","id":"GHSA-ggxq-hp9w-j794","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-whqg-ppgf-wp8c","via":"reference","url":"https://github.com/withastro/astro/security/advisories/GHSA-ggxq-hp9w-j794"}]}],"packageHistory":[{"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-64745","to":"CVE-2025-64765","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:astro","fromFixed":"5.15.6","toFixed":"5.15.8","daysApart":6}]}},{"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},{"cve":"CVE-2025-66202","published":"2025-12-08","fixed":"5.15.8","kev":false},{"cve":"CVE-2025-65019","published":"2025-11-19","fixed":"5.15.9","kev":false},{"cve":"CVE-2026-33769","published":"2026-03-24","fixed":"5.18.1","kev":false}],"package":"npm:astro"}}