# CVE-2026-57136: PraisonAI SandboxExecutor command allowlist bypass via shell chaining

Source: https://junglewise.ai/threats/cve-2026-57136-praisonai-sandboxexecutor-command-allowlist-bypass-via-shell  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-15. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-57136 · Severity: high · CVSS 8.8 · Published 2026-09-15

PraisonAI is a Node.js package that provides sandboxed command execution with allowlist controls, intended to safely run AI-generated shell commands. The vulnerability allows attackers to bypass the command allowlist by appending shell metacharacters (e.g., semicolons or pipes) after an allowed command, causing the shell to execute arbitrary unauthorized commands with the privileges of the PraisonAI process.

Technologies: [praisonai (npm)](https://junglewise.ai/threats/technologies/npm-praisonai). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-57136 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-57136 being exploited in the wild.

**How severe is CVE-2026-57136?** High severity, with a CVSS score of 8.8, published 15 September 2026.

**Which products and versions are affected?** praisonai (npm) SEMVER:introduced=1.2.3,fixed=1.7.2.

**Is there a fix for CVE-2026-57136?** Yes. praisonai (npm): upgrade to 1.7.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-57136 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-57136?** Check whether you run praisonai (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- praisonai (npm): upgrade to 1.7.2 or later

  ```sh
  npm install praisonai@1.7.2
  ```


## Technical details

The vulnerability is an authorization bypass in the CommandValidator and SandboxExecutor components. CommandValidator.validate() checks only the first whitespace-delimited token of a command string against the allowedCommands list, but SandboxExecutor.spawn() passes the entire unmodified command string to spawn('sh', ['-c', command]). This creates a mismatch: a command like "echo allowed; cat /tmp/marker" passes validation (because "echo" is allowlisted) but the shell interprets the entire string as a script, executing both echo and the non-allowlisted cat. The denylist blocks only specific patterns like "; rm" but does not reject shell metacharacters (;, &&, ||, backticks, $()) as a general boundary. An attacker with the ability to influence command strings sent to SandboxExecutor can inject arbitrary shell commands and execute them with the process's privileges. Patched versions (>= 1.7.2) reject shell metacharacters before execution.

## Affected products

- PraisonAI praisonai >=1.2.3, <=1.7.1

## Identifiers

- CVE-2026-57136
- GHSA-vjv9-7m7j-h833

## Timeline

- 2026-06-17: disclosed
- 2026-06-18: patched: Version 1.7.2 and later

## References

- [https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-vjv9-7m7j-h833](https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-vjv9-7m7j-h833)
- [https://github.com/MervinPraison/PraisonAI](https://github.com/MervinPraison/PraisonAI)

## Related threats

- [PraisonAI codeMode tool remote code execution via sandbox escape](https://junglewise.ai/threats/cve-2026-57141-praisonai-codemode-tool-remote-code-execution-via-sandbox-escape)
- [npm PraisonAI codeMode sandbox escape via Function constructor](https://junglewise.ai/threats/cve-2026-57138-npm-praisonai-codemode-sandbox-escape-via-function-constructor)
- [PraisonAI AgentLoop approval bypass via post-execution callback](https://junglewise.ai/threats/cve-2026-57137-praisonai-agentloop-approval-bypass-via-post-execution-callback)
- [PraisonAI SandboxExecutor network isolation bypass via non-proxy-aware clients](https://junglewise.ai/threats/cve-2026-57135-praisonai-sandboxexecutor-network-isolation-bypass-via-non-proxy)
- [npm PraisonAI MCPSecurity auth bypass in Basic/OAuth validation](https://junglewise.ai/threats/cve-2026-57134-npm-praisonai-mcpsecurity-auth-bypass-in-basic-oauth-validation)
