Vulnerabilities/

Astro's `X-Forwarded-Host` is reflected without validation

Severity:
Medium

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:

References

Related Issues

Tags:
npm
astro
Anything's wrong? Let us know Last updated on October 10, 2025