CVE-2026-54299

Astro: Host-header full-read SSRF in core prerendered error-page fetch (prerenderedErrorPageFetch default + unvalidated createRequestFromNodeRequest URL)

Published Jun 22, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Astro is a web framework. Prior to 6.4.6, Astro SSR apps with prerendered error pages (/404 or /500 using export const prerender = true) fetch those pages over HTTP at runtime when an error occurs. The URL for this fetch is derived from request.url, which in turn gets its origin from the incoming Host header. When the Host header is not validated against allowedDomains, an attacker can point the fetch at an arbitrary host and read the response. This vulnerability is fixed in 6.4.6.

Analysis

AI-generated

Technical impact

The vulnerability exists in Astro web framework versions prior to 6.4.6. When an SSR application renders a prerendered error page, it fetches the page over HTTP at runtime. The fetch URL is constructed from request.url, which in turn derives its origin from the incoming Host header. Because the Host header is not validated against allowed domains, an attacker can supply a malicious host value, causing the server to make an internal request to an arbitrary URL and retrieve the response. This allows remote extraction of data from internal or external hosts, effectively an SSRF that can lead to data exfiltration or further attacks. The weakness maps to general input validation failures (CWE-20) and server‑side request forgery (CWE-918).

Affected Systems

It affects applications built with the Astro framework, specifically versions older than 6.4.6. The issue occurs in both server‑side rendered and statically prerendered error handling flows when export const prerender = true is used. Astro 6.4.6 and newer contain a fix that validates the Host header against a list of allowed domains before constructing the error‑page fetch URL.

Risk and Exploitability

The CVSS base score is 7.5, indicating a high severity. The EPSS score is unavailable, so the historical exploitation probability is unknown, but the lack of a KEV listing suggests no widespread known exploitation yet. The likely attack vector is HTTP request manipulation, specifically by supplying a crafted Host header when accessing a route that triggers an error or by causing an internal error. An attacker who can control the Host header can force the server to reach any arbitrary host, read its response, and potentially use the data for further attacks such as credential theft or remote code execution on downstream services.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Astro to version 6.4.6 or later to apply the built‑in Host header validation.
  • If upgrading is not immediately possible, restrict the allowed domains configuration to include only trusted domain names, ensuring that any Host header values outside this list are rejected.
  • Employ network segmentation or firewall rules to block outbound connections from the Astro application to untrusted internal or external addresses, reducing the impact of any residual SSRF.

Generated by OpenCVE AI on June 22, 2026 at 19:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-2pvr-wf23-7pc7 Astro: Host header SSRF in prerendered error page fetch
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Withastro
Withastro astro
Vendors & Products Withastro
Withastro astro
Type Values Removed Values Added
Description Astro is a web framework. Prior to 6.4.6, Astro SSR apps with prerendered error pages (/404 or /500 using export const prerender = true) fetch those pages over HTTP at runtime when an error occurs. The URL for this fetch is derived from request.url, which in turn gets its origin from the incoming Host header. When the Host header is not validated against allowedDomains, an attacker can point the fetch at an arbitrary host and read the response. This vulnerability is fixed in 6.4.6.
Title Astro: Host-header full-read SSRF in core prerendered error-page fetch (prerenderedErrorPageFetch default + unvalidated createRequestFromNodeRequest URL)
Weaknesses CWE-20
CWE-918
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N'}

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 23, 2026, 3:06 PM
Reserved
Jun 12, 2026, 5:46 PM
Status
Analyzed
Published
Jun 22, 2026, 7:17 PM
Modified
Oct 25, 2026, 11:10 PM