CVE Catalog

CVE-2026-21884

HighCVSS 8.2
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.47%

38th percentile - higher than 38% of all known CVEs

Summary

XSS vulnerability in React Router's <ScrollRestoration> API in Framework Mode during Server-Side Rendering when using getKey/storageKey props. It allows arbitrary JavaScript execution during SSR if untrusted content is used to generate keys.

Risk Assessment

An attacker can inject malicious JavaScript that executes during server-side rendering, potentially leading to session data theft, account takeover, or other XSS-based attacks.

Recommendation

Immediately update @remix-run/react to version 2.17.3 or later and react-router to version 7.12.0 or later. If Framework Mode SSR is not required, consider disabling it.

Other vulnerabilities in React Router

See all
Original NVD description (English source)

React Router is a router for React. In @remix-run/react version prior to 2.17.3. and react-router 7.0.0 through 7.11.0, a XSS vulnerability exists in in React Router's <ScrollRestoration> API in Framework Mode when using the getKey/storageKey props during Server-Side Rendering which could allow arbitrary JavaScript execution during SSR if untrusted content is used to generate the keys. There is no impact if server-side rendering in Framework Mode is disabled, or if Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>) is being used. This issue has been patched in @remix-run/react version 2.17.3 and react-router version 7.12.0.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS