CVE-2025-54782 in the critical feed json
@nestjs/devtools-integration's CSRF to Sandbox Escape Allows for RCE against JS Developers
published last yr. modified 4mo ago also EUVD-2025-23413 , GHSA-85cg-cmq5-qjm7
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 47.2%
- EPSS 47.2% chance of exploitation in 30 days, percentile 98%
- public exploits
- 0
- none known, plus a Nuclei check
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.
Patch / fix
- npm @nestjs/devtools-integration 0.2.1
- nestjs devtools-integration 0.2.1
Is CVE-2025-54782 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
47.19% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- Nuclei template NestJS DevTools Integration - Remote Code Execution nuclei detection template
- github.com https://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/JLLeitschuh/nestjs-devtools-integration-rce-poc referenced PoC, tagged "exploit" by a source, unverified
- socket.dev https://socket.dev/blog/nestjs-rce-vuln referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 9.4 | 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 |
| CNA | 4.0 | 9.4 | 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 |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @nestjs/devtools-integration | <0.2.1 |
0.2.1 |
Affected products
- nestjs nest
Classification
References
-
github.com
/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7
exploit, web, vendor-advisory
-
github.com
/JLLeitschuh/nestjs-devtools-integration-rce-poc
web, exploit
-
socket.dev
/blog/nestjs-rce-vuln
web, exploit, third-party-advisory
-
github.com
/JLLeitschuh/nestjs-typescript-starter-w-devtools-integration
web, product
-
nodejs.org
/api/vm.html
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2025-54782
advisory
-
github.com
/nestjs/nest
package
-
jlleitschuh.org
/nestjs-devtools-integration-rce-poc
web
Sources
- CVE List CVE-2025-54782
- GitHub Advisory GHSA-85cg-cmq5-qjm7
- NVD CVE-2025-54782
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.