Open Redirect Affecting @astrojs/internal-helpers package, versions >=0.3.0 <0.10.1


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-18085626
  • published21 Jul 2026
  • disclosed20 Jul 2026
  • creditalanturing881

Introduced: 20 Jul 2026

NewCVE-2026-59730  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade @astrojs/internal-helpers to version 0.10.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 via the static file handler when the trailingSlash: 'always' configuration is enabled. An attacker can redirect users to unintended external sites by delivering a crafted link containing a backslash-prefixed path to a user.

Note: This is only exploitable if the trailingSlash: 'always' setting is enabled, the request path does not have a file extension in its final segment, and the attacker is able to deliver the crafted link to a user.

Workaround

This vulnerability can be mitigated by using the default trailingSlash: 'ignore' setting, which does not issue trailing-slash redirects in the static file handler.

CVSS Base Scores

version 4.0
version 3.1