PraisonAI flaws allowed auth bypass and second-order SQL injection
Vulnerability Disclosure · 6 sources · Updated 5mo ago · First seen Apr 4, 2026

PraisonAI, a multi-agent teams platform, disclosed two high-severity vulnerabilities affecting versions before 4.5.97 and 4.5.90. The more severe issue, tracked as CVE-2026-34953, stems from OAuthManager.validate_token() returning True for tokens missing from its internal store, which is empty by default. That logic flaw lets attackers present arbitrary Bearer tokens to authenticate to the MCP server and gain full access to registered tools and agent capabilities. The vulnerability was classified as CWE-863 with a CVSS v3.1 vector of AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
A second flaw, CVE-2026-34934, exposed PraisonAI to second-order SQL injection through get_all_user_threads. In affected versions before 4.5.90, the function constructed raw SQL queries with Python f-strings using unescaped thread IDs previously stored in the database, allowing an attacker to plant a malicious thread ID via update_thread and trigger injection when thread lists were loaded. The bug could lead to full database compromise and was classified as CWE-89 with a CVSS v3.1 vector of AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; both issues were addressed in patched releases published through GitHub Security Advisories.
Why it matters
Impact assessment
PraisonAI deployments are exposed to multiple high-severity flaws affecting authentication, gateway access, database handling, sandboxing, SSRF controls, and command execution paths. Organizations using PraisonAI or praisonai-agents in AI workflow, automation, or agent orchestration environments face risks ranging from unauthorized tool use and data exposure to full database compromise and host-level code execution.
The scope is broad for internet-reachable or internally exposed PraisonAI services because several flaws are network-accessible and require no privileges or user interaction. The provided references do not report confirmed exploitation in the wild, but the exploit conditions are straightforward enough to justify immediate investigation and patching.
Supporting facts
- Affected products:
- PraisonAI before 4.5.97: CVE-2026-34953, CVE-2026-34952
- PraisonAI before 4.5.90: CVE-2026-34934
- PraisonAI 4.5.15 through 4.5.68: CVE-2026-34935
- praisonai-agents before 1.5.90: CVE-2026-34938
- praisonaiagents before 1.5.95: CVE-2026-34954
- Business impact:
- Unauthorized access to MCP server tools and agent capabilities via auth bypass
- Unauthorized agent enumeration and message delivery via exposed Gateway endpoints
- Full database compromise via second-order SQL injection
- Arbitrary OS command execution on the host via sandbox bypass or command injection
- Internal service and cloud metadata exposure via SSRF
- Severity indicators:
- CVE-2026-34934: high impact to confidentiality, integrity, and availability
- CVE-2026-34935: high impact to confidentiality, integrity, and availability
- CVE-2026-34938: high impact to confidentiality, integrity, and availability
- CVE-2026-34953 and CVE-2026-34952: high impact to confidentiality and integrity
- CVE-2026-34954: high confidentiality impact with changed scope
- Exploitation status:
- No confirmed in-the-wild exploitation stated in the references


