XSS Vulnerability in React Router Affects Remix-Run and React-Router
CVE-2026-21884
8.2HIGH
What is CVE-2026-21884?
A Cross-Site Scripting (XSS) vulnerability has been identified in React Router's API when used in Framework Mode with the getKey/storageKey props during Server-Side Rendering (SSR). This flaw permits arbitrary JavaScript execution if untrusted content is utilized to create the keys. The issue arises solely when SSR in Framework Mode is enabled, and it does not affect configurations using Declarative Mode or Data Mode. The vulnerability has been addressed in updated versions of the affected packages.
Affected Version(s)
react-router @remix-run/react < 2.17.3 < @remix-run/react 2.17.3
react-router react-router >= 7.0.0, < 7.12.0 < react-router 7.0.0, 7.12.0
