Description
When running Astro in on-demand rendering mode using a adapter such as the node adapter it is possible to maliciously send an X-Forwarded-Host header that is reflected when using the recommended Astro.url property as there is no validation that the value is safe.
Recommendation
Update the astro package to the latest compatible version. Followings are version details:
- Affected version(s): < 5.14.3
- Patched version(s): 5.14.3
References
Related Issues
- Astro development server error page is vulnerable to reflected Cross-site Scripting - CVE-2025-64745
- Astro vulnerable to URL manipulation via headers, leading to middleware and CVE-2025-61925 bypass - CVE-2025-64525
- Astro's bypass of image proxy domain validation leads to SSRF and potential XSS - CVE-2025-59837
- Astro vulnerable to reflected XSS via the server islands feature - CVE-2025-64764
- Tags:
- npm
- astro
Anything's wrong? Let us know Last updated on October 10, 2025