Cloudanix VulnDB

CVE-2025-64765

Medium · 5.3

Astro's middleware authentication checks based on url.pathname can be bypassed via url encoded values

CVSS

5.3

EPSS

0.5%

Published

Nov 19, 2025

CISA due date

—

The record

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 (e.g., /admin) using encoded path variants that pass routing but bypass validation checks.

Affected packages

Ecosystem Package Introduced Fixed
npm astro 0 5.15.8

Related vulnerabilities