CVE-2026-39891: CWE-94: Improper Control of Generation of Code ('Code Injection') in MervinPraison PraisonAI
CVE-2026-39891 is a high-severity code injection vulnerability in MervinPraison's PraisonAI versions prior to 4. 5. 115. The issue arises because the create_agent_centric_tools() function returns tools that process file content using template rendering, and user input passed directly into these tools is not escaped. This allows template expressions in the input to be executed as code rather than treated as literal text. The vulnerability has been fixed in version 4. 5. 115.
AI Analysis
Technical Summary
PraisonAI, a multi-agent teams system, contains a code injection vulnerability (CWE-94) in versions before 4.5.115. Specifically, the create_agent_centric_tools() function returns tools such as acp_create_file that use template rendering on file content. When user input from agent.start() is passed directly into these tools without proper escaping, template expressions embedded in the input are executed, enabling code injection. This flaw allows an attacker with at least low privileges and no user interaction to execute arbitrary code, impacting confidentiality, integrity, and availability. The vulnerability is addressed by escaping user input in version 4.5.115.
Potential Impact
Successful exploitation can lead to remote code execution with high impact on confidentiality, integrity, and availability of the affected system. The CVSS 3.1 score is 8.8 (high), reflecting network attack vector, low attack complexity, low privileges required, no user interaction, and full compromise potential. No known exploits are reported in the wild at this time.
Mitigation Recommendations
A fix is available in PraisonAI version 4.5.115, which properly escapes user input to prevent template expression execution. Users should upgrade to version 4.5.115 or later to remediate this vulnerability. Since this is not a cloud service, remediation depends on applying the vendor's patch. Patch status is confirmed by the vendor advisory stating the issue is fixed in 4.5.115.
CVE-2026-39891: CWE-94: Improper Control of Generation of Code ('Code Injection') in MervinPraison PraisonAI
Description
CVE-2026-39891 is a high-severity code injection vulnerability in MervinPraison's PraisonAI versions prior to 4. 5. 115. The issue arises because the create_agent_centric_tools() function returns tools that process file content using template rendering, and user input passed directly into these tools is not escaped. This allows template expressions in the input to be executed as code rather than treated as literal text. The vulnerability has been fixed in version 4. 5. 115.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PraisonAI, a multi-agent teams system, contains a code injection vulnerability (CWE-94) in versions before 4.5.115. Specifically, the create_agent_centric_tools() function returns tools such as acp_create_file that use template rendering on file content. When user input from agent.start() is passed directly into these tools without proper escaping, template expressions embedded in the input are executed, enabling code injection. This flaw allows an attacker with at least low privileges and no user interaction to execute arbitrary code, impacting confidentiality, integrity, and availability. The vulnerability is addressed by escaping user input in version 4.5.115.
Potential Impact
Successful exploitation can lead to remote code execution with high impact on confidentiality, integrity, and availability of the affected system. The CVSS 3.1 score is 8.8 (high), reflecting network attack vector, low attack complexity, low privileges required, no user interaction, and full compromise potential. No known exploits are reported in the wild at this time.
Mitigation Recommendations
A fix is available in PraisonAI version 4.5.115, which properly escapes user input to prevent template expression execution. Users should upgrade to version 4.5.115 or later to remediate this vulnerability. Since this is not a cloud service, remediation depends on applying the vendor's patch. Patch status is confirmed by the vendor advisory stating the issue is fixed in 4.5.115.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-07T20:32:03.011Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d6c32c1cc7ad14dab1ab4a
Added to database: 4/8/2026, 9:05:48 PM
Last enriched: 4/8/2026, 9:20:47 PM
Last updated: 4/8/2026, 11:22:53 PM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.