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.
Published: 2026-06-22
Score: 7.5 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Mon, 22 Jun 2026 18:45:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-22T17:33:53.235Z

Reserved: 2026-06-12T17:46:37.293Z

Link: CVE-2026-54299

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-22T19:30:06Z

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-918

    Server-Side Request Forgery (SSRF)