CVE-2025-54782
PoC ×3moderateDrive-by localhost RCE in @nestjs/devtools-integration (0.2.0 and earlier)
A critical remote code execution vulnerability (CVSS 4.0: 9.4) exists in the @nestjs/devtools-integration package for the NestJS Node.js framework in versions 0.2.0 and below. When the Devtools integration is enabled, it adds HTTP endpoints to a locally running NestJS development server, and the /inspector/graph/interact endpoint accepts a JSON 'code' field that is executed inside an improperly isolated Node.js vm.runInNewContext (safe-eval-like) sandbox. Because the local server lacks cross-origin protections (CSRF), any malicious website a developer visits can silently send crafted requests to localhost and execute arbitrary code on that machine with the privileges of the development server process. Only developers actively running the local NestJS development server with this dev-only package enabled are affected; production applications are not exposed unless the dev server is running. A public proof-of-concept and the vendor advisory (GHSA-85cg-cmq5-qjm7) are available; exploitation is not yet confirmed in the wild, but EPSS assigns a high 49.2% probability of exploitation within 30 days.
What to do: Upgrade @nestjs/devtools-integration to version 0.2.1 or later. Until upgraded, disable the Devtools integration or avoid browsing untrusted websites while the local development server is running, and audit which developer machines have the integration enabled. Because the attack is a drive-by browser request to localhost, treat any workstation that ran the vulnerable dev server with Devtools enabled as potentially compromised and review for suspicious processes or changes.
| nestjs devtools-integration | 0.2.0 and earlier (fixed in 0.2.1) |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Nest is a framework for building scalable Node.js server-side applications. In versions 0.2.0 and below, a critical Remote Code Execution (RCE) vulnerability was discovered in the @nestjs/devtools-integration package. When enabled, the package exposes a local development HTTP server with an API endpoint that uses an unsafe JavaScript sandbox (safe-eval-like implementation). Due to improper sandboxing and missing cross-origin protections, any malicious website visited by a developer can execute arbitrary code on their local machine. The package adds HTTP endpoints to a locally running NestJS development server. One of these endpoints, /inspector/graph/interact, accepts JSON input containing a code field and executes the provided code in a Node.js vm.runInNewContext sandbox. This is fixed in version 0.2.1.
- Vendors
- nestjs
- Products
- devtools-integration
- Weakness
- CWE-77, CWE-78, CWE-352
- Vector
- CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X