CVE-2026-47397 PraisonAI has an Arbitrary File Write in Python API
Attackers can write arbitrary files via hidden webpage metadata due to missing path validation in PraisonAI agents, potentially leading to code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-47397?
CVE-2026-47397 is a high-severity path traversal vulnerability in MervinPraison PraisonAI, published on 21 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
PraisonAI is a multi-agent teams system. Prior to version 4.6.40, hidden metadata in a webpage causes PraisonAI agents to write attacker-controlled content to arbitrary paths. `write_file` skips path validation when `workspace=None` (always `None` in production). Version 4.6.40 fixes the issue.
Weakness: CWE-22
Which versions are affected by CVE-2026-47397?
3 open source packages ship an affected version, including praisonai and PraisonAI.
| Package | Affected | Fixed in |
|---|---|---|
praisonai PyPI | All versions | 4.6.40 |
praisonai PyPI | All versions | 4.6.40 |
PraisonAI PyPI | All versions | 4.6.40 |
How do I fix CVE-2026-47397?
Upgrade praisonai to 4.6.40 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-47397 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47397 exists.
Sources
Also known as GHSA-hvhp-v2gc-268q, PYSEC-2026-2916.