CVE-2025-66202
mediumpriority · track · 26EPSS 0.003 · 23 %ileEUUSEPSS · scored 2026-10-23
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-whqg-ppgf-wp8cAstro has an Authentication Bypass via Double URL Encoding, a bypass for CVE-2025-647652025-12-08ghsa · osvUS
# 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' } } ); } ```
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2025-66202cnnvd
- https://github.com/withastro/astro/commit/6f800813516b07bbe12c666a92937525fddb58cecnnvd
- https://github.com/withastro/astro/releasesPatchcnnvd
- https://github.com/withastro/astro/security/advisories/GHSA-ggxq-hp9w-j794cnnvd
- https://github.com/withastro/astro/security/advisories/GHSA-whqg-ppgf-wp8ccnnvd
- https://github.com/withastro/astro/commit/6f800813516b07bbe12c666a92937525fddb58ceenisa_euvd
- https://github.com/withastro/astro/security/advisories/GHSA-ggxq-hp9w-j794enisa_euvd
- https://github.com/withastro/astro/security/advisories/GHSA-whqg-ppgf-wp8cenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan