CVE-2025-64745
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-64745 is a vulnerability in Astro's development server error pages when the trailingSlash configuration option is used. The vulnerability was discovered in November 2025 and affects Astro versions >= 5.2.0, with a patch available in version 5.15.6 (GHSA Advisory).

Technical details

The vulnerability is a Reflected Cross-Site Scripting (XSS) issue located in astro/packages/astro/src/template/4xx.ts. The root cause stems from the corrected variable, derived from the user-controlled pathname parameter, being directly interpolated into the HTML without proper escaping. While the pathname variable is escaped elsewhere, the corrected variable remains unsanitized before insertion into both the href attribute and link text (GHSA Advisory).

Impact

An attacker can inject arbitrary JavaScript code that executes in the victim's browser context by crafting a malicious URL. While this vulnerability only affects the development server and not production builds, it could be exploited to compromise developer environments through social engineering or malicious links (GHSA Advisory).

Mitigation and workarounds

The vulnerability has been patched in Astro version 5.15.6. Users are advised to upgrade to this version or later to mitigate the risk. The fix involves proper escaping of the corrected variable before its insertion into the HTML template (GHSA 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-2025-59840HIGH8.1
  • JavaScriptJavaScript
  • vega
NoYesNov 13, 2025
GHSA-8wj8-cfxr-9374HIGH8
  • JavaScriptJavaScript
  • aws-advanced-nodejs-wrapper
NoYesNov 13, 2025
CVE-2025-64748MEDIUM6.5
  • JavaScriptJavaScript
  • directus
NoYesNov 13, 2025
CVE-2025-64749MEDIUM4.3
  • JavaScriptJavaScript
  • @directus/api
NoYesNov 13, 2025
CVE-2025-64745LOW2.7
  • JavaScriptJavaScript
  • astro
NoYesNov 13, 2025

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