Astro development server error page is vulnerable to reflected Cross-site Scripting
- Severity:
- Low
Description
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.
Recommendation
Update the astro package to the latest compatible version. Followings are version details:
- Affected version(s): >= 5.2.0, < 5.15.6
- Patched version(s): 5.15.6
References
Related Issues
- jsondiffpatch is vulnerable to Cross-site Scripting (XSS) via HtmlFormatter::nodeBegin - CVE-2025-9910
- Astro Cloudflare adapter has Stored Cross-site Scripting vulnerability in /_image endpoint - CVE-2025-65019
- Parse Server vulnerable to stored cross-site scripting (XSS) via SVG file upload - CVE-2026-30948
- @tiptap/extension-link vulnerable to Cross-site Scripting (XSS) - CVE-2025-14284
- Tags:
- npm
- astro
Anything's wrong? Let us know Last updated on November 27, 2025