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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.51% (percentile 36, 2026-11-26)
- **CWE:** CWE-693, CWE-862, CWE-863
- **Aliases:** GHSA-h2w2-v7j6-xqm4
- **Published:** 2026-06-18T14:26:51.000Z
- **Modified:** 2026-09-15T14:45:28.563Z

## Who should check

- Projects that depend on npm package praisonai (\>= 1.4.0, \< 1.7.2)
- Anyone running MervinPraison PraisonAI \>= 1.4.0, \< 1.7.2

## 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.

## Affected and fixed versions

- npm `praisonai`: affected \>= 1.4.0, \< 1.7.2; fixed 1.7.2 (osv)
- MervinPraison PraisonAI: \>= 1.4.0, \< 1.7.2 (cvelist)

## Mitigation

- Upgrade praisonai to 1.7.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-57137. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-57137.md
Affected: praisonai >= 1.4.0, < 1.7.2
Fixed in: 1.7.2

Steps:
1. Search this machine and project for praisonai (npm), MervinPraison PraisonAI: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-57137 being exploited?

There is no confirmed exploitation: CVE-2026-57137 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.51% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-57137?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-57137?

praisonai \>= 1.4.0, \< 1.7.2.

### Is there a fix for CVE-2026-57137?

Yes. Fixed in 1.7.2. Upgrade praisonai to 1.7.2 or later.

### How do I check if I'm affected by CVE-2026-57137?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-h2w2-v7j6-xqm4>
- patch: <https://github.com/MervinPraison/PraisonAI/commit/6b4b59fbe71a74983626c7a0cf7e10c47cd004f9>
- other: <https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.62>
- other: <https://github.com/MervinPraison/PraisonAI>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-57137>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-h2w2-v7j6-xqm4> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-57137> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-57137>
