CVE-2025-54782: Nest - Remote Code Execution
- Cve: CVE-2025-54782
- Name: Nest - Remote Code Execution
- 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.
- Impact: Malicious websites can execute arbitrary code on a developer's local machine, leading to full system compromise.
- Remediation: Update to version 0.2.1 or later.
- Vulnerability type: remote_code_execution
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Developer must visit a malicious website while running the vulnerable devtools integration
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.47188
- Epss percentile: 0.98856
- Assignee: [email protected]
- Published at: 2025-08-02T00:15:25Z
- Age in days: 479
- Modified at: 2026-06-17T09:40:41Z
- Patch available: yes
- Public exploits total: 9
- References total: 10
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-54782
- Nvd status: analyzed
- Checked, none or zero: public exploits capped, rejected by nvd
Cwe
| Id | Name |
|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| vulncheck | 2025-08-18 | — | no |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2025-54782 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-54782.yaml |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/JLLeitschuh/nestjs-devtools-integration-rce-poc | nvd | 2025-08-02 |
| https://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7 | nvd | 2025-08-02 |
| https://socket.dev/blog/nestjs-rce-vuln | nvd | 2025-08-02 |
| https://github.com/DDestinys/CVE-2025-54782 | poc-in-github | 2025-11-06 |
| https://github.com/DDestinys/CVE-2025-54782.git | vulncheck-xdb | 2025-11-06 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7 | nvd | Exploit, Vendor Advisory |
| https://github.com/JLLeitschuh/nestjs-devtools-integration-rce-poc | nvd | Exploit |
| https://socket.dev/blog/nestjs-rce-vuln | nvd | Exploit, Third Party Advisory |
| https://github.com/JLLeitschuh/nestjs-typescript-starter-w-devtools-integration | nvd | Product |
| https://nodejs.org/api/vm.html | nvd | Product |
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-54782.yaml | nuclei_template | Nuclei Template |
| https://api.vulncheck.com/v3/index/vulncheck-canaries?cve=CVE-2025-54782 | vulncheck | Vulncheck Reported Exploitation |
| https://cyble.com/blog/vulnerabilities-under-attack/ | vulncheck | Vulncheck Reported Exploitation |
| https://app.crowdsec.net/cti/cve-explorer/CVE-2025-54782 | vulncheck | Vulncheck Reported Exploitation |
| https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2025-54782 | vulncheck | Vulncheck Reported Exploitation |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| nestjs:devtools-integration | < 0.2.1 | no | nvd | /v1/products/nestjs/devtools-integration |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| nestjs/nest | package, security_advisory | yes | /v1/repositories/nestjs/nest |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Known exploited by: vulncheck
- Vulncheck known exploited since: 2025-08-18
- Public exploit: yes
- Public exploit count: 9
- Public exploit first date: 2025-07-25
- Remote: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, exploitation seen, initial access, authentication required
- Not known: known exploited since, initial access since, exposed hosts