GHSA-9qr9-h5gf-34mp: Next Remote Code Execution Vulnerability

CRITICAL
CVSS 10.0
CWE-502
Published
Advisory Summary

GHSA-9qr9-h5gf-34mp is a CRITICAL (CVSS 10.0) remote code execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Next libraries in the npm ecosystem. The issue involves next.js is vulnerable to rce in react flight protocol. Remediation is available by upgrading affected packages to version 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7.

GHSA-9qr9-h5gf-34mp at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-9qr9-h5gf-34mp
Severity CRITICAL
CVSS v3.1 Base Score 10.0
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Next
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 10.0

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

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

How to Fix GHSA-9qr9-h5gf-34mp

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

next fixed: 15.0.5
npm install next@15.0.5
next fixed: 15.1.9
npm install next@15.1.9
next fixed: 15.2.6
npm install next@15.2.6
next fixed: 15.3.6
npm install next@15.3.6
next fixed: 15.4.8
npm install next@15.4.8
next fixed: 15.5.7
npm install next@15.5.7
next fixed: 16.0.7
npm install next@16.0.7
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 next

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-9qr9-h5gf-34mp, inspect your project dependencies using npm:

npm ls next

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

Note: The npm ls next 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Next, 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 vulnerability affects certain React packages<sup>1</sup> for versions 19.0.0, 19.1.0, 19.1.1, and 19.2.0 and frameworks that use the affected packages, including Next.js 15.x and 16.x using the App Router. The issue is tracked upstream as [CVE-2025-55182](https://www.cve.org/CVERecord?id=CVE-2025-55182). Fixed in: React: 19.0.1, 19.1.2, 19.2.1 Next.js: 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7, 15.6.0-canary.58, 16.1.0-canary.12+ The vulnerability also affects experimental canary releases starting with 14.3.0-canary.77. Users on any of the 14.3 canary builds should either downgrade to a 14.x stable release or 14.3.0-canary.76. All users of stable 15.x or 16.x Next.js versions should upgrade to a patched, stable version immediately. <sup>1</sup> The affected React packages are: - react-server-dom-parcel - react-server-dom-turbopack - react-server-dom-webpack

GHSA-9qr9-h5gf-34mp Affected Next Versions

7 component(s)
Fixed Versions:
15.0.515.1.915.2.615.3.615.4.815.5.716.0.7
Product / Package Ecosystem Affected Versions Fixed Version
next
npm
≥ 14.3.0-canary.77
< 15.0.5
15.0.5
next
npm
≥ 15.1.0-canary.0
< 15.1.9
15.1.9
next
npm
≥ 15.2.0-canary.0
< 15.2.6
15.2.6
next
npm
≥ 15.3.0-canary.0
< 15.3.6
15.3.6
next
npm
≥ 15.4.0-canary.0
< 15.4.8
15.4.8
next
npm
≥ 15.5.0-canary.0
< 15.5.7
15.5.7
next
npm
≥ 16.0.0-canary.0
< 16.0.7
16.0.7

References

Frequently Asked Questions

What is GHSA-9qr9-h5gf-34mp?
GHSA-9qr9-h5gf-34mp is a security vulnerability in Next involving Next.js is vulnerable to RCE in React flight protocol under CWE-502: Deserialization of Untrusted Data.
Which Next versions are affected?
Affected versions include releases prior to 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7 across affected packages: next.
What version fixes GHSA-9qr9-h5gf-34mp?
Upgrading to 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is next affected?
Yes, next is affected in releases prior to 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7. Upgrade your dependency to 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7 or later.
What is the CVSS score of GHSA-9qr9-h5gf-34mp?
GHSA-9qr9-h5gf-34mp has a CVSS v3.1 base score of 10.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with GHSA-9qr9-h5gf-34mp?
GHSA-9qr9-h5gf-34mp is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check npm dependencies for GHSA-9qr9-h5gf-34mp?
Run the dependency tree command: 'npm ls next'. 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-9qr9-h5gf-34mp",
  "modified" : "2025-12-11T19:31:04Z",
  "published" : "2025-12-03T19:07:11Z",
  "aliases" : [ ],
  "summary" : "Next.js is vulnerable to RCE in React flight protocol",
  "details" : "A vulnerability affects certain React packages<sup>1</sup> for versions 19.0.0, 19.1.0, 19.1.1, and 19.2.0 and frameworks that use the affected packages, including Next.js 15.x and 16.x using the App Router. The issue is tracked upstream as [CVE-2025-55182](https://www.cve.org/CVERecord?id=CVE-2025-55182). \n\nFixed in:\nReact: 19.0.1, 19.1.2, 19.2.1\nNext.js: 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7, 15.6.0-canary.58, 16.1.0-canary.12+\n\nThe vulnerability also affects experimental canary releases starting with 14.3.0-canary.77. Users on any of the 14.3 canary builds should either downgrade to a 14.x stable release or 14.3.0-canary.76.\n\nAll users of stable 15.x or 16.x Next.js versions should upgrade to a patched, stable version immediately.\n\n<sup>1</sup> The affected React packages are:\n- react-server-dom-parcel\n- react-server-dom-turbopack\n- react-server-dom-webpack",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "14.3.0-canary.77"
      }, {
        "fixed" : "15.0.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.1.0-canary.0"
      }, {
        "fixed" : "15.1.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.2.0-canary.0"
      }, {
        "fixed" : "15.2.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.3.0-canary.0"
      }, {
        "fixed" : "15.3.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.4.0-canary.0"
      }, {
        "fixed" : "15.4.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.5.0-canary.0"
      }, {
        "fixed" : "15.5.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.0.0-canary.0"
      }, {
        "fixed" : "16.0.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/facebook/react/security/advisories/GHSA-fv66-9v8q-g76r"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/next.js/security/advisories/GHSA-9qr9-h5gf-34mp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vitejs/vite-plugin-react/security/advisories/GHSA-fmh4-wr37-44fp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-55182"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vercel/next.js"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-03T19:07:11Z",
    "nvd_published_at" : "2025-12-03T18:15:47Z"
  }
}