CVE-2026-40154: PraisonAI Vulnerable Untrusted Remote Template Code Execution
Affects PraisonAISource GCVE Database
Not known to be exploited · CVSS 9.3 Critical : upgrade to 4.5.128 as a priority.
Data as of 16 Nov 2026, 16:48 UTC
- Patch
- Available – fixed in 4.5.128
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 9 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 15 Nov 2026.
What to do
Upgrade PraisonAI to 4.5.128.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIPraisonAI | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in PraisonAI version 4.5.128 that addresses this vulnerability. Users should upgrade to version 4.5.128 or later. Until patched, users should avoid installing templates from untrusted sources. Implement verification of template integrity via checksums or signatures before use, require explicit user confirmation before executing any downloaded code, and disable automatic execution of tools.py or similar files. These steps help prevent execution of malicious code embedded in remote templates.
Description
PraisonAI versions prior to 4.5.128 automatically download and execute Python template files from remote sources without verifying their integrity or origin. This allows attackers to supply malicious templates that execute arbitrary code with the user's privileges, potentially stealing sensitive environment variables and compromising the system. The vulnerability arises from treating untrusted remote code as trusted and executing it without user confirmation or security checks.
References
- github.com/MervinPraison/PraisonAI/security/advisories/GHSA-pv9q-275h-rh7x (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-40154 (opens in a new tab)
- github.com/MervinPraison/PraisonAI (opens in a new tab)
- github.com/MervinPraison/PraisonAI/releases/tag/v4.5.128 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/praisonai/PYSEC-2026-476.yaml (opens in a new tab)
- pypi.org/project/praisonai (opens in a new tab)