CVE-2025-66202 Details
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.
A double URL encoding bypass vulnerability has been identified in the Astro web framework, affecting versions prior to 5.15.8. This vulnerability allows unauthenticated attackers to bypass path-based authentication checks in Astro middleware, granting unauthorized access to protected routes. The issue arises because Astro applies URL decoding for routing and rendering, but the middleware validation checks use the raw, encoded URL path. As a result, attackers can exploit this mismatch by sending double-encoded URLs that bypass authentication checks for routes like '/admin' or '/api/internal'.
Users are advised to update to Astro version 5.15.8 or later, where this vulnerability has been addressed. After updating, ensure that middleware context uses the same normalized pathname value that Astro applies internally to prevent any bypass of authentication checks.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 9, 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.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-647 | Use of Non-Canonical URL Paths for Authorization Decisions | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| astro astro | < 5.15.8 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 10, 2025 | Initial Analysis | [email protected] |
| Dec 9, 2025 | New CVE Received | [email protected] |