# CVE-2026-34934: MervinPraison PraisonAI SQL injection in get_all_user_threads

Source: https://junglewise.ai/threats/cve-2026-34934-mervinpraison-praisonai-sql-injection-in-get-all-user-threads  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-03. Updated: 2026-07-25  
License: CC BY 4.0 with a link back

CVE-2026-34934 · Severity: critical · CVSS 9.8 · Published 2026-04-03

PraisonAI, a system for managing multi-agent AI teams, is vulnerable to a security flaw that allows attackers to gain full access to its database. By submitting a specially crafted thread ID, an attacker can trick the system into executing unauthorized database commands. This could lead to the theft of sensitive user data, API keys, and conversation histories, or the total deletion of the database.

Technologies: [Praisonai](https://junglewise.ai/threats/technologies/praisonai), [praisonai (PyPI)](https://junglewise.ai/threats/technologies/pypi-praisonai). Vendors: [Praison](https://junglewise.ai/threats/vendors/praison), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-34934 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-34934 being exploited in the wild.

**How severe is CVE-2026-34934?** Critical severity, with a CVSS score of 9.8, published 3 April 2026.

**Which products and versions are affected?** praisonai (PyPI) ECOSYSTEM:introduced=0,fixed=4.5.90.

**Is there a fix for CVE-2026-34934?** Yes. praisonai (PyPI): upgrade to 4.5.90 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-34934 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-34934?** Check whether you run Praisonai or praisonai (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- praisonai (PyPI): upgrade to 4.5.90 or later

  ```sh
  pip install "praisonai>=4.5.90"
  ```


## Technical details

A second-order SQL injection vulnerability exists in PraisonAI's SQLAlchemy data layer. The 'get_all_user_threads' function in 'src/praisonai/praisonai/ui/sql_alchemy.py' constructs raw SQL queries using Python f-strings to include thread IDs previously stored in the database. An attacker can first call 'update_thread' to store a malicious SQL payload as a 'thread_id'. When 'get_all_user_threads' is subsequently called, the unescaped payload is concatenated into an 'IN' clause, allowing for arbitrary SQL execution. This can result in full database exfiltration or modification. The vulnerability is resolved in version 4.5.90 by properly parameterizing queries.

## Affected products

- MervinPraison PraisonAI < 4.5.90

## Identifiers

- CVE-2026-34934
- GHSA-9cq8-3v94-434g
- PYSEC-2026-470

## Timeline

- 2026-03-31: advisory: Vendor advisory published on GitHub
- 2026-04-03: disclosed: CVE published to NVD
- 2026-04-03: patched: Fix released in version 4.5.90

## References

- [https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-9cq8-3v94-434g](https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-9cq8-3v94-434g)

## Related threats

- [PraisonAI authentication bypass in A2U event streaming](https://junglewise.ai/threats/cve-2026-57146-praisonai-a2u-incomplete-authentication-fix-leaves-current-serve)
- [PraisonAI sandbox escape when Landlock unavailable](https://junglewise.ai/threats/cve-2026-57144-praisonai-sandlocksandbox-falls-back-to-unrestricted-subprocess)
- [PraisonAI recipe policy bypass via YAML-approved tools](https://junglewise.ai/threats/cve-2026-57142-praisonai-recipe-workflow-policy-can-be-bypassed-by-declaring-and)
- [PraisonAI shell command injection in compute-bridged file tools](https://junglewise.ai/threats/cve-2026-57117-praisonai-compute-bridged-file-tools-allow-shell-command)
- [PraisonAI AgentOS authentication bypass in FastAPI deployment](https://junglewise.ai/threats/cve-2026-57116-praisonai-agentos-remains-unauthenticated-after-incomplete-fix)
