MODERATE 5.4

CVE-2026-33244

React Router has stored XSS via unescaped Location header in prerendered redirect HTML

Description

When using React Router v7 Framework Mode with Pre-rendering enabled, an improper neutralization of the HTTP Location header value can permit Cross-Site Scripting (XSS) in statically generated HTML files if the redirect location comes from an untrusted source.

[!NOTE] This does not impact your React Router application if you are using Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>).

Affected Maven artifacts (3)

ArtifactAffected versionsFixed in
org.mvnpm » react-routervia npm react-router
>= 7.5.1, < 7.13.2
7.13.2
org.webjars » react-routervia npm react-router
>= 7.5.1, < 7.13.2
7.13.2
org.webjars.npm » react-routervia npm react-router
>= 7.5.1, < 7.13.2
7.13.2

Blast radius

2affected artifacts
25affected versions
2dependent artifacts (est.)
109dependent versions

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

DepthDependent versions
Direct
109

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 (1 package) . See all on OSV