# CVE-2026-39891: PraisonAI has a Template Injection in Agent Tool Definitions

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-08T19:21:22.000Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-hwg5-x759-7wjg, PYSEC-2026-2917
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- MervinPraison PraisonAI: < 4.5.115
- praisonai (PyPI): before 4.5.115
- praison praisonai: up to 4.5.114

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-hwg5-x759-7wjg> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39891> (advisory)
- <https://github.com/MervinPraison/PraisonAI> (package)
- <https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.115> (web)
- <https://pypi.org/project/praisonai> (package)
- <https://github.com/advisories/GHSA-hwg5-x759-7wjg> (advisory)

## Sources

- CVE List: [CVE-2026-39891](https://www.cve.org/CVERecord?id=CVE-2026-39891), CVE Terms of Use, modified 2026-04-09
- GitHub Advisory Database: [GHSA-hwg5-x759-7wjg](https://github.com/advisories/GHSA-hwg5-x759-7wjg), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-39891](https://nvd.nist.gov/vuln/detail/CVE-2026-39891), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-2917](https://osv.dev/vulnerability/PYSEC-2026-2917), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-39891 · Whole record: https://cve.day/CVE-2026-39891.json · Rebuilt by cve.day 2026-11-25T22:59:18.317Z
