Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. astro
  4. ›
  5. CVE-2025-54793

CVE-2025-54793: Astros's duplicate trailing slash feature leads to an open redirection security issue

August 7, 2025 (updated August 8, 2025)

There is an Open Redirection 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 Astro >=5.2.0 sites that use on-demand rendering (SSR) with the Node or Cloudflare adapter. It does not affect static sites, or sites deployed to Netlify or Vercel.

References

  • github.com/advisories/GHSA-cq8c-xv66-36gw
  • github.com/withastro/astro
  • github.com/withastro/astro/commit/0567fb7b50c0c452be387dd7c7264b96bedab48f
  • github.com/withastro/astro/security/advisories/GHSA-cq8c-xv66-36gw
  • nvd.nist.gov/vuln/detail/CVE-2025-54793

Code Behaviors & Features

Detect and mitigate CVE-2025-54793 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.2.0 before 5.12.8

Fixed versions

  • 5.12.8

Solution

Upgrade to version 5.12.8 or above.

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

npm/astro/CVE-2025-54793.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:46 +0000.