Security Resilience

CVE-2026-40149

Praisonai ≤ 4.5.128

Public PoC
Published
09 April 2026
Modified
26 October 2026
Patch / advisory
CVSS Score v3.1 7.9
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N
EPSS Score 0.0017 4th percentile
Risk Priority 55 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-40149 is a high-severity Declaration of Catch for Generic Exception (CWE-396) vulnerability in Praisonai. Its CVSS base score is 7.9 (High).

Operationally, ranked at the 4th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-15 (Development Process, Standards, and Tools) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-40149 is a vulnerability in PraisonAI, a multi-agent teams system, affecting versions prior to 4.5.128. The issue lies in the gateway's /api/approval/allow-list endpoint, which permits unauthenticated modification of the tool approval allowlist when no auth_token is configured, which is the default setting. This CWE-396 flaw enables attackers to add dangerous tool names, such as shell_exec or file_write, to the allowlist, causing the ExecApprovalManager to auto-approve future agent invocations of those tools and bypassing the human-in-the-loop safety mechanism. The vulnerability has a CVSS v3.1 base score of 7.9 (AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N).

A local attacker with no privileges required can exploit this low-complexity vulnerability without user interaction. By sending an unauthenticated request to the endpoint, the attacker modifies the allowlist to include high-risk tools, enabling subsequent agent executions to run those tools automatically without human approval. This grants the attacker high integrity impact, such as arbitrary file writes or shell command execution via agents, along with low confidentiality impact in a changed scope.

The GitHub Security Advisory at https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-4wr3-f4p3-5wjh details the fix in PraisonAI version 4.5.128, which addresses the unauthenticated modification issue. Security practitioners should upgrade to 4.5.128 or later and configure an auth_token on the gateway endpoint to mitigate exploitation.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

PraisonAI is a multi-agent teams system. Prior to 4.5.128, the gateway's /api/approval/allow-list endpoint permits unauthenticated modification of the tool approval allowlist when no auth_token is configured (the default). By adding dangerous tool names (e.g., shell_exec, file_write) to the allowlist, an…

more

attacker can cause the ExecApprovalManager to auto-approve all future agent invocations of those tools, bypassing the human-in-the-loop safety mechanism that the approval system is specifically designed to enforce. This vulnerability is fixed in 4.5.128.

CWE(s)

Related Threats

CVEs Like This One

CVE-2026-40113Same product: Praison Praisonai
CVE-2026-39890Same product: Praison Praisonai
CVE-2026-40151Same product: Praison Praisonai
CVE-2026-40157Same product: Praison Praisonai
CVE-2026-39307Same product: Praison Praisonai
CVE-2026-39308Same product: Praison Praisonai
CVE-2026-40114Same product: Praison Praisonai
CVE-2026-39889Same product: Praison Praisonai
CVE-2026-39305Same product: Praison Praisonai
CVE-2026-34955Same product: Praison Praisonai

Affected Assets

praison
praisonai
≤ 4.5.128

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation (including static analysis and code review) directly finds declarations of overly generic catch blocks.

Requiring documented development standards and tools can mandate specific exception-handling rules that prohibit generic catches.

Security engineering principles include explicit requirements for precise, least-privilege exception handling rather than broad catches.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly enforce specific exception handling as part of coding standards, though the control addresses the full development lifecycle beyond this single weakness.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development can detect generic catch blocks, but does not guarantee their removal.

prevents

Training developers on secure coding practices can reduce instances of catching overly broad exceptions, but the practice is fallible and the pattern is often introduced for code-clarity reasons that training does not reliably reach.

prevents

Secure coding standards explicitly prohibit overly broad exception handlers that mask errors and create exploitable paths.

prevents

A.8.30 carries its effect through the secure-coding practices (8.25–8.29) its contract requires of the supplier, which reduces ordinary implementation-phase code-quality weaknesses like over-broad catch blocks, but the practice is fallible and the clause sits at its declared ceiling of `partial`.

References