Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
Back to intelligence
ai-platform-securityinternet-facing-service-vulnerabilitywidely-deployed-product-advisory

PraisonAI Flaws Enable Template Injection and Remote Template Code Execution

Updated 3mo agoFirst seen Apr 8, 20262 sources

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.

Share:
PraisonAI Flaws Enable Template Injection and Remote Template Code Execution
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

4 events from the most recent confirmed update back to the earliest known activity.

4 EVENTS
Apr 9, 20263mo ago

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.

Apr 8, 20263mo ago

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.

LINKED ENTITIES

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

3 LINKEDOpen in app
Organizations
2 linked
GitHubPraisonAI
The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.

PraisonAI Flaws Enable Template Injection and Remote Template Code Execution | Mallory