{"cve":{"cve_id":"CVE-2025-54782","is_kev":false,"kev_date_added":null,"kev_vendor_project":null,"kev_product":null,"kev_vulnerability_name":null,"kev_short_description":null,"kev_required_action":null,"kev_due_date":null,"kev_known_ransomware":null,"kev_notes":null,"kev_cwes":null,"epss_score":0.4617,"epss_percentile":0.98654,"epss_as_of":"2026-06-23","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.","published_at":"2025-08-01T23:36:58.421000Z","last_modified_at":null,"cvss_v3_score":null,"cvss_v3_vector":null,"cvss_v3_severity":null,"cvss_v4_score":9.4,"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","cvss_v4_severity":"CRITICAL","ssvc_decision":null,"ssvc_exploitation":null,"ssvc_automatable":null,"ssvc_technical_impact":null,"cwes":["CWE-77","CWE-78","CWE-352"],"nvd_references":["https://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7","https://github.com/JLLeitschuh/nestjs-devtools-integration-rce-poc","https://github.com/JLLeitschuh/nestjs-typescript-starter-w-devtools-integration","https://nodejs.org/api/vm.html","https://socket.dev/blog/nestjs-rce-vuln"],"vuln_status":null,"trending_score":null,"is_trending":false,"has_trended":false,"trended_number_one":false,"trending_peak_score":null,"trending_peak_rank":null,"started_trending_at":null,"trended_number_one_at":null,"summary_generated":null,"summary_generated_at":null,"summary_model":null,"created_at":"2026-06-24T00:09:39.878444Z","updated_at":"2026-06-28T23:27:36.375920Z"},"effective_severity":"CRITICAL","badges":["poc"],"impact_analysis":[],"cvss_v3_decoded":{"version":null,"metrics":[]},"cvss_v4_decoded":{"version":"4.0","metrics":[{"metric":"AV","name":"Attack Vector","value":"A","value_label":"Adjacent"},{"metric":"AC","name":"Attack Complexity","value":"L","value_label":"Low"},{"metric":"AT","name":"Attack Requirements","value":"N","value_label":"None"},{"metric":"PR","name":"Privileges Required","value":"N","value_label":"None"},{"metric":"UI","name":"User Interaction","value":"N","value_label":"None"},{"metric":"VC","name":"Confidentiality (Vulnerable System)","value":"H","value_label":"High"},{"metric":"VI","name":"Integrity (Vulnerable System)","value":"H","value_label":"High"},{"metric":"VA","name":"Availability (Vulnerable System)","value":"H","value_label":"High"},{"metric":"SC","name":"Confidentiality (Subsequent System)","value":"H","value_label":"High"},{"metric":"SI","name":"Integrity (Subsequent System)","value":"H","value_label":"High"},{"metric":"SA","name":"Availability (Subsequent System)","value":"H","value_label":"High"}]},"affected":[{"vendor_slug":"nestjs","vendor_name":"nestjs","product_slug":"nest","product_name":"nest","version_start":"< 0.2.1","version_start_inclusive":true,"version_end":"< 0.2.1","version_end_inclusive":true,"cpe23_uri":"cve5:nestjs:nest:< 0.2.1:< 0.2.1"}],"exploit_refs":[{"source":"nuclei","kind":"nuclei","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-54782.yaml","title":"NestJS DevTools Integration - Remote Code Execution","author":"nukunga","disclosed_at":null}],"news":[],"references":[{"url":"https://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7","source_type":"VENDOR_ADVISORY","tags":["advisory"]},{"url":"https://github.com/JLLeitschuh/nestjs-devtools-integration-rce-poc","source_type":"MISC","tags":[]},{"url":"https://github.com/JLLeitschuh/nestjs-typescript-starter-w-devtools-integration","source_type":"MISC","tags":[]},{"url":"https://nodejs.org/api/vm.html","source_type":"MISC","tags":[]},{"url":"https://socket.dev/blog/nestjs-rce-vuln","source_type":"MISC","tags":[]}],"timeline":[{"type":"published","at":"2025-08-01T23:36:58.421000Z","label":"CVE published","source":null},{"type":"poc_available","at":"2026-06-24T00:29:48.638073Z","label":"Public PoC available","source":"nuclei"},{"type":"cvss_changed","at":"2026-06-28T17:47:49.389331Z","label":"CVSS score revised","source":"cvelistv5"},{"type":"cvss_changed","at":"2026-06-28T17:47:49.389331Z","label":"CVSS score revised","source":"cvelistv5"},{"type":"cvss_changed","at":"2026-06-28T17:47:49.389331Z","label":"CVSS score revised","source":"cvelistv5"}]}