Skip to main content
Mallory
← Back to News
identity-authentication-vulnerabilityai-platform-securityinternet-facing-service-vulnerabilitywidely-deployed-product-advisory

PraisonAI flaws allowed auth bypass and second-order SQL injection

Vulnerability Disclosure · 6 sources · Updated 5mo ago · First seen Apr 4, 2026

PraisonAI flaws allowed auth bypass and second-order SQL injection

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
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

8 events · Apr 3, 2026
  1. Apr 3, 20268mo ago

    GitHub advisory discloses CVE-2026-34954 SSRF flaw

    A GitHub Security Advisory disclosed CVE-2026-34954 on April 3, 2026, describing a server-side request forgery vulnerability in FileTools.download_file() in praisonaiagents before version 1.5.95. The flaw stemmed from unvalidated URLs being passed to httpx.stream() with redirects enabled, potentially allowing access to internal services and cloud metadata endpoints, and was patched in version 1.5.95.

    CVE-2026-34954 - PraisonAI: SSRF in FileTools.download_file() via Unvalidated URL
  2. Apr 3, 20268mo ago

    PraisonAI fixes Python sandbox escape in version 1.5.90

    PraisonAI patched CVE-2026-34938, a Python sandbox escape in execute_code(), in version 1.5.90. The flaw affected praisonai-agents versions prior to 1.5.90 and allowed attacker-controlled code to bypass sandbox protections via a str subclass overriding startswith(), potentially leading to arbitrary OS command execution on the host.

    CVE-2026-34938 - PraisonAI: Python Sandbox Escape via str Subclass startswith() Override in execute_code
  3. Apr 3, 20268mo ago

    GitHub advisory discloses CVE-2026-34952

    A GitHub security advisory recorded CVE-2026-34952 on April 3, 2026, describing a missing authentication flaw in the PraisonAI Gateway server prior to version 4.5.97. The issue allowed unauthenticated network clients to access the /ws WebSocket and /info endpoints to enumerate agents and send arbitrary messages to agents and their tool sets.

    CVE-2026-34952 - PraisonAI: Missing Authentication in WebSocket Gateway
  4. Apr 3, 20268mo ago

    GitHub advisory publishes CVE-2026-34953

    GitHub Security Advisories newly received CVE-2026-34953 on April 3, 2026, documenting an authentication bypass in PraisonAI. The flaw was classified as CWE-863 and could give unauthenticated attackers full access to registered tools and agent capabilities via the MCP server.

  5. Apr 3, 20268mo ago

    PraisonAI fixes OAuth authentication bypass in version 4.5.97

    PraisonAI patched an authentication bypass vulnerability in OAuthManager.validate_token() in version 4.5.97. The issue affected versions prior to 4.5.97 and allowed arbitrary Bearer tokens to authenticate to the MCP server because unknown tokens were incorrectly accepted when the internal token store was empty by default.

  6. Apr 3, 20268mo ago

    PraisonAI fixes OS command injection in version 4.5.69

    PraisonAI patched CVE-2026-34935, an OS command injection flaw in MCPHandler.parse_mcp_command(), in version 4.5.69. The issue affected versions 4.5.15 through 4.5.68 and could allow arbitrary command execution via unsafe handling of the --mcp CLI argument.

    CVE-2026-34935 - PraisonAI: OS Command Injection in MCPHandler.parse_mcp_command()
  7. Apr 3, 20268mo ago

    GitHub advisory discloses CVE-2026-34934

    A GitHub security advisory disclosed CVE-2026-34934 on April 3, 2026, describing a second-order SQL injection issue in PraisonAI. The vulnerability was classified as CWE-89 and assigned a high-severity CVSS v3.1 score vector of AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

  8. Apr 3, 20268mo ago

    PraisonAI fixes SQL injection flaw in version 4.5.90

    PraisonAI patched a second-order SQL injection vulnerability in get_all_user_threads in version 4.5.90. The flaw affected versions prior to 4.5.90 and could allow an attacker to store a malicious thread ID and later trigger SQL injection for potential full database access.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.