Path Traversal in Astro
CVE-2025-64765
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
EPSS exploit prediction
EPSS: 0.005 (41.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 42nd percentile — 41.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.005 · change: -0.000
Affected products
- Astro
- Withastro Astro — versions < 5.15.8
Weakness classification (CWE)
References
- github.com/withastro/astro/security/advisories/GHSA-ggxq-hp9w-j794 (Exploit, Third Party Advisory, Mitigation)
- github.com/withastro/astro/commit/6f800813516b07bbe12c666a92937525fddb58ce (Patch)
Frequently asked questions
- What is CVE-2025-64765?
- CVE-2025-64765 is a medium-severity vulnerability in Astro, classified under Path Traversal. CVSS score: 5.3/10. Published 2025-11-19.
- How severe is CVE-2025-64765?
- Medium severity. CVSS v3 base score is 5.3 out of 10.