Skip to main content
← All vulnerabilities
CVE-2025-54793GHSA-CQ8C-XV66-36GW

Astro: Duplicate trailing slash feature can lead to Open Redirects

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.12.8
1 proof of concept on GitHub, 1 Nuclei template
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

Astro is a web framework for content-driven websites. In versions 5.2.0 through 5.12.7, there is an Open Redirect vulnerability in the trailing slash redirection logic when handling paths with double slashes. This allows an attacker to redirect users to arbitrary external domains by crafting URLs such as https://mydomain.com//malicious-site.com/. This increases the risk of phishing and other social engineering attacks. This affects sites that use on-demand rendering (SSR) with the Node or Cloudflare adapters. It does not affect static sites, or sites deployed to Netlify or Vercel. This issue is fixed in version 5.12.8. To work around this issue at the network level, block outgoing redirect responses with a Location header value that starts with `//`.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • withastro astro

    From 5.2.0 · fixed in 5.12.8

  • astronpm

    From 5.2.0 · fixed in 5.12.8

References 4

GitHub · withastro/astro

GitHub · projectdiscovery/nuclei-templates

GitHub · bhuvi-labs/ict279-cve-2025-54793