Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. praisonaiagents
  4. ›
  5. GHSA-c969-5x3p-vq3v

GHSA-c969-5x3p-vq3v: PraisonAI: IMAP Command Injection via Unsanitized Email Search Parameters

June 18, 2026 (updated July 20, 2026)

The email search tool in src/praisonai-agents/praisonaiagents/tools/email_tools.py constructs IMAP SEARCH commands by interpolating LLM-controlled parameters (from_addr, subject, query) directly into IMAP protocol strings using f-string formatting with double-quote delimiters. An attacker who can influence the arguments to the search_emails or reply_email tool (via crafted agent prompts) can inject arbitrary IMAP commands, potentially exfiltrating email data from other folders, deleting emails, or performing other unauthorized IMAP operations.

References

  • github.com/MervinPraison/PraisonAI/security/advisories/GHSA-c969-5x3p-vq3v
  • github.com/advisories/GHSA-c969-5x3p-vq3v
  • nvd.nist.gov/vuln/detail/CVE-2026-57130

Code Behaviors & Features

Detect and mitigate GHSA-c969-5x3p-vq3v with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.6.59

Fixed versions

  • 1.6.59

Solution

Upgrade to version 1.6.59 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

pypi/praisonaiagents/GHSA-c969-5x3p-vq3v.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:59 +0000.