Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. astro
  4. ›
  5. CVE-2026-54299

CVE-2026-54299: Astro: Host header SSRF in prerendered error page fetch

June 16, 2026

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.

References

  • github.com/advisories/GHSA-2pvr-wf23-7pc7
  • github.com/withastro/astro/security/advisories/GHSA-2pvr-wf23-7pc7
  • nvd.nist.gov/vuln/detail/CVE-2026-54299

Code Behaviors & Features

Detect and mitigate CVE-2026-54299 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.4.6

Fixed versions

  • 6.4.6

Solution

Upgrade to version 6.4.6 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

npm/astro/CVE-2026-54299.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:35 +0000.