cve.bz

CVE-2026-40181 shopify react-router: Open Redirect

6.6 mediumEPSS 0.2%Fix available

Medium (6.6) in shopify react-router. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in react-router 6.30.4, 7.14.1.

On this page
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.

Severity

CVSS 4.0

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

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 13th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-06-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-601 URL Redirection to Untrusted Site (Open Redirect)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40181 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40181?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40181?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40181 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
shopify:react-routerfrom 6.7.0 before 6.30.4
shopify:react-routerfrom 7.0.0 before 7.14.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2j2x-hqr9-3h42npmreact-router>=7.0.0 <7.14.17.14.1
GHSA-2j2x-hqr9-3h42npmreact-router>=6.7.0 <6.30.46.30.4
GHSA-2j2x-hqr9-3h42npm@remix-run/router>=1.3.0 <1.23.31.23.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
SUSELinux Enterprise Module for Package Hub 15 SP7golang-github-prometheus-prometheus3.13.2-150100.4.40.2SUSE-SU-2026:4606-1
SUSEMulti Linux Manager Tools SLE-15golang-github-prometheus-prometheus3.13.2-150002.3.19.1SUSE-SU-2026:4585-1
SUSEMulti Linux Manager Tools SLE-15grafana12.4.10-150002.4.27.1SUSE-SU-2026:4585-1
SUSEMulti Linux Manager Tools SLE-15mgr-push5.2.5-150002.3.12.1SUSE-SU-2026:4585-1
SUSEMulti Linux Manager Tools SLE-15spacecmd5.2.10-150002.3.15.1SUSE-SU-2026:4585-1
SUSEMulti Linux Manager Tools SLE-15spacewalk-client-tools5.2.7-150002.3.12.1SUSE-SU-2026:4585-1
SUSEMulti Linux Manager Tools SLE-15, Multi Linux Manager Tools SLE-Micro-5uyuni-tools5.2.17-150002.3.20.1SUSE-SU-2026:4585-1
SUSEMulti Linux Manager Tools SLE-15, Multi Linux Manager Tools SLE-Micro-5venv-salt-minion3006.0-150002.5.22.1SUSE-SU-2026:4585-1
openSUSELeap 16.0agama-web-ui17+673.b97ba64d6-160000.12.1openSUSE-SU-2026:21448-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A Moderate impact open redirect vulnerability exists in React Router, affecting versions 7.0.0 through 7.14.0 and 6.7.0 through 6.30.3. This flaw allows a remote attacker to redirect users to arbitrary external websites by crafting URLs that begin with `//`, which are then misinterpreted as protocol-relative. The exploitability and actual impact on Red Hat products depend on the specific application's redirect validation logic. Applications utilizing React Router in Declarative Mode (`<BrowserRouter>`) are not affected by this issue.

Red Hat's mitigation

Application developers using React Router in Red Hat products should implement robust URL validation before performing redirects to prevent misinterpretation of protocol-relative URLs. Additionally, applications configured with Declarative Mode (<BrowserRouter>) are not impacted by this vulnerability. Users should exercise caution when interacting with untrusted links.

ProductPackageStateAdvisory
Red Hat Openshift Data Foundation 4.18odf4/cephcsi-rhel9:1786705347Fixed 2026-08-18RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18odf4/cephcsi-rhel9-operator:1786706101Fixed 2026-08-18RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18odf4/mcg-core-rhel9:1786705558Fixed 2026-08-18RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18odf4/mcg-rhel9-operator:1786705646Fixed 2026-08-18RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18odf4/ocs-client-console-rhel9:1786706138Fixed 2026-08-18RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18odf4/ocs-client-rhel9-operator:1786705741Fixed 2026-08-18RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18odf4/ocs-metrics-exporter-rhel9:1786705777Fixed 2026-08-18RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18odf4/ocs-rhel9-operator:1786705802Fixed 2026-08-18RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18odf4/odf-cli-rhel9:1786705938Fixed 2026-08-18RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18odf4/odf-console-rhel9:1786706577Fixed 2026-08-18RHSA-2026:56431
Cryostat 4cryostat-openshift-console-plugin-npmFix deferred
Cryostat 4grafana-infinity-datasource-npmFix deferred
Cryostat 4react-routerFix deferred
Exploit Intelligenceexploit-intelligence-tech-preview/agent-client-rhel9Fix deferred
Gatekeeper 3gatekeeper/gatekeeper-rhel9Fix deferred
Migration Toolkit for Applications 8mta/mta-ui-rhel8Fix deferred
Migration Toolkit for Applications 8mta/mta-ui-rhel9Fix deferred
Migration Toolkit for Containersrhmtc/openshift-migration-ui-rhel8Fix deferred
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-console-plugin-rhel9Fix deferred
Migration Toolkit for Virtualizationmtv-candidate/mtv-console-plugin-rhel9Fix deferred
146 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40181.

Attack patterns (CAPEC)

  • CAPEC-178 Cross-Site Flashing Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON