Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-34939 EUVD-2026-18921GHSA-8w9j-hc3g-3g7fPYSEC-2026-2907

PraisonAI: ReDoS via Unvalidated User-Controlled Regex in MCPToolIndex.search_tools()

Published Apr 3, 2026 · Updated Apr 6, 2026 · Assigned by GitHub_M

Description

PraisonAI is a multi-agent teams system. Prior to version 4.5.90, MCPToolIndex.search_tools() compiles a caller-supplied string directly as a Python regular expression with no validation, sanitization, or timeout. A crafted regex causes catastrophic backtracking in the re engine, blocking the Python thread for hundreds of seconds and causing a complete service outage. This issue has been patched in version 4.5.90.

Affected products

VendorProductAffectedFixed
MervinPraison PraisonAI < 4.5.90 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI praisonai < 4.5.90 4.5.90 GHSA-8w9j-hc3g-3g7f

References