CVE-2025-54793 Details
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 `//`.
A vulnerability allowing open redirects has been identified in the Astro web framework, specifically in versions 5.2.0 through 5.12.7. The issue arises in the trailing slash redirection logic, particularly when the framework encounters paths with double slashes. This flaw enables attackers to redirect users to arbitrary external sites by crafting specific URLs. The vulnerability is present in sites using on-demand rendering with the Node or Cloudflare adapters, but does not affect static sites or those deployed on Netlify or Vercel.
Users can upgrade to Astro version 5.12.8, where this vulnerability has been patched. Additionally, at the network level, outgoing redirect responses can be blocked if the 'Location' header value begins with a double slash.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| astro astro | >= 5.2.0, < 5.12.7 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 25, 2025 | Initial Analysis | [email protected] |
| Aug 8, 2025 | New CVE Received | [email protected] |