CVE-2025-64765
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-64765 affects Astro web framework versions prior to 5.15.8. The vulnerability stems from a mismatch between how Astro normalizes request paths for routing/rendering and how the application's middleware reads the path for validation checks. Discovered and disclosed on November 19, 2025, this vulnerability impacts the authentication and authorization mechanisms in Astro applications (GitHub Advisory).

Technical details

The vulnerability exists due to inconsistent path normalization between Astro's router and middleware components. While Astro's router applies decodeURI() to determine which route to render, the middleware uses context.url.pathname without applying the same normalization. This creates a security gap where URL-encoded paths are handled differently by different parts of the application. The vulnerability has a CVSS v4.0 Base Score of 6.9 (MEDIUM) with vector string 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 (NVD).

Impact

The vulnerability allows attackers to bypass middleware security checks by using URL-encoded path variants. For example, a protected route like /admin could be accessed using encoded variants such as /%61dmin, effectively circumventing authentication and authorization controls put in place through middleware (GitHub Advisory, Miggo).

Mitigation and workarounds

The vulnerability has been patched in Astro version 5.15.8. The fix ensures that middleware context receives the same normalized pathname value that Astro uses internally for routing. Users should upgrade to version 5.15.8 or later to address this vulnerability. The patch modifies how URL paths are handled, ensuring consistent path normalization across both routing and middleware components (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23947CRITICAL9.3
  • JavaScriptJavaScript
  • @orval/core
NoYesJan 20, 2026
CVE-2026-23950HIGH8.8
  • JavaScriptJavaScript
  • grafana-graphite
NoYesJan 20, 2026
CVE-2026-22037HIGH8.4
  • JavaScriptJavaScript
  • @fastify/express
NoYesJan 19, 2026
CVE-2026-23522LOW3.7
  • JavaScriptJavaScript
  • @lobehub/chat
NoNoJan 19, 2026
CVE-2025-66803LOW1.7
  • JavaScriptJavaScript
  • @hotwired/turbo
NoYesJan 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management