CVE-2025-54782@nestjs/devtools-integration's CSRF to Sandbox Escape Allows for RCE against JS Developers
- 9.4CriticalCVSS base score
- 47.2%Exploitation in 30 daysEPSS · top 1.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
Description
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template for it. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits2
Nuclei templates1 template
- NestJS DevTools Integration - Remote Code Execution (Nuclei template) (opens in a new tab)
http/cves/2025/CVE-2025-54782.yamlSeverity critical
References tagged exploit1 reference
- https://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7 (opens in a new tab)x_refsource_CONFIRMexploit
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By GitHub_M
- 3 days later
· 3 days later
Published
- 3 days later
· 3 days later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 4.0 | Critical9.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 |
| NVDNVD · Analyzed | 4.0 | Critical9.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 |
- EPSS (exploitation in 30 days)
- 47.2% · top 1.1% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.4.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npm@nestjs/devtools-integrationGHSA-85cg-cmq5-qjm7 (opens in a new tab)
References
References5
- https://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7 (opens in a new tab)x_refsource_CONFIRMexploit
- https://github.com/JLLeitschuh/nestjs-devtools-integration-rce-poc (opens in a new tab)x_refsource_MISC
- https://github.com/JLLeitschuh/nestjs-typescript-starter-w-devtools-integration (opens in a new tab)x_refsource_MISC
- https://nodejs.org/api/vm.html (opens in a new tab)x_refsource_MISC
- https://socket.dev/blog/nestjs-rce-vuln (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-23413 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-85cg-cmq5-qjm7 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-54782)Record last updated .