Arbitrary Command Injection Affecting @nestjs/devtools-integration package, versions <0.2.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
4.24% (89th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NESTJSDEVTOOLSINTEGRATION-11417395
  • published3 Aug 2025
  • disclosed2 Aug 2025
  • creditJonathan Leitschuh

Introduced: 2 Aug 2025

NewCVE-2025-54782  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade @nestjs/devtools-integration to version 0.2.1 or higher.

Overview

@nestjs/devtools-integration is a Nest - modern, fast, powerful node.js web framework (@devtools-integration)

Affected versions of this package are vulnerable to Arbitrary Command Injection via the inspector/graph/interact endpoint, which accepts JSON input containing a code field and executes it in a Node.js vm.runInNewContext sandbox. An attacker can execute arbitrary code on the local machine by enticing a developer to visit a malicious website, which can then send crafted requests to the exposed local development server.

CVSS Base Scores

version 4.0
version 3.1