CVE-2026-39891 Details
Description
PraisonAI is a multi-agent teams system. Prior to 4.5.115, the create_agent_centric_tools() function returns tools (like acp_create_file) that process file content using template rendering. When user input from agent.start() is passed directly into these tools without escaping, template expressions in the input are executed rather than treated as literal text. This vulnerability is fixed in 4.5.115.
A template injection vulnerability has been identified in PraisonAI versions prior to 4.5.115. The issue arises in the create_agent_centric_tools() function, which returns tools that process file content using template rendering. When user input from agent.start() is directly passed into these tools without proper escaping, template expressions are executed instead of being treated as plain text. This vulnerability allows for arbitrary code execution by injecting malicious template expressions through agent instructions, exploiting the lack of input sanitization and context-aware escaping in the tools.
Users are advised to update to PraisonAI version 4.5.115 or later. Additionally, implement input sanitization to validate file content, apply contextual escaping to template syntax in user input, restrict template execution environments using secure evaluation modes, and require manual approval for file creation operations in production.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-hwg5-x759-7wjg | CISA-ADP | ExploitVendor Advisory |
| https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-hwg5-x759-7wjg | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| praison praisonai | <= 4.5.114 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 22, 2026 | Initial Analysis | [email protected] |
| Apr 9, 2026 | CVE Modified | CISA-ADP |
| Apr 8, 2026 | New CVE Received | [email protected] |