Vulnerabilities · 2025 · Astro
CVE-2025-66202
Astro vulnerability
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 products
Astro. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Astro runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/withastro/astro/security/advisories/GHSA-ggxq-hp9w-j794
- github.com/withastro/astro/security/advisories/GHSA-whqg-ppgf-wp8c
- nvd.nist.gov/vuln/detail/CVE-2025-64765
- github.com/withastro/astro/commit/6f800813516b07bbe12c666a92937525fddb58ce
- nvd.nist.gov/vuln/detail/CVE-2025-66202
- github.com/advisories/GHSA-whqg-ppgf-wp8c
- nvd.nist.gov/vuln/detail/CVE-2025-66202
- cve.org/CVERecord?id=CVE-2025-66202
More vulnerabilities in Astro products
CVE-2026-54298CVE-2026-50146CVE-2025-65019CVE-2025-64765CVE-2025-64764CVE-2025-64757CVE-2025-64745CVE-2025-64525All 17
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.