CVE-2025-54782
HIGH EXPLOITED NUCLEInestjs/devtools-integration < 0.2.1 - Remote Code Execution via Unsafe JavaScript Sandbox
Title source: llmExploitation Summary
CVE-2025-54782 has been observed exploited in the wild (reported by VulnCheck KEV). EIP tracks 4 public exploits from researchers including iSee857, adminlove520, DDestinys. A Nuclei detection template is also available.
AI-analyzed exploit summary The repository contains a functional exploit PoC for CVE-2026-22812, demonstrating remote command execution (RCE) in OpenCode. The script sends a crafted JSON payload to the target's session endpoint, then executes the 'id' command via the shell endpoint, verifying RCE by checking for 'uid=' and 'gid=' in the response.
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.
Exploits (4)
The repository contains a functional exploit PoC for CVE-2026-22812, demonstrating remote command execution (RCE) in OpenCode. The script sends a crafted JSON payload to the target's session endpoint, then executes the 'id' command via the shell endpoint, verifying RCE by checking for 'uid=' and 'gid=' in the response.
The repository contains a scanner for CVE-2024-21762, which checks for the presence of the vulnerability in Fortinet SSL VPN interfaces. It includes Python scripts that send crafted HTTP requests to detect if a target is vulnerable.
This Python script exploits a remote code execution (RCE) vulnerability in a web application by sending a crafted POST request to the '/inspector/graph/interact' endpoint. The exploit leverages a JavaScript payload to execute arbitrary commands via Node.js's child_process module.
The repository contains a basic NestJS starter project with no exploit code or technical details related to CVE-2025-54782. The POCWebpage/server.js file is truncated and incomplete, offering no functional exploit.
Nuclei Templates (1)
devtools.nestjs.com
References (5)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H