CVE-2026-53666
JSON

6.1medium

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

Severity
6.1medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.30% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-337j-9hxr-rhxg

Description

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.

Affected

Product or packageVersionsReported by
remix-run react-router>= 6.4.0, < 7.18.0CVE List
react-router (npm)from 6.4.0 before 7.18.0GitHub Advisory Database
shopify react-routerfrom 6.4.0 before 7.18.0NVD

All scores

GitHub_M6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-470

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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

NVD (es)

React Router es un router para React. En las versiones 6.4.0 a 7.17.0, si el código de la aplicación fue escrito de una manera que permite que la entrada suministrada por el atacante sobrescriba ciertos aspectos de errores capturados por el proceso SSR, entonces era posible para un atacante desencadenar la ejecución inesperada del constructor en el cliente, lo que a su vez desencadenaría una solicitud de red saliente. Esto solo es posible con código de capa de aplicación muy específico (e improbable). Tenga en cuenta que esto no impacta una aplicación si está utilizando el Modo Declarativo. Solo impacta las aplicaciones de Modo Framework y Modo de Datos que realizan SSR/hidratación manual. Este problema ha sido solucionado en la versión 7.18.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-53666 changed 2026-07-28CVE Terms of Use
GitHub Advisory DatabaseGHSA-337j-9hxr-rhxg changed 2026-09-10CC-BY-4.0
NVDCVE-2026-53666 changed 2026-10-24Public domain