CVE-2026-40181
JSON

6.6medium

React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation

Severity
6.6medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-2j2x-hqr9-3h42

Description

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.

Affected

Product or packageVersionsReported by
remix-run react-router>= 7.0.0, < 7.14.1, >= 6.7.0, < 6.30.4CVE List
remix-run @remix-run/router>= 1.3.0, < 1.23.3CVE List
react-router (npm)from 7.0.0 before 7.14.1, from 6.7.0 before 6.30.4GitHub Advisory Database
@remix-run/router (npm)from 1.3.0 before 1.23.3GitHub Advisory Database
shopify react-routerfrom 6.7.0 before 6.30.4, from 7.0.0 before 7.14.1NVD

All scores

GitHub_M6.6medium CVSS:4.0CVSS: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
GitHubmedium CVSS:4.0CVSS: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
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-601

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

Certain URLs passed to the redirect function can trigger an open redirect to an external domain depending on the level of validation done by the application prior to returning the redirect.

[!NOTE] This does not impact your React Router application if you are using Declarative Mode (<BrowserRouter>)

NVD (es)

React Router es un router para React. En las versiones 7.0.0 a 7.14.0 y 6.7.0 a 6.30.3, ciertas URL pasadas a la función de redirección pueden desencadenar una redirección abierta a un dominio externo debido a que los valores de ruta que comienzan con // son reinterpretados como URL relativas al protocolo. El nivel de impacto depende de la validación realizada por la aplicación antes de devolver la redirección. Esto no impacta a las aplicaciones que usan el Modo Declarativo (<BrowserRouter>). Esto está parcheado en las versiones 7.14.1 y 6.30.4.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-40181 changed 2026-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-2j2x-hqr9-3h42 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-40181 changed 2026-08-04Public domain