Skip to content
HighVulnerabilityLLM-specific

CVE-2026-57137: PraisonAI approval callback runs tools before rejection in createAgentLoop

Identifier
CVE-2026-57137
Published
Record updated
View JSON
Affected
  • praisonai >= 1.4.0, <= 1.7.1
Fixed in
1.7.2

Summary

From PraisonAI 1.4.0 until 1.7.2, createAgentLoop() in src/praisonai-ts/src/ai/agent-loop.ts passes executable tools to generateText() before calling the onToolCall approval callback. Because the AI SDK runs tool handlers during generation, a callback returning false records tool_rejected only after the denied tool has already had side effects, so applications using onToolCall as an approval boundary can still execute rejected file, command, API, or data-modifying operations.

Mitigation

Fixed in version 1.7.2.