p PatchFirst

CVE-2025-64525

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 6.5 · Medium · EPSS 1.2% · Public exploit · Fix available

Published
Updated

Stack: node

Affected products and versions

  • astro

    Versions
    • >= 2.16.0, < 5.15.5: Affected

    No fix published

  • astro npm

    Affected ranges
    • SEMVER: ≥ 2.16.0, < 5.15.5

    Update to 5.15.5

Original sources

Check your server →