2026-07-27 21:14CVE-2026-53666GitHub_M
PUBLISHED5.2CWE-470

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

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.

Problem type

Affected products

remix-run

react-router

>= 6.4.0, < 7.18.0 - AFFECTED

References

GitHub Security Advisories

GHSA-337j-9hxr-rhxg

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

https://github.com/advisories/GHSA-337j-9hxr-rhxg

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

JSON source

https://cveawg.mitre.org/api/cve/CVE-2026-53666
Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-53666",
    "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
    "assignerShortName": "GitHub_M",
    "dateUpdated": "2026-07-27T21:14:49.547Z",
    "dateReserved": "2026-06-09T20:50:36.877Z",
    "datePublished": "2026-07-27T21:14:49.547Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "shortName": "GitHub_M",
        "dateUpdated": "2026-07-27T21:14:49.547Z"
      },
      "title": "React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydration",
      "descriptions": [
        {
          "lang": "en",
          "value": "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": [
        {
          "vendor": "remix-run",
          "product": "react-router",
          "versions": [
            {
              "version": ">= 6.4.0, < 7.18.0",
              "status": "affected"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "lang": "en",
              "description": "CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')",
              "cweId": "CWE-470",
              "type": "CWE"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://github.com/remix-run/react-router/security/advisories/GHSA-337j-9hxr-rhxg",
          "name": "https://github.com/remix-run/react-router/security/advisories/GHSA-337j-9hxr-rhxg",
          "tags": [
            "x_refsource_CONFIRM"
          ]
        },
        {
          "url": "https://github.com/remix-run/react-router/pull/15175",
          "name": "https://github.com/remix-run/react-router/pull/15175",
          "tags": [
            "x_refsource_MISC"
          ]
        },
        {
          "url": "https://github.com/remix-run/react-router/commit/9d22943fd46c8ae4b08236425fa3549e10e9ad1a",
          "name": "https://github.com/remix-run/react-router/commit/9d22943fd46c8ae4b08236425fa3549e10e9ad1a",
          "tags": [
            "x_refsource_MISC"
          ]
        },
        {
          "url": "https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7180",
          "name": "https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7180",
          "tags": [
            "x_refsource_MISC"
          ]
        },
        {
          "url": "https://github.com/remix-run/react-router/releases/tag/react-router@7.18.0",
          "name": "https://github.com/remix-run/react-router/releases/tag/react-router@7.18.0",
          "tags": [
            "x_refsource_MISC"
          ]
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "version": "3.1",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
            "attackVector": "NETWORK",
            "attackComplexity": "LOW",
            "privilegesRequired": "NONE",
            "userInteraction": "REQUIRED",
            "scope": "CHANGED",
            "confidentialityImpact": "LOW",
            "integrityImpact": "LOW",
            "availabilityImpact": "NONE",
            "baseScore": 6.1,
            "baseSeverity": "MEDIUM"
          }
        }
      ]
    }
  }
}