GHSA-9qr9-h5gf-34mp: Next Remote Code Execution Vulnerability
CRITICALGHSA-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
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).
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.
npm install next@15.0.5
npm install next@15.1.9
npm install next@15.2.6
npm install next@15.3.6
npm install next@15.4.8
npm install next@15.5.7
npm install next@16.0.7
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
GHSA-9qr9-h5gf-34mp Affected Next Versions
7 component(s)| 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?
Which Next versions are affected?
What version fixes GHSA-9qr9-h5gf-34mp?
Is next affected?
What is the CVSS score of GHSA-9qr9-h5gf-34mp?
What CWE is associated with GHSA-9qr9-h5gf-34mp?
How can I check npm dependencies for GHSA-9qr9-h5gf-34mp?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}