npm/react-router CVE-2026-40181: medium 6.1, EPSS 0.22%
React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation
Action: Upgrade react-router to 6.30.4 or later.
npm i react-router@7.14.1npm i react-router@6.30.4Affected
| introduced | fixed | last affected |
|---|---|---|
| 7.0.0 | 7.14.1 | - |
| 6.7.0 | 6.30.4 | - |
Fixed versions
| 7.14.1 | 6.30.4 |
Sources
- osv: GHSA-2j2x-hqr9-3h42
- nvd: CVE-2026-40181
- https://github.com/remix-run/react-router/security/advisories/GHSA-2j2x-hqr9-3h42
- https://github.com/remix-run/react-router/commit/d77f6b1
- https://github.com/remix-run/react-router
CVE-2026-40181 · published · modified · JSON