CVE-2025-54793 Astro: Duplicate trailing slash feature can lead to Open Redirects
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.
| Package | Affected | Fixed in |
|---|---|---|
astro npm | From 5.2.0 | 5.12.8 |
astro npm | From 5.2.0 | 5.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.
Other vulnerabilities in withastro astro
- CVE-2024-56159 Server source code is exposed to the public if sourcemaps are enabled
- CVE-2026-54299 Astro: Host header SSRF in prerendered error page fetch
- CVE-2025-59837 astro allows bypass of image proxy domain validation leading to SSRF and potential XSS
- CVE-2026-50146 Astro: Reflected XSS via unescaped slot name
- CVE-2025-64764 Astro is vulnerable to Reflected XSS via the server islands feature
Sources
Also known as GHSA-cq8c-xv66-36gw.