# CVE-2026-57137: PraisonAI AgentLoop onToolCall approval runs after tool execution

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-18T14:26:51.000Z
- Modified: 2026-09-15T14:45:28.563Z
- Also known as: GHSA-h2w2-v7j6-xqm4
- Weaknesses: CWE-693, CWE-862, CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- MervinPraison PraisonAI: >= 1.4.0, < 1.7.2
- praisonai (npm): from 1.4.0 before 1.7.2

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-h2w2-v7j6-xqm4> (exploit, web)
- <https://github.com/MervinPraison/PraisonAI/commit/6b4b59fbe71a74983626c7a0cf7e10c47cd004f9>
- <https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.62>
- <https://github.com/MervinPraison/PraisonAI> (package)

## Sources

- CVE List: [CVE-2026-57137](https://www.cve.org/CVERecord?id=CVE-2026-57137), CVE Terms of Use, modified 2026-09-15
- GitHub Advisory Database: [GHSA-h2w2-v7j6-xqm4](https://github.com/advisories/GHSA-h2w2-v7j6-xqm4), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-57137](https://nvd.nist.gov/vuln/detail/CVE-2026-57137), Public domain, modified 2026-09-15

---

Page: https://cve.day/CVE-2026-57137 · Whole record: https://cve.day/CVE-2026-57137.json · Rebuilt by cve.day 2026-11-25T22:59:38.498Z
