CVE-2026-33244: React Router has stored XSS via unescaped Location header in prerendered redirect HTML

Published Jun 2, 2026
·
Updated

React Router is a router for React. In versions 7.5.1 through 7.13.1, when using Framework Mode with pre-rendering enabled, improper neutralization of the HTTP Location header value can permit Cross-Site Scripting (XSS) in the statically generated HTML files if the redirect location comes from an untrusted source. This does not impact applications using Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>). This is patched in version 7.13.2.

Other sources

React Router is a router for React. In versions 7.5.1 through 7.13.1, when using Framework Mode with pre-rendering enabled, improper neutralization of the HTTP Location header value can permit Cross-Site Scripting (XSS) in the statically generated HTML files if the redirect location comes from an untrusted source. This does not impact applications using Declarative Mode (BrowserRouter) or Data Mode (createBrowserRouter/RouterProvider). This is patched in version 7.13.2.

IBM

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>).

GitHub

Affected Software

4 affected componentsFixes available
npm/react-router>=7.5.1<=7.13.1
npm/react-router>=7.5.1<7.13.2
7.13.2
Shopify React-router Node.js>=7.5.1<7.13.2
IBM API Connect<=V10.0.8.0 - V10.0.8.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/react-router to a version that resolves this vulnerability.

    Fixed in 7.13.2
  2. Upgrade

    Upgrade react-router to a version that resolves this vulnerability.

    Fixed in 7.13.2

Event History

Jun 2, 2026
CVE Published
via MITRE·04:59 PM
Data Sourced
via MITRE·04:59 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeaknessAffected Software
Jun 3, 2026
Advisory Published
via GitHub·08:33 PM
Data Sourced
via GitHub·08:33 PM
DescriptionSeverityWeaknessAffected Software
Jul 7, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-33244?

The severity of CVE-2026-33244 is medium with a score of 5.4.

2

How do I fix CVE-2026-33244?

To fix CVE-2026-33244, upgrade React Router to version 7.13.2 or later.

3

What kind of vulnerability is CVE-2026-33244?

CVE-2026-33244 is a stored Cross-Site Scripting (XSS) vulnerability.

4

Which versions of React Router are affected by CVE-2026-33244?

Versions 7.5.1 through 7.13.1 of React Router are affected by CVE-2026-33244.

5

Does CVE-2026-33244 allow for remote exploitation?

Yes, CVE-2026-33244 allows for remote exploitation due to improper handling of the HTTP Location header.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203