PraisonAI Flaws Enable Template Injection and Remote Template Code Execution
PraisonAI disclosed two high-severity vulnerabilities affecting its multi-agent teams platform, both tied to unsafe handling of templates. CVE-2026-39891 affects versions before 4.5.115 and allows template injection through agent tool definitions: the create_agent_centric_tools() function returns tools that render file content as templates, so unescaped input supplied via agent.start() can cause template expressions to execute rather than be treated as plain text. The flaw is tracked as CWE-94 and carries a CVSS v3.1 score vector of AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, indicating high impact across confidentiality, integrity, and availability.
A second issue, CVE-2026-40154, affects versions before 4.5.128 and exposes PraisonAI to remote template code execution through untrusted externally fetched template files. The advisory says the product treated remote templates as trusted executable code without integrity checks, origin validation, or user confirmation, creating a supply-chain attack path for malicious templates. That vulnerability is mapped to CWE-829 with CVSS v3.1 vector AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N. PraisonAI fixed the issues in versions 4.5.115 and 4.5.128, with GitHub advisories published as GHSA-hwg5-x759-7wjg and GHSA-pv9q-275h-rh7x.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
4 events from the most recent confirmed update back to the earliest known activity.
CVE-2026-40154 advisory published by GitHub
GitHub Security Advisories published CVE-2026-40154 on April 9, 2026, describing an untrusted remote template code execution issue in PraisonAI. The flaw was mapped to CWE-829 and assigned a CVSS v3.1 vector reflecting high confidentiality and integrity impact.
PraisonAI fixes remote template code execution issue in version 4.5.128
PraisonAI fixed CVE-2026-40154 in version 4.5.128, addressing unsafe handling of remotely fetched template files as trusted executable code. The issue affected versions prior to 4.5.128 and created supply-chain attack risk through malicious templates.
CVE-2026-39891 disclosed for PraisonAI
A high-severity vulnerability, CVE-2026-39891, was publicly disclosed for PraisonAI on a GitHub Security Advisory. It was classified as CWE-94 and assigned a CVSS v3.1 score indicating high impact to confidentiality, integrity, and availability.
PraisonAI fixes template injection flaw in version 4.5.115
PraisonAI addressed CVE-2026-39891, a template injection vulnerability in create_agent_centric_tools() affecting versions prior to 4.5.115. The flaw allowed template expressions in unescaped user input from agent.start() to be executed instead of treated as literal text.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
2 references tracked. Mallory keeps watching after this page renders.
See the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


