Skip to content
OpenAdvisories
Medium · 6.5 Scanner template CVE-2025-64525 EUVD-2025-175298GHSA-hr2q-hp5q-x767

Astro: URL manipulation via unsanitized headers leads to path-based middleware protections bypass, potential SSRF/cache-poisoning, CVE-2025-61925 bypass

Published Nov 13, 2025 · Updated Nov 13, 2025 · Assigned by GitHub_M

Description

Astro is a web framework. In Astro versions 2.16.0 up to but excluding 5.15.5 which utilizeon-demand rendering, request headers `x-forwarded-proto` and `x-forwarded-port` are insecurely used, without sanitization, to build the URL. This has several consequences, the most important of which are: middleware-based protected route bypass (only via `x-forwarded-proto`), DoS via cache poisoning (if a CDN is present), SSRF (only via `x-forwarded-proto`), URL pollution (potential SXSS, if a CDN is present), and WAF bypass. Version 5.15.5 contains a patch.

Affected products

VendorProductAffectedFixed
withastro astro >= 2.16.0, < 5.15.5 —

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
npm astro >= 2.16.0, < 5.15.5 5.15.5 GHSA-hr2q-hp5q-x767

References