Skip to content

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

MediumCVSS 5.5 EPSS 0.73% Scanner template
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
astro >= 5.2.0, < 5.12.7 5.12.7 Fixed
npm astro(npm) >= 5.2.0, < 5.12.8 5.12.8 Fixed
withastro astro = >= 5.2.0, < 5.12.8 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm astro(npm) >= 5.2.0, < 5.12.8 5.12.8
withastro astro = >= 5.2.0, < 5.12.8 No fix listed
astro >= 5.2.0, < 5.12.7 5.12.7

References