UNKNOWN npm
React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation
GHSA-2j2x-hqr9-3h42 · CVE-2026-40181
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
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>)
Ready to move
Start Securing
Free, no credit card | First findings in minutes