Cross-Site Scripting (XSS) in react-router
Summary
Cross-site scripting in react-router (CVE-2026-33245). Confidential information can be exposed externally. Mitigation: upgrade to >=7.13.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のunstableなReact Server Components(RSC)APIを使用している場合、信頼できない発信元からのリダイレクト処理にクロスサイトスクリプティング(XSS)の脆弱性があります。対象はnpmパッケージreact-routerのバージョン7.7.0から7.13.1で、7.13.2で修正されています。修正版へのアップデートをおすすめします。
React RouterにおけるクライアントサイドXSSの脆弱性。
バージョン7.7.0から7.13.1のReact RouterのRSC API。
信頼できないソースからのリダイレクトにより、クライアントサイドでXSS攻撃が可能。
React Routerをバージョン7.13.2にアップデートしてください。
RSC APIを使用しないか、信頼できるソースからのリダイレクトのみを許可する。
アプリケーションがRSC APIを使用しているか確認し、リダイレクト元のソースをチェックする。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmreact-router |
≥ 7.7.0, < 7.13.2→ 7.13.2 |
7.13.2 |
Original description The description as published by the source.
React Router is a router for React. In versions 7.7.0 through 7.13.1, when using React Router's unstable React Server Components (RSC) APIs, there is a potential client-side Cross-Site Scripting (XSS) vulnerability in the RSC redirect handling if redirects come from untrusted sources. This does not impact applications that are not using the unstable RSC APIs in React Router. This is patched in version 7.13.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