6.5medium
Astro has an Authentication Bypass via Double URL Encoding, a bypass for CVE-2025-64765
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.33% (higher than 28% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-whqg-ppgf-wp8c
Description
Astro is a web framework. Versions 5.15.7 and below have a double URL encoding bypass which allows any unauthenticated attacker to bypass path-based authentication checks in Astro middleware, granting unauthorized access to protected routes. While the original CVE-2025-64765 was fixed in v5.15.8, the fix is insufficient as it only decodes once. By using double-encoded URLs, attackers can still bypass authentication and access any route protected by middleware pathname checks. This issue is fixed in version 5.15.8.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| withastro astro | < 5.15.8 | CVE List |
| astro (npm) | before 5.15.8 | GitHub Advisory Database |
| astro astro | before 5.15.8 | NVD |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Astro is a web framework. Versions 5.15.7 and below have a double URL encoding bypass which allows any unauthenticated attacker to bypass path-based authentication checks in Astro middleware, granting unauthorized access to protected routes. While the original CVE-2025-64765 was fixed in v5.15.8, the fix is insufficient as it only decodes once. By using double-encoded URLs, attackers can still bypass authentication and access any route protected by middleware pathname checks. This issue is fixed in version 5.15.8.
GitHub Advisory Database
Authentication Bypass via Double URL Encoding in Astro
Bypass for CVE-2025-64765 / GHSA-ggxq-hp9w-j794
Summary
A double URL encoding bypass allows any unauthenticated attacker to bypass path-based authentication checks in Astro middleware, granting unauthorized access to protected routes. While the original CVE-2025-64765 (single URL encoding) was fixed in v5.15.8, the fix is insufficient as it only decodes once. By using double-encoded URLs like /%2561dmin instead of /%61dmin, attackers can still bypass authentication and access protected resources such as /admin, /api/internal, or any route protected by middleware pathname checks.
Fix
A more secure fix is just decoding once, then if the request has a %xx format, return a 400 error by using something like :
if (containsEncodedCharacters(pathname)) {
// Multi-level encoding detected - reject request
return new Response(
'Bad Request: Multi-level URL encoding is not allowed',
{
status: 400,
headers: { 'Content-Type': 'text/plain' }
}
);
}
NVD (es)
Astro es un web framework. Las versiones 5.15.7 e inferiores tienen un bypass de doble codificación de URL que permite a cualquier atacante no autenticado omitir las comprobaciones de autenticación basadas en rutas en el middleware de Astro, otorgando acceso no autorizado a rutas protegidas. Aunque el CVE-2025-64765 original fue corregido en la v5.15.8, la corrección es insuficiente ya que solo decodifica una vez. Al usar URLs doblemente codificadas, los atacantes aún pueden omitir la autenticación y acceder a cualquier ruta protegida por las comprobaciones de nombre de ruta del middleware. Este problema está corregido en la versión 5.15.8.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-66202 changed 2025-12-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-whqg-ppgf-wp8c changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2025-66202 changed 2026-10-07 | Public domain |