CVE-2026-25545
Astro has Full-Read SSRF in error rendering via Host: header injection
Overview
Description
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.
Source: OX vulnerability database
Severity
8.6 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Weakness: CWE-918
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | @astrojs/node | <9.5.4 | 9.5.4 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- docs.astro.build https://docs.astro.build/en/basics/astro-pages/#custom-500-error-page
- github.com https://github.com/withastro/astro
- github.com https://github.com/withastro/astro/commit/e01e98b063e90d274c42130ec2a60cc0966622c9
- github.com https://github.com/withastro/astro/releases/tag/%40astrojs%2Fnode%409.5.4
- github.com https://github.com/withastro/astro/security/advisories/GHSA-qq67-mvv5-fw3g
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-25545
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.