CVE-2025-54793

published 8 Aug 2025 · updated 8 Aug 2025

Astro: Duplicate trailing slash feature can lead to Open Redirects

6.5MediumCVSS 5.5EPSS 1%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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 `//`.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
withastro>=5.2.0 <5.12.8

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-54793 severity on Zeptric[![CVE-2025-54793](https://zeptric.io/badge/cve/CVE-2025-54793.svg)](https://zeptric.io/cve/CVE-2025-54793)