CVE-2026-53666: React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydration

Published Jul 23, 2026
·
Updated

If application code allows attacker supplied input to overwrite certain aspects of errors caught by the SSR process, then it was possible for attacker to trigger unexpected constructor execution on the client which would trigger outbound network traffic. This is only possible with very specific (and unlikely) application layer code.

> [!NOTE] > This does not impact your application if you are using Declarative Mode. This only impacts Framework Mode and Data Mode applications doing manual SSR/hydration

Other sources

React Router is a router for React. In versions 6.4.0 through 7.17.0, if application code was written in a way that allows attacker-supplied input to overwrite certain aspects of errors caught by the SSR process, then it was possible for an attacker to trigger unexpected constructor execution on the client, which would in turn trigger an outbound network request. This is only possible with very specific (and unlikely) application-layer code. Note that this does not impact an application if it is using Declarative Mode. It only impacts Framework Mode and Data Mode applications that perform manual SSR/hydration. This issue has been fixed in version 7.18.0.

MITRE

Affected Software

2 affected componentsFixes available
npm/react-router>=6.4.0<7.18.0
7.18.0
Shopify React-router Node.js>=6.4.0<7.18.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.18.0
  2. Upgrade

    Upgrade React Router to a version that resolves this vulnerability.

    Fixed in 7.18.0

Event History

Jul 23, 2026
Advisory Published
via GitHub·07:34 PM
Data Sourced
via GitHub·07:34 PM
DescriptionSeverityWeaknessAffected Software
Jul 27, 2026
CVE Published
via MITRE·09:14 PM
Data Sourced
via MITRE·09:14 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
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-53666?

The severity of CVE-2026-53666 is rated as medium with a score of 6.1.

2

How do I fix CVE-2026-53666?

To fix CVE-2026-53666, ensure that your application code properly sanitizes user input to prevent unexpected constructor execution.

3

What software is affected by CVE-2026-53666?

CVE-2026-53666 affects the npm package react-router.

4

What are the potential risks of CVE-2026-53666?

The potential risks include the execution of unexpected constructors that could lead to unauthorized outbound network traffic.

5

When was CVE-2026-53666 published?

CVE-2026-53666 was published on July 23, 2026.

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