CVE-2026-40154: Remote Template Code Execution in PraisonAI
- Vendor
- Praison
PraisonAI versions before 4.5.128 automatically execute Python code from remotely downloaded templates without integrity verification, origin validation, or explicit user confirmation. Treating remote templates as trusted executable code allows malicious or compromised templates to execute arbitrary code with the invoking user's privileges, enabling supply chain compromise.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary command execution and theft of API keys, tokens, credentials, environment variables, and other sensitive data accessible to the executing user. Attackers can also establish persistence or backdoors. CI/CD pipelines and shared development environments are particularly exposed because template execution may provide access to shared secrets and automation credentials.
Mitigation
If you can’t patch tonight, do this now.
Avoid installing or running untrusted remote templates. Restrict template sources to verified publishers and validate signatures or checksums against independently trusted values. Require explicit approval before executing downloaded Python code and disable automatic execution of template tool modules unless explicitly enabled. Execute templates in an isolated sandbox with restricted filesystem, network, and credential access.
Remediation
Patch, then assume compromise.
Upgrade the PraisonAI PyPI package to version 4.5.128 or later, which contains the fix.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-40154 exploited in the wild?
- As of Nov 17, 2026, Mallory has no reports of CVE-2026-40154 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-40154?
- Yes. As of Nov 17, 2026, Mallory has reports of a public exploit for CVE-2026-40154.
- Is there a patch for CVE-2026-40154?
- Upgrade the PraisonAI PyPI package to version 4.5.128 or later, which contains the fix.
- What products are affected by CVE-2026-40154?
- Praisonai.
- How severe is CVE-2026-40154?
- CVE-2026-40154 has a CVSS v3.1 score of 9.6 (Critical) and an EPSS score of 0.48% (35th percentile) as of Nov 17, 2026.
Recent activity
9 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.