CVE-2025-54782Command Injection
NVDCVSS scored by security-advisories@github.com
Vulnerability Summary
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.
CVSS v4.0 Base Metrics — Score 9.4 (CRITICAL)
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:XAttack VectorAdjacent
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)High
Integrity (Vulnerable System)High
Availability (Vulnerable System)High
Confidentiality (Subsequent System)High
Integrity (Subsequent System)High
Availability (Subsequent System)High
Affected & Patched Versions
Not provided by NVD for this CVE.
No patched version published yet
Until a fix ships, reduce exposure:
- Restrict access to the affected service or interface to trusted networks.
- Disable the affected feature if you do not need it.
- Watch the vendor advisory for a firmware or software update.
What to do
Prioritize this fix. Exploit code is public, so attacks can follow quickly.
- Check whether you run the affected product and which version.
- No patched version is listed yet. Limit access to the affected service to trusted networks, and disable the feature if you can.
- Subscribe to the vendor advisory so you learn when a fix ships.
- Review logs and exposed services for signs of earlier compromise.
Timeline
- Aug 2, 2025Published
- Aug 4, 2025Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get alerts for CVEs like this oneYou are reading CVE-2025-54782. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Exploithttps://github.com/JLLeitschuh/nestjs-devtools-integration-rce-poc
- Referencehttps://github.com/JLLeitschuh/nestjs-typescript-starter-w-devtools-integration
- Vendor Advisoryhttps://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7
- Referencehttps://nodejs.org/api/vm.html
- Referencehttps://socket.dev/blog/nestjs-rce-vuln
- Vendor Advisoryhttps://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7
Data last checked: Nov 28, 2026 03:17 UTC