Unsafe Deserialization in react-router
Summary
Vulnerability in react-router (CVE-2026-42211). Successful exploitation can lead to full system takeover. Exploitable via createBrowserRouter. Mitigation: upgrade to >=7.14.2 or later.
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
React Routerのフレームワークモードに、外部からの細工したリクエストにより認証なしで遠隔からコードを実行される脆弱性が見つかりました。攻撃の前提としてアプリケーション側にプロトタイプ汚染の脆弱性が必要です。影響を受けるのはバージョン7.0.0から7.14.1のreact-routerで、7.14.2で修正されています。修正版へ更新してください。
React RouterのFramework Modeで、プロトタイプ汚染を利用した不正なリモートコード実行が可能になります。
React Router バージョン7.0.0から7.14.1のFramework Mode
不正なリモートコード実行が可能で、高い危険性を持ちます。CVSSスコアは8.1です。
React Routerをバージョン7.14.2にアップデートする。
Declarative ModeまたはData Modeを使用することで回避可能です。
自身のアプリケーションでFramework Modeを利用しているかを確認し、プロトタイプ汚染の影響を調査する。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmreact-router |
≥ 7.0.0, < 7.14.2→ 7.14.2 |
7.14.2 |
Original description The description as published by the source.
React Router is a router for React. In versions 7.0.0 through 7.14.1, when using Framework Mode, a combination of steps could potentially allow unauthorized remote code execution (RCE) through external requests. This attack requires the application code to have an existing prototype pollution vulnerability, which can then be leveraged in a 2-step attack where the second step triggers unauthorized RCE on the remote server. This does not impact applications using Declarative Mode (``) or Data Mode (createBrowserRouter/). This is patched in version 7.14.2.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com