CVE-2025-55207 @astrojs/node's trailing slash handling causes open redirect issue

Medium 5.5 Published Updated

Attackers can redirect users to malicious sites via crafted links in specific Astro Node adapter configurations, enabling phishing attacks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-55207?

CVE-2025-55207 is a medium-severity vulnerability in withastro astro, published on 15 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Astro is a web framework for content-driven websites. Following CVE-2025-54793 there's still an Open Redirect vulnerability in a subset of Astro deployment scenarios prior to version 9.4.1. Astro 5.12.8 addressed CVE-2025-54793 where https://example.com//astro.build/press would redirect to the external origin //astro.build/press. However, with the Node deployment adapter in standalone mode and trailingSlash set to "always" in the Astro configuration, https://example.com//astro.build/press still redirects to //astro.build/press. This affects any user who clicks on a specially crafted link pointing to the affected domain. Since the domain appears legitimate, victims may be tricked into trusting the redirected page, leading to possible credential theft, malware distribution, or other phishing-related attacks. This issue has been patched in version 9.4.1.

Weakness: CWE-601

Which versions are affected by CVE-2025-55207?

2 open source packages ship an affected version, including @astrojs/node.

PackageAffectedFixed in
@astrojs/node npmAll versions9.4.1
@astrojs/node npmAll versions9.4.1

How do I fix CVE-2025-55207?

Upgrade @astrojs/node to 9.4.1 or later.

Is CVE-2025-55207 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-55207 exists.

Sources

Also known as GHSA-9x9c-ghc5-jhw9.

Is CVE-2025-55207 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free