CVE-2026-139996: React Router Prototype Pollution Vulnerability

HIGH
Advisory Identifier: GHSA-qhgm-jj2j-75wj
CVSS 7.4
CWE-1321
Published
Advisory Summary

CVE-2026-139996 is a HIGH (CVSS 7.4) prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting React Router libraries in the npm ecosystem. The issue involves prototype pollution via vendored turbo-stream deserializer. Remediation is available by upgrading affected packages to version 7.18.5, 8.5.1.

CVE-2026-139996 at a Glance

CVE Identifier CVE-2026-139996
GHSA Identifier GHSA-qhgm-jj2j-75wj
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product React Router
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-139996

To remediate this vulnerability, upgrade all affected React Router dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

react-router fixed: 7.18.5
npm install react-router@7.18.5
react-router fixed: 8.5.1
npm install react-router@8.5.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls react-router

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-139996, inspect your project dependencies using npm:

npm ls react-router

Analyze the terminal output to locate any version of React Router in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.18.5), your application is affected.

Note: The npm ls react-router command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In React Router, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A prototype pollution vulnerability in React Router’s data deserialization may allow attacker-controlled serialized data to interfere with application behavior, potentially compromising application integrity or availability. **Affected Modes:** Framework. Exploitation requires attacker influence over serialized data processed by the affected decoder.

CVE-2026-139996 Affected React Router Versions

2 component(s)
Fixed Versions:
7.18.58.5.1
Product / Package Ecosystem Affected Versions Fixed Version
react-router
npm
≥ 7.0.0
< 7.18.5
7.18.5
react-router
npm
≥ 8.0.0
< 8.5.1
8.5.1

References

Frequently Asked Questions

What is CVE-2026-139996?
CVE-2026-139996 is a security vulnerability in React Router involving Prototype Pollution via Vendored turbo-stream Deserializer under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which React Router versions are affected?
Affected versions include releases prior to 7.18.5, 8.5.1 across affected packages: react-router.
What version fixes CVE-2026-139996?
Upgrading to 7.18.5, 8.5.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is react-router affected?
Yes, react-router is affected in releases prior to 7.18.5, 8.5.1. Upgrade your dependency to 7.18.5, 8.5.1 or later.
What is the CVSS score of CVE-2026-139996?
CVE-2026-139996 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-139996?
CVE-2026-139996 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for CVE-2026-139996?
Run the dependency tree command: 'npm ls react-router'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qhgm-jj2j-75wj",
  "modified" : "2026-12-01T02:36:19Z",
  "published" : "2026-12-01T02:36:18Z",
  "aliases" : [ "CVE-2026-139996" ],
  "summary" : "React Router: Prototype Pollution via Vendored turbo-stream Deserializer",
  "details" : "A prototype pollution vulnerability in React Router’s data deserialization may allow attacker-controlled serialized data to interfere with application behavior, potentially compromising application integrity or availability.\n\n**Affected Modes:** Framework.\n\nExploitation requires attacker influence over serialized data processed by the affected decoder.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "react-router"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.18.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "react-router"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.5.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/remix-run/react-router/security/advisories/GHSA-qhgm-jj2j-75wj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-139996"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/remix-run/react-router/commit/18e1fbd1f5323ec39f18a6de74ba15465d46f164"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/remix-run/react-router/commit/d7223c082799207b07d0f4ac5c4b1cb2eb763fb4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/remix-run/react-router"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v851"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/remix-run/react-router/blob/v7/CHANGELOG.md#v7185"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/remix-run/react-router/releases/tag/react-router@7.18.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/remix-run/react-router/releases/tag/react-router@8.5.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-01T02:36:18Z",
    "nvd_published_at" : "2026-11-30T21:17:31Z"
  }
}