PRAISONAI · CVE-2026-34935 · AI agents & MCP
FIX → 4.5.69
PraisonAI passes the --mcp command-line argument straight into a process launcher with no validation, so anyone who can influence that argument can run arbitrary commands as the process user. No authentication is needed to trigger it.
first public Mar 31, 2026 · 2 sources
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Systems that run PraisonAI with the --mcp argument set from untrusted input, such as a web request, a config value an outsider can edit, or an external integration. Installations where the argument is fixed by the operator and never influenced by outside input are much less exposed, though the sources do not spell out this boundary in full.
Not affected if fixed-mcp-argument, no-untrusted-input, versions-outside-range
Who cares ai-agents, mcp, praisonai, pypi, python
pip show praisonai; affected versions are >= 4.5.15 and < 4.5.69.praisonai --mcp and see whether any part of that argument comes from user input or an external source.The --mcp CLI argument is passed directly to shlex.split() and forwarded through the call chain to anyio.open_process() with no validation, allowlist check, or sanitization at any hop, allowing arbitrary OS command execution as the process user.
cli/features/mcp.py:61 (source) -> praisonaiagents/mcp/mcp.py:345 (hop) -> mcp/client/stdio/__init__.py:253 (sink)
# source
parts = shlex.split(command)
# hop
cmd, args, env = self.parse_mcp_command(command, env_vars)
self.server_params = StdioServerParameters(command=cmd, args=arguments)
# sink
process = await anyio.open_process([command, *args])
Fixed in commit 47bff65413beaa3c21bf633c1fae4e684348368c (v4.5.69) by introducing a command allowlist:
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
Upgrade to 4.5.69
praisonai to 4.5.69 or later.ALLOWED_COMMANDS = {"npx", "uvx", "node", "python"}
if cmd not in ALLOWED_COMMANDS:
raise ValueError(f"Disallowed command: {cmd}")
# tested on: praisonai==4.5.48
# install: pip install praisonai==4.5.48
# run: praisonai --mcp "bash -c 'id > /tmp/pwned'"
# verify: cat /tmp/pwned
# expected output: uid=1000(...) gid=1000(...) groups=1000(...)
Any deployment where the --mcp argument is influenced by untrusted input is exposed to full OS command execution as the process user. No authentication is required.
This page as .md · .json · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub Advisory Database, CC-BY 4.0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.