Skip to content
OpenAdvisories
Low · 2.7 CVE-2025-64745 EUVD-2025-175382GHSA-w2vj-39qv-7vh7

Astro development server error page vulnerable to reflected Cross-site Scripting

Published Nov 13, 2025 · Updated Nov 13, 2025 · Assigned by GitHub_M

Description

Astro is a web framework. Starting in version 5.2.0 and prior to version 5.15.6, a Reflected Cross-Site Scripting (XSS) vulnerability exists in Astro's development server error pages when the `trailingSlash` configuration option is used. 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. Version 5.15.6 fixes the issue.

Affected products

VendorProductAffectedFixed
withastro astro >= 5.2.0, < 5.15.6 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm astro >= 5.2.0, < 5.15.6 5.15.6 GHSA-w2vj-39qv-7vh7

References