NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

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

mediumCVSS 4.0 6.6GHSA-2j2x-hqr9-3h42

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 ( )

Published Jun 3, 2026 · Updated Aug 4, 2026

Affected packages

react-router

Ecosystem
npm
Affected
>= 7.0.0, < 7.14.1
Fixed in
7.14.1
Check
npm ls react-router

react-router

Ecosystem
npm
Affected
>= 6.7.0, < 6.30.4
Fixed in
6.30.4
Check
npm ls react-router

@remix-run/router

Ecosystem
npm
Affected
>= 1.3.0, < 1.23.3
Fixed in
1.23.3
Check
npm ls @remix-run/router

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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>)

Credited to sealonohana.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries