Skip to main content
Mallory
← Back to News
ai-platform-securityopen-source-dependency-vulnerabilityproof-of-concept-release

PraisonAI Flaws Enable Template Injection and Remote Template Code Execution

Emerging Technology Risk · 2 sources · Updated 5mo ago · First seen Apr 8, 2026

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.

Why it matters

Impact assessment

PraisonAI deployments running vulnerable versions are exposed to high-impact code execution paths through unsafe template handling in a multi-agent automation platform. Organizations using PraisonAI for agent orchestration, file generation, or externally sourced templates face risk of unauthorized code execution, data exposure, workflow manipulation, and service disruption.

The exposure appears product-specific rather than internet-wide, but severity is high for affected environments because both flaws can lead to execution of attacker-controlled template expressions. No confirmed in-the-wild exploitation is stated in the provided references.

Affected populations

  • Organizations operating PraisonAI multi-agent teams systems
  • Development, automation, and AI platform teams integrating agent workflows
  • Environments where agents process user-supplied content or fetch remote templates

Severity and business impact

  • High confidentiality impact: template execution may expose sensitive data processed by agents
  • High integrity impact: attacker-controlled template logic may alter generated files, workflows, or downstream actions
  • High availability impact for CVE-2026-39891: malicious template execution could disrupt agent operations or dependent services
  • Supply-chain style exposure for CVE-2026-40154: remote templates can become a delivery mechanism for malicious logic

Scope and exploitation status

  • Scope is limited to PraisonAI versions prior to the fixed releases
  • CVE-2026-39891 requires low privileges and no user interaction once reachable through agent workflows
  • CVE-2026-40154 requires user interaction but no privileges, increasing risk where users or workflows import remote templates
  • No published evidence of active exploitation in the wild is included in the source material
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

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

4 events · Apr 8, 2026 – Apr 9, 2026
  1. Apr 9, 20268mo 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.

  2. Apr 9, 20268mo ago

    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.

  3. Apr 8, 20268mo 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.

  4. Apr 8, 20268mo ago

    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.

Open in app →
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

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, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.