{"id":"CVE-2025-54782","published":"2025-08-01T23:36:58Z","modified":"2025-08-04T15:23:30Z","title":"@nestjs/devtools-integration's CSRF to Sandbox Escape Allows for RCE against JS Developers","vendor":"nestjs","product":"nest","tier":"core","eol":null,"affectedVersions":[{"vendor":"nestjs","product":"nest","versions":["< 0.2.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-08-04T15:23:27.339034Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"A flaw in the @nestjs/devtools-integration package of the NestJS framework (nest) lets its local development HTTP server, which exposes an /inspector/graph/interact endpoint that runs submitted code in a Node.js vm.runInNewContext sandbox, be abused. An attacker can execute arbitrary code on a developer's machine by getting the developer to visit a malicious website while the devtools integration is enabled, since the sandbox is improperly isolated and cross-origin protections are missing, requiring no authentication or configuration beyond that.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:12:12Z"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03888,"percentile":0.90994,"date":"2026-11-25","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2025-08-18","exploitedFirstSeen":"2025-08-18","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2025-54782","date":"2025-08-18"},{"url":"https://app.crowdsec.net/cti/cve-explorer/CVE-2025-54782","date":"2025-08-25"},{"url":"https://cyble.com/blog/vulnerabilities-under-attack/","date":"2025-09-23"}],"evidenceTotal":3,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/JLLeitschuh/nestjs-devtools-integration-rce-poc","tags":["x_refsource_MISC"]},{"url":"https://github.com/JLLeitschuh/nestjs-typescript-starter-w-devtools-integration","tags":["x_refsource_MISC"]},{"url":"https://nodejs.org/api/vm.html","tags":["x_refsource_MISC"]},{"url":"https://socket.dev/blog/nestjs-rce-vuln","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"npm","package":"@nestjs/devtools-integration","vulnerableRanges":["<0.2.1"],"patched":["0.2.1"],"from":["GHSA-85cg-cmq5-qjm7"],"provenance":"source"}],"advisories":[{"id":"GHSA-85cg-cmq5-qjm7","url":"https://github.com/advisories/GHSA-85cg-cmq5-qjm7","severity":"CRITICAL","ecosystem":"npm","package":"@nestjs/devtools-integration","vulnerableRanges":["<0.2.1"],"patched":["0.2.1"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2025-23413","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-23413","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2025-10-22","earliestUrl":"https://github.com/vxaretra/CVE-2025-54782","repos":[{"name":"vxaretra/CVE-2025-54782","url":"https://github.com/vxaretra/CVE-2025-54782","stars":0,"created":"2025-10-22"},{"name":"DDestinys/CVE-2025-54782","url":"https://github.com/DDestinys/CVE-2025-54782","stars":0,"created":"2025-11-06"}]},"nuclei":[{"id":"CVE-2025-54782","name":"NestJS DevTools Integration - Remote Code Execution","severity":"critical","path":"http/cves/2025/CVE-2025-54782.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-54782.yaml"}],"first":{"date":"2025-10-22","source":"PoC-in-GitHub","url":"https://github.com/vxaretra/CVE-2025-54782"},"provenance":"source"},"exploitRefs":["https://github.com/JLLeitschuh/nestjs-devtools-integration-rce-poc"],"flow":[],"timeline":[{"date":"2025-08-01","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2025-54782","provenance":"source"},{"date":"2025-08-18","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2025-54782","provenance":"source"},{"date":"2025-10-22","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/vxaretra/CVE-2025-54782","provenance":"source"}],"speed":{"daysToPublicExploit":82,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":64.8,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 464 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":18.2,"detail":"percentile 0.9099"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD exploit link; 2 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":6.58,"detail":"base score 9.4"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}