@nestjs/devtools-integration's CSRF to Sandbox Escape Allows for RCE against JS Developers
Key facts
- Attack vector
- Adjacent network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Tampering, Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-352 and CWE-77.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nestjs | nest | before 0.2.1 | 0.2.1 | Patch available | CNA |
| — | @nestjs/devtools-integration (npm) | before 0.2.1 | 0.2.1 | Patch available | GHSA-85cg-cmq5-qjm7 |
- nest Vendornestjs Affected before 0.2.1 Fixed in 0.2.1 Patch available CNA
- @nestjs/devtools-integration (npm) Vendor— Affected before 0.2.1 Fixed in 0.2.1 Patch available GHSA-85cg-cmq5-qjm7
Remediation
- Fix · CNA nest (nestjs) Fixed in 0.2.1
- Fix · GHSA-85cg-cmq5-qjm7 @nestjs/devtools-integration (npm) Fixed in 0.2.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-54782
- 2026-10-03 Alias added: GHSA-85cg-cmq5-qjm7
References
Exploit 3
Sources
- CVE-2025-54782 · CVE Program
- CVE-2025-54782 · NVD
- FIRST EPSS
- GHSA-85cg-cmq5-qjm7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences