PoC Monitor
← All CVEs
CVE-2025-54782published 1 Aug 2025 23:36 UTCData: JSON · API

Nestjs nest

@nestjs/devtools-integration's CSRF to Sandbox Escape Allows for RCE against JS Developers

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.

First public PoC 1.4 daysafter publication · 3 Aug 2025 · nuclei template
Public PoCs43 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS9.4critical · scored by CNA · CWE-77
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

nestjs nest
  • < 0.2.1

Fixed in 0.2.1

Mitigation

Upgrade nest to 0.2.1 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published1 Aug 2025 · t = 0First public PoC3 Aug 2025 · t+1.4d

First public PoC 1.4 days after publication; not in CISA KEV. First PoC: nuclei template: NestJS DevTools Integration - Remote Code Execution (nuclei template, 3 Aug 2025).

PoC repositories

Found on GitHub.

3 PoCs · 1 pending

PoCs 3
RepositoryCreatedStarsAssessment
JLLeitschuh/nestjs-devtools-integration-rce-poc 25 Jul 2025 −7.2 d 1 PoC older repo: PoC date unknown, not used for the first PoC
vxaretra/CVE-2025-54782 22 Oct 2025 +81 d 0 PoC
DDestinys/CVE-2025-54782 6 Nov 2025 +96 d 0 PoC
Pending 1
RepositoryCreatedStarsAssessment
nitrixog/CVE-2025-54782 unknown 0 Pending · repository unavailable (HTTP 404)

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.
SourceTitlePublishedFound by us
nuclei templatenuclei template: NestJS DevTools Integration - Remote Code Execution3 Aug 202514 Nov 2026

PoC characteristics

What to hunt for in your logs · from 3 PoC repos

POST /inspector/graph/interact

Content-Type
application/json
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...Content-Type: application/json. body markers included separately. . . . . . . .
Seen in
1 repo: DDestinys/CVE-2025-54782
Evidence
DDestinys/CVE-2025-54782/CVE-2025-54782.py:29 DDestinys/CVE-2025-54782/CVE-2025-54782.py:17 DDestinys/CVE-2025-54782/CVE-2025-54782.py:33

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

POST /inspector/graph/interact
(?i)^/inspector/graph/interact(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /inspector/graph/interact
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-54782 nestjs nest exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/inspector/graph/interact"; reference:url,poc.griffinguard.io/cve/CVE-2025-54782; classtype:web-application-attack; sid:9236402; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

POST /inspector/graph/interact
title: nestjs nest exploit attempt (CVE-2025-54782)
id: gg-pocmon-cve-2025-54782-9236402
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-54782. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2025-54782
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/inspector/graph/interact'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2025.54782