MEDIUM 6.1 npm

React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydration

GHSA-337j-9hxr-rhxg · CVE-2026-53666

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

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

Ready to move

Start Securing

Free, no credit card | First findings in minutes