CVE-2026-42211: React Router's vendored turbo-stream v2 allows arbitrary constructor invocation via TYPE_ERROR deserialization leading to Unauth RCE

Published Jun 2, 2026
·
Updated

React Router is a router for React. In versions 7.0.0 through 7.14.1, when using Framework Mode, a combination of steps could potentially allow unauthorized remote code execution (RCE) through external requests. This attack requires the application code to have an existing prototype pollution vulnerability, which can then be leveraged in a 2-step attack where the second step triggers unauthorized RCE on the remote server. This does not impact applications using Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>). This is patched in version 7.14.2.

Other sources

React Router is a router for React. In versions 7.0.0 through 7.14.1, when using Framework Mode, a combination of steps could potentially allow unauthorized remote code execution (RCE) through external requests. This attack requires the application code to have an existing prototype pollution vulnerability, which can then be leveraged in a 2-step attack where the second step triggers unauthorized RCE on the remote server. This does not impact applications using Declarative Mode (BrowserRouter) or Data Mode (createBrowserRouter/RouterProvider). This is patched in version 7.14.2.

IBM

When using React Router v7 in Framework Mode, there exists a combination of steps that could potentially allow unauthorized RCE through external requests. This first requires the application code to have an existing prototype pollution vulnerability. This can be leveraged into a 2-step attack in which the second step can trigger unauthorized RCE on the remote server.

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

GitHub

Affected Software

6 affected componentsFixes available
npm/react-router>=7.0.0<=7.14.1
npm/react-router>=7.0.0<=7.14.1
7.14.2
Shopify React-router Node.js>=7.0.0<7.14.2
IBM Engineering AI Hub<=1.0.0
IBM Engineering AI Hub<=1.1.0
IBM Engineering AI Hub<=1.2.0

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.14.2
  2. Upgrade

    Upgrade React Router to a version that resolves this vulnerability.

    Fixed in 7.14.2

Event History

Jun 2, 2026
CVE Published
via MITRE·06:18 PM
Data Sourced
via MITRE·06:18 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·08:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeaknessAffected Software
Jun 3, 2026
Advisory Published
via GitHub·09:03 PM
Data Sourced
via GitHub·09:03 PM
DescriptionSeverityWeaknessAffected Software
Jul 14, 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-42211?

The severity of CVE-2026-42211 is high with a score of 8.1.

2

What are the potential risks associated with CVE-2026-42211?

CVE-2026-42211 can lead to unauthorized remote code execution (RCE) through prototype pollution.

3

How do I fix CVE-2026-42211?

To fix CVE-2026-42211, update React Router to versions later than 7.14.1 that address this vulnerability.

4

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

CVE-2026-42211 affects React Router versions from 7.0.0 through 7.14.1.

5

Can CVE-2026-42211 be exploited without authentication?

Yes, CVE-2026-42211 can be exploited without authentication, making it particularly dangerous.

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