CVE-2025-54782 in Nestjs Devtools-Integration
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...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Nestjs | Devtools-Integration | < 0.2.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-54782 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-037327-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2025-08-02 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-77: Command Injection
Attacker injects operating system commands through application inputs passed to a shell or system call.
CWE-78: OS Command Injection
Attacker injects OS commands through application inputs passed to system() or equivalent calls, leading to arbitrary command execution.
CWE-352: Cross-Site Request Forgery (CSRF)
Web application does not verify that a request was intentionally sent by the authenticated user.
Related attack patterns (CAPEC)
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-77, CWE-78
CAPEC-76 Manipulating Web Input to File System Calls via CWE-77
CAPEC-108 Command Line Execution through SQL Injection via CWE-78
CAPEC-462 Cross-Domain Search Timing via CWE-352
CAPEC-467 Cross Site Identification via CWE-352
Show all 15
CAPEC-6 Argument Injection via CWE-78
CAPEC-15 Command Delimiters via CWE-77, CWE-78
CAPEC-40 Manipulating Writeable Terminal Devices via CWE-77
CAPEC-62 Cross Site Request Forgery via CWE-352
CAPEC-75 Manipulating Writeable Configuration Files via CWE-77
CAPEC-88 OS Command Injection via CWE-78
CAPEC-111 JSON Hijacking (aka JavaScript Hijacking) via CWE-352
CAPEC-136 LDAP Injection via CWE-77
CAPEC-183 IMAP/SMTP Command Injection via CWE-77
CAPEC-248 Command Injection via CWE-77
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A critical Remote Code Execution (RCE) vulnerability exists in the @nestjs/devtools-integration package of Nest framework versions 0.2.0 and below. The vulnerability arises from an unsafe JavaScript sandbox implementation in a local development HTTP server API endpoint.
An attacker with access to the local development environment where the vulnerable Nest application is running could exploit this vulnerability to execute arbitrary code on the server. This could lead to unauthorized access, data theft, or system compromise.
Questions
What is CVE-2025-54782?
A critical Remote Code Execution (RCE) vulnerability exists in the @nestjs/devtools-integration package of Nest framework versions 0.2.0 and below. The vulnerability arises from an unsafe JavaScript sandbox implementation in a local development HTTP server API endpoint.
What is the CVSS score for CVE-2025-54782?
CVE-2025-54782 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 3.9%.
Is CVE-2025-54782 actively exploited?
No confirmed active exploitation of CVE-2025-54782 as of 2026-09-25.
How do I remediate CVE-2025-54782?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2025-54782?
CVE-2025-54782 affects Nestjs Devtools-Integration.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Nestjs","product":"Devtools-Integration","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.