Arbitrary code execution via cross-origin sandbox escape
Published Aug 1, 2025 · Updated Aug 4, 2025
Remote code execution in NestJS @nestjs/devtools-integration 0.2.0 and earlier allows remote attackers to execute arbitrary code. The /inspector/graph/interact handler accepts a cross-origin text/plain POST, parses its code field, and passes it to vm.runInNewContext, whose sandbox can be escaped. Exploitation requires the integration to be enabled and a developer to visit an attacker-controlled webpage; code then runs with the developer process's privileges.
Summary
What happened
Remote code execution in NestJS @nestjs/devtools-integration 0.2.0 and earlier allows remote attackers to execute arbitrary code. The /inspector/graph/interact handler accepts a cross-origin text/plain POST, parses its code field, and passes it to vm.runInNewContext, whose sandbox can be escaped. Exploitation requires the integration to be enabled and a developer to visit an attacker-controlled webpage; code then runs with the developer process's privileges.
The record
- CVE
- CVE-2025-54782
- Published
- Aug 1, 2025
- Updated
- Aug 4, 2025
- Vendor
- NestJS
- Product
- Nest
- Classifications
- CWE-352, CWE-77, CWE-78, T1189, T1203
- Attack vector
- adjacent
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 1, 2025CVE publishedPublication date reported by the CVE source.
- Aug 4, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 0.2.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- nestjs-devtools-integration-rce-pocfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo