{
  "id": "CVE-2026-57137",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-57137",
  "published_at": "2026-09-15T10:20:45.686Z",
  "title": "PraisonAI AgentLoop onToolCall approval runs after tool execution",
  "vendor": "MervinPraison",
  "product": "PraisonAI",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-693",
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "MervinPraison",
        "product": "PraisonAI",
        "ranges": [
          "\u003e= 1.4.0, \u003c 1.7.2"
        ],
        "fixed_in": [
          "1.7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade PraisonAI to 1.7.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-h2w2-v7j6-xqm4"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/MervinPraison/PraisonAI/commit/6b4b59fbe71a74983626c7a0cf7e10c47cd004f9"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.62"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
