Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-53666
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 17:23 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 27 Jul 2026, 21:14 UTC

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.

osv:CVE-2026-53666
Complete source record
{
  "id": "33ca7b1102a8917ff780e6ab480b76a54b8fdcb576353acef8ed8499fec41b79",
  "url": "https://osv.dev/vulnerability/CVE-2026-53666",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydration",
    "summary": "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.",
    "evidence": "osv:CVE-2026-53666",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-53666",
      "aliases": [
        "CVE-2026-53666",
        "GHSA-337j-9hxr-rhxg"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/remix-run/react-router",
              "type": "GIT",
              "events": [
                {
                  "introduced": "87851fbafee8932b9624900789388cdee9b1488a"
                },
                {
                  "fixed": "24283e93971e3e4f9f909c0bae63583f173fcd52"
                },
                {
                  "fixed": "9d22943fd46c8ae4b08236425fa3549e10e9ad1a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:shopify:react-router:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "6.4.0"
                      },
                      {
                        "fixed": "7.18.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "9d22943fd46c8ae4b08236425fa3549e10e9ad1a"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "24283e93971e3e4f9f909c0bae63583f173fcd52"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "react-router@7.18.0"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53666.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.612878542Z",
      "provider": "osv",
      "references": [
        "https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7180",
        "https://github.com/remix-run/react-router/releases/tag/react-router@7.18.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53666.json",
        "https://github.com/remix-run/react-router/security/advisories/GHSA-337j-9hxr-rhxg",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-53666",
        "https://github.com/remix-run/react-router/commit/9d22943fd46c8ae4b08236425fa3549e10e9ad1a",
        "https://github.com/remix-run/react-router/pull/15175"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-470"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53666.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-53666",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 497761,
  "published_at": "2026-07-27T21:14:49.547+00:00"
}