# CVE-2025-54782: @nestjs/devtools-integration's CSRF to Sandbox Escape Allows for RCE against JS Developers

- Severity: Critical 9.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 47.2%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2025-08-01T18:43:13.000Z
- Modified: 2026-06-17T09:40:41.643Z
- Also known as: GHSA-85cg-cmq5-qjm7
- Weaknesses: CWE-77, CWE-78, CWE-352
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nestjs nest: < 0.2.1
- @nestjs/devtools-integration (npm): before 0.2.1
- nestjs devtools-integration: before 0.2.1

## Every score

- GitHub_M: CVSS:4.0 9.4 Critical `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`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/nestjs/nest/security/advisories/GHSA-85cg-cmq5-qjm7> (exploit, vendor-advisory, web)
- <https://github.com/JLLeitschuh/nestjs-devtools-integration-rce-poc> (exploit, web)
- <https://socket.dev/blog/nestjs-rce-vuln> (exploit, third-party-advisory, web)
- <https://github.com/JLLeitschuh/nestjs-typescript-starter-w-devtools-integration> (product, web)
- <https://nodejs.org/api/vm.html> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54782> (advisory)
- <https://github.com/nestjs/nest> (package)
- <https://jlleitschuh.org/nestjs-devtools-integration-rce-poc> (web)

## Sources

- CVE List: [CVE-2025-54782](https://www.cve.org/CVERecord?id=CVE-2025-54782), CVE Terms of Use, modified 2025-08-04
- GitHub Advisory Database: [GHSA-85cg-cmq5-qjm7](https://github.com/advisories/GHSA-85cg-cmq5-qjm7), CC-BY-4.0, modified 2025-08-04
- NVD: [CVE-2025-54782](https://nvd.nist.gov/vuln/detail/CVE-2025-54782), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54782 · Whole record: https://cve.day/CVE-2025-54782.json · Rebuilt by cve.day 2026-11-25T22:59:01.988Z
