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

- Severity: Medium 5.5 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Published: 2025-08-07T16:41:55.000Z
- Modified: 2026-06-17T09:40:42.930Z
- Also known as: GHSA-cq8c-xv66-36gw
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- withastro astro: >= 5.2.0, < 5.12.8
- astro (npm): from 5.2.0 before 5.12.8
- astro astro: from 5.2.0 before 5.12.7

## Every score

- GitHub_M: CVSS:4.0 5.5 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/withastro/astro/security/advisories/GHSA-cq8c-xv66-36gw> (third-party-advisory, web)
- <https://github.com/withastro/astro/commit/0567fb7b50c0c452be387dd7c7264b96bedab48f> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54793> (advisory)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2025-54793](https://www.cve.org/CVERecord?id=CVE-2025-54793), CVE Terms of Use, modified 2025-08-08
- GitHub Advisory Database: [GHSA-cq8c-xv66-36gw](https://github.com/advisories/GHSA-cq8c-xv66-36gw), CC-BY-4.0, modified 2025-11-27
- NVD: [CVE-2025-54793](https://nvd.nist.gov/vuln/detail/CVE-2025-54793), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54793 · Whole record: https://cve.day/CVE-2025-54793.json · Rebuilt by cve.day 2026-11-25T22:59:02.199Z
