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)
| Artifact | Affected versions | Fixed 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
0% of the dependent artifacts (0) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 111 |
Most used dependents
- org.mvnpm » react-router-dom19 usages
- org.mvnpm » zudoku0 usages
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
| Advisory | NVD CVE-2026-21884 | nvd.nist.gov |
| Package | remix-run/react-router | github.com |
| Web | remix-run/react-router advisory GHSA-8v8x-cx79-35w7 | github.com |
| Web | remix-run/react-router pull request #14705 | github.com |
| Web | remix-run/react-router commit c89c32c | github.com |
| Web | errata/RHSA-2026:19712 | access.redhat.com |
| Web | errata/RHSA-2026:3782 | access.redhat.com |
| Web | errata/RHSA-2026:3958 | access.redhat.com |
| Web | errata/RHSA-2026:3960 | access.redhat.com |
| Web | security/cve/CVE-2026-21884 | access.redhat.com |
| Web | show_bug.cgi | bugzilla.redhat.com |
| Web | remix-run/react-router CHANGELOG.md | github.com |
| Web | data/csaf/v2/vex/2026/cve-2026-21884.json | security.access.redhat.com |
