{"cve":"CVE-2025-54782","nvd":{"published":"2025-08-02T00:15:25.953","modified":"2026-06-17T09:40:41.643","status":"Analyzed","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.","cvss_v4":{"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","score":9.4},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-77","CWE-78","CWE-352"],"references":["https://github.com/JLLeitschuh/nestjs-devtools-integration-rce-poc","https://github.com/JLLeitschuh/nestjs-typescript-starter-w-devtools-integration","https://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7","https://nodejs.org/api/vm.html","https://socket.dev/blog/nestjs-rce-vuln"],"products":["nestjs:devtools-integration"],"source":"nvd","synced_at":"2026-10-19T22:05:46.678065081+00:00"},"epss":{"cve":"CVE-2025-54782","score":0.53307,"percentile":0.98985,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-85cg-cmq5-qjm7","url":"https://osv.dev/vulnerability/GHSA-85cg-cmq5-qjm7","summary":"@nestjs/devtools-integration: CSRF to Sandbox Escape Allows for RCE against JS Developers","modified":"2025-08-04T15:28:48Z","packages":[{"ecosystem":"npm","name":"@nestjs/devtools-integration","purl":"pkg:npm/%40nestjs/devtools-integration","ranges":["<0.2.1"],"fixed":["0.2.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}