| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|
| next | npm | >= 14.3.0-canary.77, < 15.0.5 | 15.0.5 |
| next | npm | >= 15.1.1-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.1-canary.0, < 15.5.7 | 15.5.7 |
| next | npm | >= 16.0.0-canary.0, < 16.0.7 | 16.0.7 |
The vulnerability is a prototype pollution issue in the requireModule function within Next.js's compiled React Server DOM packages. The function did not properly check if a requested module property was its own, allowing access to properties on the Object prototype. An attacker could exploit this to inject malicious properties and achieve remote code execution. The patch addresses this by introducing a hasOwnProperty check, ensuring that only direct properties of the module can be accessed. The analysis identified all occurrences of the vulnerable requireModule function across different environments (browser, edge, node) and build types (development, production) in both react-server-dom-turbopack and react-server-dom-webpack packages, confirming the widespread nature of the vulnerability within the framework's rendering pipeline.
requireModulepackages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js
requireModulepackages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.production.js
requireModulepackages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.development.js
requireModulepackages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js
requireModulepackages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.development.js
KEV Misses 88% of Exploited CVEs- Get the report