CVE-2026-56839

PraisonAI Code agent tools fail open without a workspace boundary

Published Sep 14, 2026 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

PraisonAI’s multi‑agent system had a flaw in its CODE_TOOLS wrappers before version 4.6.59. The wrappers stored the workspace root as null and passed a null workspace to the read_file, search_replace, and apply_diff helper functions, which enforce path containment only when a truthy workspace is provided. As a result, exposing the code_read_file, code_search_replace, or code_apply_diff methods prior to setting a workspace enables a prompt‑influenced caller to read or modify files outside the intended project directory. This permits unauthorized file disclosure or modification, compromising confidentiality and integrity.

Affected Systems

MervinPraison’s PraisonAI application versions before 4.6.59 are affected. Users running any 4.x release prior to the 4.6.59 patch that exposes the code_read_file, code_search_replace, or code_apply_diff functionality without first setting a workspace boundary are vulnerable.

Risk and Exploitability

The CVSS base score of 7.3 indicates high severity. The EPSS score is below 1%, showing a very low predicted exploitation probability. The vulnerability is not listed in CISA’s KEV catalog. The likely attack vector involves an attacker who can interact with the exposed code tools, either locally or through a compromised user session. If the application runs with elevated privileges, the attacker could modify system files or read sensitive data. Mitigation relies on applying the vendor’s update or ensuring the workspace is set before exposing these utilities.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor’s patch to update to version 4.6.59 or later.
  • Ensure a workspace boundary is set before enabling the code_read_file, code_search_replace, or code_apply_diff functionalities.
  • Restrict external access to these code agent endpoints to authenticated users or limit them to trusted internal networks.

Generated by OpenCVE AI on September 21, 2026 at 00:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-gcq3-mfvh-3x25 PraisonAI Code agent tools fail open without a workspace boundary
History
Type Values Removed Values Added
First Time appeared Mervinpraison
Mervinpraison praisonai
Vendors & Products Mervinpraison
Mervinpraison praisonai
Type Values Removed Values Added
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.
Title PraisonAI Code agent tools fail open without a workspace boundary
Weaknesses CWE-200
CWE-22
CWE-863
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-863

    Incorrect Authorization

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 14, 2026, 4:27 PM
Reserved
Jun 23, 2026, 2:55 PM
Status
Deferred
Published
Sep 14, 2026, 4:17 PM
Modified
Sep 16, 2026, 1:42 PM