{"id":"CVE-2026-56838","summary":"PraisonAI recipe.run_stream skips dangerous-tool policy enforcement","details":"PraisonAI is a multi-agent teams system. From version 4.5.87 to before version 4.6.59, PraisonAI recipe execution blocks default-denied dangerous tools unless the caller explicitly passes allow_dangerous_tools=True. The normal recipe.run() path enforces this with _check_tool_policy(). The streaming path, recipe.run_stream(), loads the same recipe, checks dependencies, and then calls _execute_recipe() without running the dangerous-tool policy check. As a result, a recipe that honestly declares execute_command in TEMPLATE.yaml requires.tools is denied by recipe.run(), but reaches the execution engine through recipe.run_stream() with allow_dangerous_tools=False. This issue has been patched in version 4.6.59.","aliases":["GHSA-v847-hxxw-3pxg","PYSEC-2026-3520"],"modified":"2026-10-31T02:30:55.367040063Z","published":"2026-10-23T11:58:01.475Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56838.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-693","CWE-78","CWE-863"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56838.json"},{"type":"ADVISORY","url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-v847-hxxw-3pxg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56838"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mervinpraison/praisonai","events":[{"introduced":"1260ede0880c125436accac69cc12903e0b4b301"},{"fixed":"f834d4244823481244f97ebc44b06ab59cc0079a"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"4.5.87"},{"fixed":"4.6.59"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"introduced":"0"},{"fixed":"4.6.59"}],"source":"DESCRIPTION"}]}}],"versions":["v4.6.58","v4.6.57","v4.6.56","v4.6.55","v4.6.54","v4.6.53","v4.6.52","v4.6.51","v4.6.50","v4.6.48","v4.6.47","v4.6.46","v4.6.45","v4.6.44","v4.6.43","v4.6.42","v4.6.41","v4.6.40","v4.6.39","v4.6.38","v4.6.37","v4.6.36","v4.6.35","v4.6.34","v4.6.33","v4.6.32","v4.6.31","v4.6.30","v4.6.29","v4.6.28","v4.6.27","v4.6.26","v4.6.25","v4.6.24","v4.6.23","v4.6.22","v4.6.21","v4.6.20","v4.6.19","v4.6.18","v4.6.16","v4.6.15","v4.6.14","v4.6.13","v4.6.12","v4.6.11","v4.6.10","v4.6.9","v4.5.149","v4.6.7","v4.6.6","v4.6.5","v4.6.4","v4.6.3","v4.6.2","v4.6.1","v4.5.148","v4.5.147","v4.5.146","v4.5.145","v4.5.144","v4.5.143","v4.5.140","v4.5.134","v4.5.133","v4.5.132","v4.5.131","v4.5.130","v4.5.129","v4.5.126","v4.5.128","v4.5.125","v4.5.124","v4.5.123","v4.5.122","v4.5.121","v4.5.120","v4.5.119","v4.5.118","v4.5.117","v4.5.115","v4.5.113","v4.5.112","v4.5.111","v4.5.110","v4.5.109","v4.5.108","v4.5.107","v4.5.106","v4.5.105","v4.5.104","v4.5.103","v4.5.102","v4.5.101","v4.5.100","v4.5.98","v4.5.96","v4.5.97","v4.5.95","v4.5.94","v4.5.93","v4.5.90","v4.5.88","v4.5.87"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-56838.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}