CVE 6.9 MEDIUM

Astro middleware authentication checks based on url.pathname can be bypassed via url encoded values_CVE-2025-64765

6.9 / 10
MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

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.

Basic Information

ID CVE-2025-64765
Source GitHub_M
Published Nov 19, 2025 at 16:41
Modified Nov 19, 2025 at 21:07

Affected Product

Vendor withastro
Product astro
Version < 5.15.8
Affected Versions withastro astro < 5.15.8

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.