{
  "id": "CVE-2025-54782",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-54782",
  "published_at": "2025-08-01T23:36:58.421Z",
  "title": "@nestjs/devtools-integration's CSRF to Sandbox Escape Allows for RCE against JS Developers",
  "vendor": "nestjs",
  "product": "nest",
  "cvss": {
    "score": 9.4,
    "source": "cna",
    "vector": "CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-08-03T09:47:37Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 1.4,
    "source": "nuclei",
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-54782.yaml"
  },
  "poc_repo_count": 3,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-77",
  "cpes": [
    "cpe:2.3:a:nestjs:devtools-integration:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.4,
    "nvd": 8.8
  },
  "repos": [
    {
      "repo": "nitrixog/CVE-2025-54782",
      "url": "https://github.com/nitrixog/CVE-2025-54782",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:44:13.198Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "JLLeitschuh/nestjs-devtools-integration-rce-poc",
      "url": "https://github.com/JLLeitschuh/nestjs-devtools-integration-rce-poc",
      "created_at": "2025-07-25T19:50:31Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2012-01-12T04:25:37Z"
    },
    {
      "repo": "vxaretra/CVE-2025-54782",
      "url": "https://github.com/vxaretra/CVE-2025-54782",
      "created_at": "2025-10-22T09:48:04Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-09-03T06:57:46Z"
    },
    {
      "repo": "DDestinys/CVE-2025-54782",
      "url": "https://github.com/DDestinys/CVE-2025-54782",
      "created_at": "2025-11-06T06:46:56Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-10-29T06:05:22Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "nestjs",
        "product": "nest",
        "ranges": [
          "\u003c 0.2.1"
        ],
        "fixed_in": [
          "0.2.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade nest to 0.2.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-54782.yaml",
      "source": "nuclei",
      "title": "nuclei template: NestJS DevTools Integration - Remote Code Execution",
      "published_at": "2025-08-03T09:47:37Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/inspector/graph/interact",
      "content_type": "application/json",
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...Content-Type: application/json. body markers included separately.  .  .  .  .  .  . ."
      ],
      "protocol": "http",
      "repos": [
        "DDestinys/CVE-2025-54782"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "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"
      ]
    }
  ],
  "rules": []
}
