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.
Published: 2026-07-21
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Thu, 23 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 21 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
First Time appeared Mervinpraison
Mervinpraison praisonai
Vendors & Products Mervinpraison
Mervinpraison praisonai

Tue, 21 Jul 2026 16:30:00 +0000

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'}


Subscriptions

Mervinpraison Praisonai
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-23T14:25:50.782Z

Reserved: 2026-05-19T19:22:45.729Z

Link: CVE-2026-47397

cve-icon Vulnrichment

Updated: 2026-07-23T14:25:40.037Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T17:15:12Z

Weaknesses
  • CWE-22

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