# CVE-2026-57130: PraisonAI IMAP injection in email tools

Source: https://junglewise.ai/threats/cve-2026-57130-praisonai-imap-injection-in-email-tools  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-14. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-57130 · Severity: high · CVSS 8.1 · Published 2026-09-14

PraisonAI is a multi-agent framework that can integrate with email services. When an AI agent is configured with email credentials, malicious LLM outputs can exploit unsafe string interpolation in the email tool to inject commands into IMAP search queries. An attacker controlling the agent's output (e.g., through prompt injection) can read, modify, or delete mailbox contents, or disrupt email connections.

Technologies: [praisonaiagents (PyPI)](https://junglewise.ai/threats/technologies/pypi-praisonaiagents). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

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

**How severe is CVE-2026-57130?** High severity, with a CVSS score of 8.1, published 14 September 2026.

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

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

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

**Am I affected by CVE-2026-57130?** Check whether you run praisonaiagents (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

- praisonaiagents (PyPI): upgrade to 1.6.59 or later

  ```sh
  pip install "praisonaiagents>=1.6.59"
  ```


## Technical details

The vulnerability is an IMAP injection flaw in email_tools.py where LLM-controlled values (from_addr, subject, query) are interpolated directly into quoted IMAP SEARCH criteria without proper escaping. Special characters—quotes, backslashes, newlines, and nulls—can break out of the quoted string and inject arbitrary IMAP commands. The attack requires an AI agent with configured email credentials to be exposed to untrusted input or prompt injection. An attacker can alter IMAP operations to access, modify, or delete messages, or corrupt the connection. The fix in praisonaiagents 1.6.59 implements proper IMAP protocol escaping.

## Affected products

- Mervin Praison PraisonAI Agents before 1.6.59

## Identifiers

- CVE-2026-57130
- GHSA-c969-5x3p-vq3v
- PYSEC-2026-3532

## Timeline

- 2026-09-14: disclosed
- 2026-06-17: patched: Fix released in praisonaiagents 1.6.59

## References

- [https://github.com/MervinPraison/PraisonAI/commit/b4270173d4123fb1ee8910588f0896668ee21b59](https://github.com/MervinPraison/PraisonAI/commit/b4270173d4123fb1ee8910588f0896668ee21b59)
- [https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.59](https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.59)

## Related threats

- [PraisonAI SearxNG URL validation bypass in search tools](https://junglewise.ai/threats/cve-2026-57143-praisonai-server-side-request-forgery-ssrf-in-searxng-search-web)
- [PraisonAI missing access control in API endpoints](https://junglewise.ai/threats/cve-2026-57118-praisonai-agentteam-launch-exposes-unauthenticated-remote-agent)
- [PraisonAI legacy SSE endpoint CORS and authentication bypass](https://junglewise.ai/threats/cve-2026-57112-praisonai-legacy-sse-endpoint-cors-and-authentication-bypass)
- [PraisonAI path traversal in file mention parsing](https://junglewise.ai/threats/cve-2026-57129-praisonai-path-traversal-in-file-mention-parsing)
- [PraisonAI authentication bypass in SSE server endpoints](https://junglewise.ai/threats/cve-2026-57128-praisonai-authentication-bypass-in-sse-server-endpoints)
