VDB
KO
MEDIUM 6.1

GHSA-337j-9hxr-rhxg

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

Quick fix

GHSA-337j-9hxr-rhxg — react-router: upgrade to the fixed version with the command below.

npm install react-router@7.18.0

Details

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

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / react-router
Introduced in: 6.4.0 Fixed in: 7.18.0
Fix npm install react-router@7.18.0

References