CVE-2026-40154 PraisonAI Affected by Untrusted Remote Template Code Execution

Critical 9.3 Published Updated

Attackers can execute arbitrary code by supplying malicious remote templates to PraisonAI, which lacks integrity verification for fetched files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-40154?

CVE-2026-40154 is a critical code injection vulnerability in MervinPraison PraisonAI, published on 9 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

PraisonAI is a multi-agent teams system. Prior to 4.5.128, PraisonAI treats remotely fetched template files as trusted executable code without integrity verification, origin validation, or user confirmation, enabling supply chain attacks through malicious templates. This vulnerability is fixed in 4.5.128.

Weakness: CWE-829

Which versions are affected by CVE-2026-40154?

3 open source packages ship an affected version, including praisonai and PraisonAI. It affects 1 product.

PackageAffectedFixed in
praisonai PyPIAll versions4.5.128
praisonai PyPIAll versions4.5.128
PraisonAI PyPIAll versions4.5.128

Products include Praison Praisonai.

How do I fix CVE-2026-40154?

Upgrade praisonai to 4.5.128 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-40154 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40154 exists.

Sources

Also known as GHSA-pv9q-275h-rh7x, PYSEC-2026-476.

Is CVE-2026-40154 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free