Astro: Duplicate trailing slash feature can lead to Open Redirects
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-601.
Summary
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 `//`.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| withastro | astro | 5.2.0 to before 5.12.8 | 5.12.8 | Patch available | CNA |
| — | astro (npm) | 5.2.0 to before 5.12.8 | 5.12.8 | Patch available | GHSA-cq8c-xv66-36gw |
- astro Vendorwithastro Affected 5.2.0 to before 5.12.8 Fixed in 5.12.8 Patch available CNA
- astro (npm) Vendor— Affected 5.2.0 to before 5.12.8 Fixed in 5.12.8 Patch available GHSA-cq8c-xv66-36gw
Remediation
- Fix · CNA astro (withastro) Fixed in 5.12.8
- Fix · GHSA-cq8c-xv66-36gw astro (npm) Fixed in 5.12.8 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-54793
- 2026-10-03 Alias added: GHSA-cq8c-xv66-36gw
- 2026-10-21 EPSS moved to the 50th–90th percentile
References
More withastro Astro vulnerabilities
- TI-2024-37142 Server source code is exposed to the public if sourcemaps are enabled CVSS 4.0HIGH 7.8
- TI-2025-34958 Unauthorized third-party images in Astro’s _image endpoint CVSS 4.0MEDIUM 6.9
- TI-2025-39915 Server-side request forgery in withastro astro CVSS 3.1MEDIUM 6.5
- TI-2025-38274 Astro's `X-Forwarded-Host` is reflected with no validation CVSS 3.1MEDIUM 6.5
- TI-2026-36915 Astro: Reflected XSS via unescaped slot name CVSS 3.1HIGH 7.1
- TI-2025-40102 Astro is vulnerable to Reflected XSS via the server islands feature CVSS 3.1HIGH 7.1
Sources
- CVE-2025-54793 · CVE Program
- CVE-2025-54793 · NVD
- FIRST EPSS
- GHSA-cq8c-xv66-36gw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences