SecurityContext

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

IdName
CWE-77Improper Neutralization of Special Elements used in a Command

Known exploited entries

ListAdded dateDue dateRansomware use
vulncheck2025-08-18—no

Nuclei templates

IdUrl
CVE-2025-54782https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-54782.yaml

Hackerone

  • Reports: 1
  • Rank: 5211

Public exploits

UrlSourceAdded date
https://github.com/JLLeitschuh/nestjs-devtools-integration-rce-pocnvd2025-08-02
https://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7nvd2025-08-02
https://socket.dev/blog/nestjs-rce-vulnnvd2025-08-02
https://github.com/DDestinys/CVE-2025-54782poc-in-github2025-11-06
https://github.com/DDestinys/CVE-2025-54782.gitvulncheck-xdb2025-11-06

References

UrlSourceTags
https://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7nvdExploit, Vendor Advisory
https://github.com/JLLeitschuh/nestjs-devtools-integration-rce-pocnvdExploit
https://socket.dev/blog/nestjs-rce-vulnnvdExploit, Third Party Advisory
https://github.com/JLLeitschuh/nestjs-typescript-starter-w-devtools-integrationnvdProduct
https://nodejs.org/api/vm.htmlnvdProduct
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-54782.yamlnuclei_templateNuclei Template
https://api.vulncheck.com/v3/index/vulncheck-canaries?cve=CVE-2025-54782vulncheckVulncheck Reported Exploitation
https://cyble.com/blog/vulnerabilities-under-attack/vulncheckVulncheck Reported Exploitation
https://app.crowdsec.net/cti/cve-explorer/CVE-2025-54782vulncheckVulncheck Reported Exploitation
https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2025-54782vulncheckVulncheck Reported Exploitation

Products

ProductAffectedPlatform boundSourcesUrl
nestjs:devtools-integration< 0.2.1nonvd/v1/products/nestjs/devtools-integration

Projects

RepositoryLink kindsIndexedUrl
nestjs/nestpackage, security_advisoryyes/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

Nuclei template