CrowdSec
10/10CrowdSec Score

Nest - RCE (CVE-2025-54782)

Published on01-08-2025
First seen on25-08-2025
CVSS 9.4/10nestjs - Nest

40Exploiting IPs reported

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.

CrowdSec analysis

CVE-2025-54782 is a critical remote code execution vulnerability in the @nestjs/devtools-integration package for NestJS, affecting versions 0.2.0 and below. This flaw allows any malicious website visited by a developer to execute arbitrary code on their local machine via an unsafe API endpoint exposed by the development server, due to improper sandboxing and missing cross-origin protections. Attackers can exploit this vulnerability to fully compromise the affected system, making it a significant risk for developers using vulnerable versions.

CrowdSec has been tracking this vulnerability and its exploits since 13th of August 2025.

Insights from the CrowdSec network reveal that the attackers trying to exploit CVE-2025-54782 are composed of a fairly even mix of opportunistic and targeted actors. Some attackers employ preliminary reconnaissance, while others use indiscriminate scanning. Additionally, according to week-over-week analysis by CrowdSec, exploitation of CVE-2025-54782 is surging. Attack volumes are spiking well above historical norms, indicating widespread and escalating interest from threat actors. CVE-2025-54782 is currently experiencing high visibility and active exploitation across the internet.

Attackers exploit the /inspector/graph/interact endpoint by sending JSON payloads containing malicious JavaScript code in the code field, enabling remote code execution on vulnerable NestJS development servers. This endpoint is exposed by the @nestjs/devtools-integration package when running in development mode.

Exploitation

Get real-time information about exploitation attempts and actors involved.

Detected IPs

Discover the IPs that targeted this vulnerability across the CrowdSec Network.

Protection

Find out relevant information to protect your stack against this CVE.

Blocklist

With our advanced worldwide network detection, CrowdSec can provide a list of IPs known for exploiting the vulnerability.

To increase your protection against this CVE, block exploitation attempts with this list of identified actors.