Intel

AIKIDO-2026-740941

react-router is vulnerable to Deserialization of Untrusted Data

CVE-2026-53666Published Jun 18, 2026
June 18, 2026

42

CVE Score

Medium

Deserialization of Untrusted Data

Are you affected? Scan for Free

TL;DR

React Router Framework Mode client hydration previously deserialized server error objects by instantiating arbitrary window[__subType] constructors from serialized metadata. If attacker-influenced error shapes reach hydration data, unsafe constructors can run in the browser. The patch removes the custom deserialization path and routes hydration errors through turbo-stream with a supported error-type whitelist.

How do I fix this?

Upgrade the react-router and/or the react-router-dom library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and running Framework Mode SSR where untrusted data can influence serialized hydration error payloads.

Versions

6.14.2 - 7.17.0

Fixed in 7.18.0

Background info

react-router is vulnerable to Deserialization of Untrusted Data in versions 6.14.2 - 7.17.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea