Open Redirect Affecting react-router package, versions >=6.7.0 <6.30.4>=7.0.0 <7.14.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.16% (6th 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-REACTROUTER-17138887
  • published3 Jun 2026
  • disclosed2 Jun 2026
  • creditUnknown

Introduced: 2 Jun 2026

CVE-2026-40181  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade react-router to version 6.30.4, 7.14.1 or higher.

Overview

Affected versions of this package are vulnerable to Open Redirect when certain URLs with path values starting with // are processed. An attacker can redirect users to external domains by supplying specially crafted protocol-relative URLs.

Note:

Users that utilise Declarative Mode (<BrowserRouter>) are not affected by this issue.

CVSS Base Scores

version 4.0
version 3.1