Open Redirect Affecting @astrojs/internal-helpers package, versions >=0.6.1 <0.7.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ASTROJSINTERNALHELPERS-11508621
  • published8 Aug 2025
  • disclosed7 Aug 2025
  • creditM.G.Farisi

Introduced: 7 Aug 2025

NewCVE-2025-54793  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade @astrojs/internal-helpers to version 0.7.1 or higher.

Overview

@astrojs/internal-helpers is an Internal helpers used by core Astro packages.

Affected versions of this package are vulnerable to Open Redirect the trailing slash redirection logic when handling URLs with double slashes in the path. An attacker can redirect users to arbitrary external domains by crafting a specially formed URL such as https://mydomain.com//malicious-site.com/ that triggers a protocol-relative redirect.

Workaround

This can be mitigated by blocking outgoing redirect responses with a Location header value that starts with //.

References

CVSS Base Scores

version 4.0
version 3.1