Quick answers
- Is CVE-2026-40154 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-40154 being exploited in the wild.
- How severe is CVE-2026-40154?
- Critical severity, with a CVSS score of 9.3, published 9 April 2026.
- Which products and versions are affected?
- praisonai (PyPI) ECOSYSTEM:introduced=0,fixed=4.5.128.
- Is there a fix for CVE-2026-40154?
- Yes. praisonai (PyPI): upgrade to 4.5.128 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-40154 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-40154?
- Check whether you run Praisonai or praisonai (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
- praisonai (PyPI): upgrade to 4.5.128 or later
pip install "praisonai>=4.5.128"
Technical details
PraisonAI fails to validate the integrity or origin of Python files (such as tools.py) included in remote templates fetched from GitHub. The vulnerability exists in the template registry and tool resolver components, where downloaded files are written to a local cache and subsequently loaded using importlib.util.module_from_spec() and exec_module(). Because there is no code signing verification, checksum validation, or manual user approval before execution, an attacker can distribute malicious templates that execute arbitrary Python code with the privileges of the user running PraisonAI. This can be exploited via template registry poisoning, typosquatting, or account compromise. The issue is addressed in version 4.5.128.
Affected products
- MervinPraison PraisonAI < 4.5.128
Identifiers
- CVE-2026-40154
- GHSA-pv9q-275h-rh7x
- PYSEC-2026-476
Timeline
- 2026-04-09: patched: Version 4.5.128 released
- 2026-04-09: disclosed: NVD publication
- 2026-04-10: advisory: GitHub Advisory published