{"id":"CVE-2026-57137","published":"2026-09-15T10:20:45Z","modified":"2026-09-15T12:46:04Z","title":"PraisonAI AgentLoop onToolCall approval runs after tool execution","vendor":"MervinPraison","product":"PraisonAI","tier":"tail","description":{"text":"PraisonAI is a multi-agent teams system. From 1.4.0 until 1.7.2, createAgentLoop() in src/praisonai-ts/src/ai/agent-loop.ts passes executable tools to generateText() before invoking the onToolCall approval callback. Because the wrapped AI SDK executes tool handlers during generation, a callback that returns false records tool_rejected only after the denied tool has already produced side effects and populated toolResults. Applications using onToolCall as a human or policy approval boundary can therefore execute rejected file, command, API, or data-modifying operations. This issue is fixed in version 1.7.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00506,"percentile":0.36368,"provenance":"source"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"},{"id":"CWE-862","name":"Missing Authorization"},{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-h2w2-v7j6-xqm4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MervinPraison/PraisonAI/commit/6b4b59fbe71a74983626c7a0cf7e10c47cd004f9","tags":["x_refsource_MISC"]},{"url":"https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.62","tags":["x_refsource_MISC"]}],"priority":{"score":13.4,"factors":[{"name":"EPSS percentile","points":7.27},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"mervinpraison","affectedVersions":[{"vendor":"MervinPraison","product":"PraisonAI","versions":[">= 1.4.0, < 1.7.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-09-15T12:44:54.123919Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"praisonai","vulnerableRanges":[">=1.4.0, <1.7.2"],"patched":["1.7.2"],"from":["GHSA-h2w2-v7j6-xqm4"],"provenance":"source"}],"summary":{"text":"PraisonAI's AgentLoop in src/praisonai-ts/src/ai/agent-loop.ts, versions 1.4.0 through 1.7.2, passes executable tools to generateText() before the onToolCall approval callback runs, so a tool the callback rejects has already executed by the time the rejection is recorded. An attacker who can get an agent to request a tool call, with no further authentication or user interaction required, can cause rejected file, command, API, or data-modifying operations to run anyway in applications that rely on onToolCall as their approval boundary.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:34Z"},"euvd":{"id":"EUVD-2026-78422","exploited":false,"provenance":"source"}}