CVE-2026-47397

PraisonAI has an Arbitrary File Write in Python API

Published Jul 21, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

PraisonAI, a multi‑agent framework, contains a flaw in its Python API where hidden metadata in a web page can be exploited to write attacker‑controlled content to any filesystem path. The write_file function bypasses path validation when the optional workspace argument is None, a value that is always None in production environments. As a result, an attacker who can influence the hidden metadata can create, modify, or delete files across the system, enabling potential code execution, data tampering, or privilege escalation.

Affected Systems

All deployments of PraisonAI from MervinPraison with versions older than 4.6.40 are affected. The issue manifests when the default configuration is used, causing the workspace to default to None. Version 4.6.40 and subsequent releases contain the fix that restores proper path validation.

Risk and Exploitability

The flaw has a CVSS score of 7.1, indicating moderate to high severity. The EPSS score is below 1 %, suggesting a low likelihood of exploitation at present, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires the attacker to manipulate hidden metadata of a loaded webpage, which can be achieved through social engineering or compromised content. Successful exploitation would allow arbitrary file writes, effectively compromising system integrity and potentially enabling further attacks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update PraisonAI to version 4.6.40 or later and deploy the patch released by MervinPraison.
  • If an immediate update is not feasible, reconfigure the system so that the workspace parameter is never None by setting a valid directory path or modifying the environment configuration.
  • Ensure that all input metadata from webpages is sanitized and that the write_file function is prevented from being called with a None workspace value.

Generated by OpenCVE AI on July 30, 2026 at 17:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-hvhp-v2gc-268q PraisonAI has an Arbitrary File Write in Python API
History
Type Values Removed Values Added
Metrics ssvc

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

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 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.
Title PraisonAI has an Arbitrary File Write in Python API
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 23, 2026, 2:25 PM
Reserved
May 19, 2026, 7:22 PM
Status
Deferred
Published
Jul 21, 2026, 5:17 PM
Modified
Oct 24, 2026, 7:10 PM