{"id":"CVE-2025-54793","published":"2025-08-08T00:02:38Z","modified":"2025-08-08T16:55:38Z","title":"Astro: Duplicate trailing slash feature can lead to Open Redirects","vendor":"withastro","product":"astro","tier":"tail","description":{"text":"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 `//`.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00956,"percentile":0.59965,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-cq8c-xv66-36gw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/withastro/astro/commit/0567fb7b50c0c452be387dd7c7264b96bedab48f","tags":["x_refsource_MISC"]}],"priority":{"score":20.8,"factors":[{"name":"EPSS percentile","points":11.99},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.85}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-10-11","earliestUrl":"https://github.com/bhuvi-labs/ict279-cve-2025-54793","repos":[{"name":"bhuvi-labs/ict279-cve-2025-54793","url":"https://github.com/bhuvi-labs/ict279-cve-2025-54793","stars":0,"created":"2025-10-11"}]},"nuclei":[{"id":"CVE-2025-54793","name":"Astro SSR - Open Redirect","severity":"medium","path":"http/cves/2025/CVE-2025-54793.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-54793.yaml"}],"first":{"date":"2025-10-11","source":"PoC-in-GitHub","url":"https://github.com/bhuvi-labs/ict279-cve-2025-54793"},"provenance":"source"},"vendorSlug":"withastro","affectedVersions":[{"vendor":"withastro","product":"astro","versions":[">= 5.2.0, < 5.12.8"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-08-08T16:55:19.482266Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"astro","vulnerableRanges":[">=5.2.0, <5.12.8"],"patched":["5.12.8"],"from":["GHSA-cq8c-xv66-36gw"],"provenance":"source"}],"summary":{"text":"Astro, the web framework for content-driven websites, contains an open redirect flaw in its trailing slash redirection logic that mishandles paths with double slashes. An attacker can exploit it over the network without authentication or user interaction, by crafting a URL such as one beginning with a double slash after the domain, to send users to arbitrary external domains; this only affects sites using on-demand (SSR) rendering with the Node or Cloudflare adapters.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:40:22Z"},"euvd":{"id":"EUVD-2025-23968","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-47885","published":"2024-10-14","fixed":"4.16.1","kev":false},{"cve":"CVE-2024-56140","published":"2024-12-18","fixed":"4.16.17","kev":false},{"cve":"CVE-2024-56159","published":"2024-12-19","fixed":"5.0.8","kev":false},{"cve":"CVE-2025-54793","published":"2025-08-08","fixed":"5.12.8","kev":false},{"cve":"CVE-2025-55303","published":"2025-08-19","fixed":"5.13.2","kev":false,"link":{"from":"CVE-2025-54793","to":"CVE-2025-55303","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:astro","fromFixed":"5.12.8","toFixed":"5.13.2","daysApart":11},{"kind":"same-code","provenance":"machine","files":["packages/internal-helpers/src/path.ts"],"commits":["https://github.com/withastro/astro/commit/0567fb7b50c0c452be387dd7c7264b96bedab48f","https://github.com/withastro/astro/commit/4d16de7f95db5d1ec1ce88610d2a95e606e83820"],"basis":"shared file"},{"kind":"similar","provenance":"machine","score":0.2,"basis":"same product + description similarity"}]}},{"cve":"CVE-2025-59837","published":"2025-10-28","fixed":"5.13.10","kev":false},{"cve":"CVE-2025-61925","published":"2025-10-10","fixed":"5.14.3","kev":false}],"package":"npm:astro"}}