CVE-2025-64765 Details
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.
A vulnerability in Astro prior to version 5.15.8 allows for the bypassing of middleware validation checks on request paths. Astro normalizes request paths by applying decodeURI() for routing, but the middleware reads the path without this normalization. This mismatch can be exploited by using encoded path variants to access protected routes, such as '/admin', while evading authentication checks. The issue has been addressed in version 5.15.8.
Users are advised to update to Astro version 5.15.8 or later, and ensure that middleware validation checks are applied to the same normalized pathname that Astro uses for routing.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 20, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/withastro/astro/commit/6f800813516b07bbe12c666a92937525fddb58ce | [email protected] | Patch |
| https://github.com/withastro/astro/security/advisories/GHSA-ggxq-hp9w-j794 | [email protected] | ExploitMitigationThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| astro astro | < 5.15.8 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 25, 2025 | Initial Analysis | [email protected] |
| Nov 19, 2025 | New CVE Received | [email protected] |