HIGH 8.2

CVE-2026-21884

React Router SSR XSS in ScrollRestoration

Description

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.

[!NOTE] This does not impact applications if developers have disabled server-side rendering in Framework Mode, or if they are using Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>).

Affected Maven artifacts (4)

ArtifactAffected versionsFixed in
org.mvnpm » react-routervia npm react-router
>= 7.0.0, < 7.12.0
7.12.0
org.mvnpm.at.remix-run » reactvia npm @remix-run/react
< 2.17.3
2.17.3
org.webjars » react-routervia npm react-router
>= 7.0.0, < 7.12.0
7.12.0
org.webjars.npm » react-routervia npm react-router
>= 7.0.0, < 7.12.0
7.12.0

Blast radius

3affected artifacts
45affected versions
2dependent artifacts (est.)
111dependent versions

0% of the dependent artifacts (0) still pull an affected version in their latest release.

DepthDependent versions
Direct
111

Most used dependents

Computed from the dependency graph of build 20261129.2353 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

Other ecosystems

Also affects npm (2 packages) . See all on OSV

References

Advisorynvd.nist.gov
Packagegithub.com
Webgithub.com
Webgithub.com
Webgithub.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webbugzilla.redhat.com
Webgithub.com
Websecurity.access.redhat.com