Skip to main content

React Router CVE-2026-40181

| EUVDEUVD-2026-33996 MEDIUM
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2026-06-02 GitHub_M GHSA-2j2x-hqr9-3h42
6.6
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify application endpoint passing user-supplied path to redirect()
  2. Delivery
    Craft URL with //-prefixed attacker domain as path value
  3. Exploit
    Deliver crafted URL to victim via phishing or link injection
  4. Execution
    Victim follows URL; React Router issues 3xx redirect response
  5. Persist
    Browser resolves // as protocol-relative URL using current scheme
  6. Impact
    Victim navigates to attacker-controlled domain

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires two concurrent conditions: (1) the application must use React Router's programmatic redirect() function rather than Declarative Mode (<BrowserRouter> and JSX routes), and (2) attacker-influenced input must reach the redirect() call without prior validation that rejects path values beginning with //. Applications that enforce a strict allowlist of permitted redirect destinations, or that do not expose any user-supplied path data to redirect(), are not exploitable. The Declarative Mode exclusion is an explicit and confirmed carve-out from the advisory. Limiting factors: although the CVSS vector assigns UI:N (no user interaction from the attacker's perspective), realistic exploitation for phishing or token harvesting still requires the victim to follow the crafted URL - purely automated exploitation yielding meaningful impact is not a credible scenario for this vulnerability class.

Impact

The CVSS 4.0 base score of 6.6 (Medium) reflects network reachability (AV:N), low attack complexity (AC:L), no additional attack requirements (AT:N), no privileges required (PR:N), and high integrity impact on the vulnerable system (VI:H), with zero confidentiality or availability impact. One notable discrepancy: the UI:N assignment is atypical for an open redirect - successful exploitation to phish a victim or harvest credentials implicitly requires the user to follow a crafted URL, meaning user interaction is a real-world prerequisite not captured in the vector score; security teams should not assume purely automated exploitation is realistic. The supplemental exploit maturity metric E:U (Unreported/Unlikely) and the absence of a CISA KEV listing both corroborate that no confirmed active exploitation exists at time of analysis. Real-world impact is bounded: open redirect alone does not yield code execution or direct credential theft, but it is a well-understood enabler for phishing, OAuth redirect token harvesting, and login-CSRF chains. Risk is substantially conditioned on application design - deployments that pass arbitrary user-supplied path parameters directly into redirect() without validation carry materially higher exposure than those with strict allowlists.

Exploit ScenarioDerived

An attacker identifies a React Router application that accepts a user-controlled next or redirect_to query parameter and passes it to redirect() without sanitization - a common pattern in login and OAuth flows. The attacker distributes a crafted URL such as https://app.example.com/login?next=//evil.com/fake-login, which the server processes by calling redirect('//evil.com/fake-login'); the browser receives the 3xx response and, interpreting //evil.com as https://evil.com, silently navigates the victim to a phishing page that mirrors the application's login UI. No public exploit code has been identified at time of analysis, but the attack requires no special tooling and is directly constructible from the CVE description.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 02, 2026

Open redirect in React Router's programmatic redirect() function allows unauthenticated remote attackers to redirect users to arbitrary external domains by supplying path values beginning with //, which browsers interpret as protocol-relative (scheme-relative) URLs. Affected are applications in the v7 series (7.0.0-7.14.0) and v6 series (6.7.0-6.30.3) that expose user-influenced input to redirect() without validating the path prefix. No public exploit identified at time of analysis - CVSS 4.0 supplemental metric E:U (Unreported) confirms no known active exploitation - but the technique is trivially constructible from the advisory description alone, and patched releases 7.14.1 and 6.30.4 are available.

RemediationAI

Vendor-released patches are available: upgrade to React Router 7.14.1 for v7 installations or 6.30.4 for v6 installations - these are the confirmed fix versions per the GitHub Security Advisory GHSA-2j2x-hqr9-3h42. If an immediate upgrade cannot be scheduled, the primary compensating control is application-level input validation: before passing any user-influenced value to redirect(), strip or reject path strings beginning with // or containing a scheme delimiter (e.g., ://). A strict destination allowlist - permitting only known-safe relative paths or explicitly enumerated absolute URLs - is the most robust workaround and avoids the pitfall of incomplete prefix-stripping heuristics. Note that this validation must be implemented in application code, not the library, as React Router performs no canonicalization prior to redirect dispatch. Side effect: overly aggressive sanitization of // prefixes could inadvertently interfere with legitimate protocol-relative asset references if those strings flow through the same code path - scope the validation narrowly to redirect destinations.

Affected VersionsENISA

react-router 7.0.0, < 7.14.1
react-router 6.7.0, < 6.30.4

Affected Packages

npm @remix-run/router fix: 1.23.3
npm react-router fix: 6.30.4, 7.14.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

React Router (cpe:2.3:a:remix-run:react-router:*:*:*:*:*:*:*:*) is a widely deployed client-side and server-side routing library for React applications, maintained under the remix-run GitHub organization. The flaw exists in the programmatic redirect() helper API. Under RFC 3986, a URI reference beginning with // is a protocol-relative (scheme-relative) reference - browsers resolve it by prepending the current page's scheme (e.g., https:), treating //evil.com as https://evil.com. React Router does not canonicalize or reject path arguments that carry this prefix before issuing the HTTP redirect response, enabling the browser to navigate to an entirely attacker-controlled origin. This is a textbook CWE-601 (URL Redirection to Untrusted Site / Open Redirect) root cause. Critically, the flaw is scoped exclusively to the programmatic redirect() API; applications using only Declarative Mode (<BrowserRouter> with JSX route definitions) perform no equivalent server-side redirect dispatch and are explicitly unaffected per the advisory.

Know when React Router gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.6 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U
SUSE 4.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Red Hat 5.4 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jun 02, 2026 - 21:02 EUVD
CVSS changed
Jun 02, 2026 - 20:22 NVD
6.6 (MEDIUM)

DescriptionCVE.org

React Router is a router for React. In versions 7.0.0 through 7.14.0 and 6.7.0 through 6.30.3, certain URLs passed to the redirect function can trigger an open redirect to an external domain due to path values starting with // being reinterpreted as protocol-relative URLs. The level of impact depends on the validation done by the application prior to returning the redirect. This does not impact applications using Declarative Mode (<BrowserRouter>). This is patched in versions 7.14.1 and 6.30.4.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 7 npm packages depend on react-router (3 direct, 4 indirect)

Ecosystem-wide dependent count for version 7.0.0.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

53
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +33
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2026-42211 HIGH POC
8.1 Jun 02

Remote code execution in React Router 7.0.0 through 7.14.1 affects applications running in Framework Mode by chaining an

CVE-2026-42342 HIGH POC
7.5 Jun 02

Denial of service in React Router 7.0.0-7.14.x and @remix-run/server-runtime 2.10.0-2.17.4 allows remote unauthenticated

CVE-2026-34077 HIGH POC
7.5 Jun 02

Client-side Cross-Site Scripting in React Router 7.7.0 through 7.13.1 affects applications using the unstable React Serv

CVE-2026-21884 HIGH
8.2 Jan 10

React Router is a router for React. In @remix-run/react version prior to 2.17.3. [CVSS 8.2 HIGH]

CVE-2025-59057 HIGH
7.6 Jan 10

React Router is a router for React. In @remix-run/react versions 1.15.0 through 2.17.0. [CVSS 7.6 HIGH]

CVE-2025-68470 MEDIUM
6.5 Jan 10

React-Router versions up to 6.30.1 is affected by url redirection to untrusted site (open redirect) (CVSS 6.5).

CVE-2026-22030 MEDIUM
6.5 Jan 10

React Router is a router for React. In @remix-run/server-runtime version prior to 2.17.3. [CVSS 6.5 MEDIUM]

CVE-2026-22029 MEDIUM
6.1 Jan 10

React Router is a router for React. In @remix-run/router version prior to 1.23.2. [CVSS 8.0 HIGH]

CVE-2026-33244 MEDIUM
5.4 Jun 02

Cross-site scripting in React Router's Framework Mode (versions 7.5.1-7.13.1) allows an authenticated attacker with infl

CVE-2026-33245 MEDIUM
4.7 Jun 02

Client-side cross-site scripting in React Router 7.7.0 through 7.13.1 allows remote attackers to execute arbitrary scrip

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Module for Package Hub 15 SP7 Fixed
SUSE Linux Enterprise Module for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise Server 16.0 Fixed
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise Server for SAP applications 16.0 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy