# CVE-2025-64765: Astro middleware authentication checks based on url.pathname can be bypassed via url encoded values

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- 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.54%, higher than 46% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-11-19T16:41:19.022Z
- Modified: 2026-10-18T20:10:00.110Z
- Also known as: GHSA-ggxq-hp9w-j794
- Related: CVE-2025-66202
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- withastro astro: < 5.15.8
- astro (npm): before 5.15.8
- astro astro: before 5.15.8

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/withastro/astro/security/advisories/GHSA-ggxq-hp9w-j794> (exploit, mitigation, third-party-advisory, web)
- <https://github.com/withastro/astro/commit/6f800813516b07bbe12c666a92937525fddb58ce> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-64765> (advisory)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2025-64765](https://www.cve.org/CVERecord?id=CVE-2025-64765), CVE Terms of Use, modified 2025-11-20
- GitHub Advisory Database: [GHSA-ggxq-hp9w-j794](https://github.com/advisories/GHSA-ggxq-hp9w-j794), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-64765](https://nvd.nist.gov/vuln/detail/CVE-2025-64765), Public domain, modified 2026-10-18

---

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