CVE-2026-57137
Published:July 20, 2026
Updated:August 27, 2026
The published npm package "praisonai" exports "createAgentLoop()", whose "onToolCall" callback is documented and exampled as an approval hook. The implementation calls PraisonAI's "generateText()" wrapper with the caller's executable tools first, receives "toolResults", and only then calls "onToolCall()". Because AI SDK "generateText()" executes tools with an "execute" function as part of the generation call, "onToolCall" can deny a tool only after the sensitive side effect has already happened. PraisonAI then returns "finishReason: "tool_rejected"", which is a false security signal: the rejected tool already ran. The PoV is deterministic and local-only. It uses mock AI SDK modules, no live model call, no API key, and no network target. The tool increments an in-memory counter rather than touching the filesystem or executing commands.
Affected Packages
praisonai (NPM):
Affected version(s) >=1.4.0 <1.7.2Fix Suggestion:
Update to version 1.7.2Related Resources (2)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH