CVE-2026-56839: PraisonAI Code agent tools fail open without a workspace boundary

Published Sep 14, 2026
·
Updated

PraisonAI is a multi-agent teams system. Prior to 4.6.59, the CODETOOLS wrappers keep workspaceroot as None and pass workspace=None to readfile, searchreplace, and applydiff helpers that enforce path containment only for a truthy workspace. An application that exposes codereadfile, codesearchreplace, or codeapplydiff before setworkspace 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.

Affected Software

1 affected component
PraisonAI PraisonAI Code agent tools<4.6.59

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PraisonAI to a version that resolves this vulnerability.

    Fixed in 4.6.59
  2. Compensating control

    Ensure code_read_file, code_search_replace, and code_apply_diff are not accessible without an explicitly configured workspace boundary, since the vulnerability described occurs when wrappers pass workspace=None and _workspace_root is None.

Event History

Sep 14, 2026
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using PraisonAI Code agent tools before 4.6.59 are exposed if they make code_read_file, code_search_replace, or code_apply_diff available before calling set_workspace. Deployments with an explicitly configured workspace retain the intended path-containment enforcement.

2

What does an attacker need to exploit this?

An attacker needs to influence calls to the affected code tool wrappers while no workspace has been set. User interaction is required according to the CVSS vector, and the attacker must have low-level privileges.

3

What can happen if exploitation succeeds?

Affected calls can read files outside the intended project directory and can modify files through search-and-replace or diff application. The reported impact includes high confidentiality and integrity impact, with no availability impact.

4

What should teams do if they cannot immediately upgrade?

Ensure set_workspace is called with the intended project directory before exposing or invoking any affected code tools. This enables the workspace containment checks that are bypassed when the workspace is unset.

5

How can teams determine whether they are affected?

Check whether the installed PraisonAI version is earlier than 4.6.59, then review initialization order for code_read_file, code_search_replace, and code_apply_diff. A deployment is affected when those tools can be reached while _workspace_root remains unset or workspace is passed as None.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203