CVE-2025-54782: critical vulnerability in nestjs nest
@nestjs/devtools-integration's CSRF to Sandbox Escape Allows for RCE against JS Developers
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
Patch now. It exploitation observed by VulnCheck and has a working public exploit.
A development tool for NestJS runs unsafe code on developers' machines when they visit malicious websites. An attacker can execute arbitrary commands on a developer's computer by tricking them into visiting a crafted webpage while the tool is active.
The @nestjs/devtools-integration package exposes a local HTTP endpoint (/inspector/graph/interact) that executes user-supplied JavaScript in a weak sandbox (vm.runInNewContext) without CSRF protection. A malicious website can send cross-origin requests to execute arbitrary Node.js code in the developer's local environment, achieving RCE via the lack of origin validation and insufficient isolation.
In the same product, most dangerous first.