CVE-2026-56839 PraisonAI Code agent tools fail open without a workspace boundary
Attackers can read and modify files outside the intended directory if code tools are used before setting a workspace boundary.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-56839?
CVE-2026-56839 is a high-severity path traversal vulnerability in MervinPraison PraisonAI, published on 14 Sep 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
PraisonAI is a multi-agent teams system. Prior to 4.6.59, the CODE_TOOLS wrappers keep _workspace_root as None and pass workspace=None to read_file, search_replace, and apply_diff helpers that enforce path containment only for a truthy workspace. An application that exposes code_read_file, code_search_replace, or code_apply_diff before set_workspace can therefore let prompt-influenced calls read and modify files outside the intended project directory, while explicitly configured workspaces remain effective. This vulnerability is fixed in 4.6.59.
Which versions are affected by CVE-2026-56839?
3 open source packages ship an affected version, including praisonai.
| Package | Affected | Fixed in |
|---|---|---|
praisonai PyPI | All versions | 4.6.59 |
praisonai PyPI | All versions | 4.6.59 |
praisonai PyPI | All versions | 4.6.59 |
How do I fix CVE-2026-56839?
Upgrade praisonai to 4.6.59 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-56839 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-56839 exists.
Sources
Also known as GHSA-gcq3-mfvh-3x25, PYSEC-2026-3512.