GHSA-2j2x-hqr9-3h42Medium

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

Published
June 3, 2026
Last Modified
June 3, 2026

🔗 CVE IDs covered (1)

📋 Description

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

🎯 Affected products2

  • npm/react-router:>= 7.0.0, < 7.14.1
  • npm/react-router:>= 6.7.0, < 6.30.4

🔗 References (3)