CVE-2026-57130
nicheIMAP SEARCH Injection in PraisonAI praisonaiagents Email Tools
An injection flaw in PraisonAI's praisonaiagents library (versions before 1.6.59) interpolates LLM-controlled from_addr, subject, and query values directly into quoted IMAP SEARCH criteria in email_tools.py without escaping. An attacker who can influence an agent's inputs — for example, via prompt injection embedded in email content or task text — can include quote, backslash, newline, or null characters to escape the intended criterion and alter IMAP operations whenever search_emails, reply_email, or archive_email runs on an agent with configured email credentials. Successful exploitation allows access to, modification of, or deletion of mailbox data beyond the intended scope, or disruption of the mail connection, reflected in a high CVSS 3.1 score of 8.1. Only deployments running praisonaiagents < 1.6.59 that expose the email tools to an agent are affected, and the issue is fixed in version 1.6.59. No public proof of concept or in-the-wild exploitation is known.
What to do: Upgrade praisonaiagents to version 1.6.59 or later as soon as possible. If upgrading is delayed, stop exposing the search_emails, reply_email, and archive_email tools to agents, and scope agent email credentials to least-privilege mailboxes. Review mailbox and IMAP server logs for unexpected SEARCH, STORE, or EXPUNGE operations, and treat agent-visible email content as untrusted prompt-injection input.
| praisonaiagents | < 1.6.59 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
PraisonAI is a multi-agent teams system. Prior to praisonaiagents 1.6.59, src/praisonai-agents/praisonaiagents/tools/email_tools.py interpolates LLM-controlled from_addr, subject, and query values directly into quoted IMAP SEARCH criteria. Embedded quote, backslash, newline, or null characters can escape the intended criterion and alter IMAP operations when search_emails, reply_email, or archive_email is exposed to an agent with configured email credentials, allowing mailbox data access, modification, deletion, or connection disruption. This issue is fixed in praisonaiagents 1.6.59.
- Weakness
- CWE-20, CWE-77
- Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
In the news0 stories
No ingested article mentions this CVE yet.