CVE-2026-25545
Astro is a web framework. Prior to version 9.5.4, Server-Side …
Astro is a web framework. Prior to version 9.5.4, Server-Side Rendered pages that return an error with a prerendered custom error page (eg. `404.astro` or `500.astro`) are vulnerable to SSRF. If the `Host:` header is changed to an attacker's server, it will be fetched on `/500.html` and they can redirect this to any internal URL to read the response body through the first request. An attacker who can access the application without `Host:` header validation (eg. through finding the origin IP behind a proxy, or just by default) can fetch their own server to redirect to any internal IP. With this they can fetch cloud metadata IPs and interact with services in the internal network or localhost. For this to be vulnerable, a common feature needs to be used, with direct access to the server (no proxies). Version 9.5.4 fixes the issue.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/withastro/astro/security/advisories/GHSA-qq67-mvv5-fw3g
- github.com/withastro/astro/commit/e01e98b063e90d274c42130ec2a60cc0966622c9
- github.com/withastro/astro/releases/tag/%40astrojs%2Fnode%409.5.4
- github.com/advisories/GHSA-qq67-mvv5-fw3g
- nvd.nist.gov/vuln/detail/CVE-2026-25545
- docs.astro.build/en/basics/astro-pages/#custom-500-error-page
- nvd.nist.gov/vuln/detail/CVE-2026-25545
- cve.org/CVERecord?id=CVE-2026-25545
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.