CVE-2025-54793 Astro: Duplicate trailing slash feature can lead to Open Redirects

Medium 5.5 Published Updated

Attackers can redirect users to malicious external domains via crafted URLs in Astro SSR sites, facilitating phishing attacks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-54793?

CVE-2025-54793 is a medium-severity vulnerability in withastro astro, published on 8 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Weakness: CWE-601

Which versions are affected by CVE-2025-54793?

2 open source packages ship an affected version, including astro. It affects 1 product.

PackageAffectedFixed in
astro npmFrom 5.2.05.12.8
astro npmFrom 5.2.05.12.8

Products include Astro Astro.

How do I fix CVE-2025-54793?

Upgrade astro to 5.12.8 or later.

Is CVE-2025-54793 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54793 exists.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

Sources

Also known as GHSA-cq8c-xv66-36gw.

Is CVE-2025-54793 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free