{"answers":{"affected":"2 open source packages ship an affected version, including @nocobase/plugin-workflow-javascript. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34156 exists.","fix":"Upgrade @nocobase/plugin-workflow-javascript to 2.0.28 or later.","what":"CVE-2026-34156 is a critical code injection vulnerability in nocobase, published on 31 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-34156 and fix it if it is affected.\n\nWhat it is: CVE-2026-34156 is a critical code injection vulnerability in nocobase, published on 31 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34156 exists.\n\nAffected packages and fixed versions:\n- @nocobase/plugin-workflow-javascript (npm): affected all versions; fixed in 2.0.28\n- @nocobase/plugin-workflow-javascript (npm): affected all versions; fixed in 2.0.28\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-34156/ (Markdown: https://insights.sbomify.com/CVE-2026-34156/index.md)","id":"CVE-2026-34156","markdown":"https://insights.sbomify.com/CVE-2026-34156/index.md","name":"CVE-2026-34156","record":{"aliases":["GHSA-px3p-vgh9-m57c"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"NocoBase low-code platform","requires_auth":"low_privilege","summary":"Authenticated attackers can escape the JavaScript sandbox in NocoBase's workflow script node to execute arbitrary code with root privileges.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nocobase","vendor":"nocobase"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-913","name":"Improper Control of Dynamically-Managed Code Resources"}],"description":"NocoBase is an AI-powered no-code/low-code platform for building business applications and enterprise solutions. Prior to version 2.0.28, NocoBase's Workflow Script Node executes user-supplied JavaScript inside a Node.js vm sandbox with a custom require allowlist (controlled by WORKFLOW_SCRIPT_MODULES env var). However, the console object passed into the sandbox context exposes host-realm WritableWorkerStdio stream objects via console._stdout and console._stderr. An authenticated attacker can traverse the prototype chain to escape the sandbox and achieve Remote Code Execution as root. This issue has been patched in version 2.0.28.","ecosystems":["npm"],"exploits":{"exploitdb":1,"first_seen":"2026-04-03","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2026-04-03T12:04:06Z","kind":"github_poc","ref":"https://github.com/0xredash/CVE-2026-34156","stars":0,"title":"CVE-2026-34156"},{"date":"2026-05-07","kind":"exploitdb","ref":"52552","stars":null,"title":"NocoBase  2.0.27 - VM Sandbox Escape"},{"date":"2026-06-02T07:24:49Z","kind":"github_poc","ref":"https://github.com/Dhananjayasj/CVE-2026-34156-NocoBase-Sandbox-Escape-via-Workflow-Execution-Vulnerability-","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2026/CVE-2026-34156.yaml","stars":null,"title":"NocoBase - VM Sandbox Escape to Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"NocoBase Affected by Sandbox Escape to RCE via console._stdout Prototype Chain Traversal in Workflow Script Node","id":"CVE-2026-34156","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Coolify: Command injection via single-quote breakout in Docker Compose custom commands","id":"CVE-2026-34158"},"packages":[{"ecosystem":"npm","fixed":["2.0.28"],"introduced":["0"],"last_affected":[],"package":"@nocobase/plugin-workflow-javascript","purl":null,"source":"GHSA-px3p-vgh9-m57c"},{"ecosystem":"npm","fixed":["2.0.28"],"introduced":["0"],"last_affected":[],"package":"@nocobase/plugin-workflow-javascript","purl":"pkg:npm/%40nocobase/plugin-workflow-javascript","source":"GHSA-px3p-vgh9-m57c"}],"prev":{"headline":"RAUC: Improper Signing of Plain Bundles Exceeding 2 GiB","id":"CVE-2026-34155"},"products":["nocobase"],"published":"2026-03-31","related":[{"cvss_score":8.5,"headline":"NocoBase Has SQL Injection via template variable substitution in workflow SQL node","id":"CVE-2026-34825","kev_date_added":null,"published":"2026-04-02"},{"cvss_score":7.5,"headline":"NocoBase Vulnerable to SQL Injection via String Concatenation in Recursive Eager Loading","id":"CVE-2026-41640","kev_date_added":null,"published":"2026-05-07"},{"cvss_score":7.2,"headline":"NocoBase Vulnerable to SQL Validation Bypass via `sqlCollection:update` Missing `checkSQL` Call","id":"CVE-2026-41641","kev_date_added":null,"published":"2026-05-07"},{"cvss_score":6.4,"headline":"NocoBase has SSRF in Workflow HTTP Request and Custom Request Plugins","id":"CVE-2026-40346","kev_date_added":null,"published":"2026-04-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-02","vendors":["nocobase"]},"summary":"Authenticated attackers can escape the JavaScript sandbox in NocoBase's workflow script node to execute arbitrary code with root privileges.","url":"https://insights.sbomify.com/CVE-2026-34156/"}