CVE-2026-47397
Received Received - Intake

Path Traversal in PraisonAI Agents via Metadata

Vulnerability report for CVE-2026-47397, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-21

Last updated on: 2026-07-21

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-21
Last Modified
2026-07-21
Generated
2026-07-21
AI Q&A
2026-07-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
praisonai praisonai to 4.6.40 (exc)
mervinpraison praisonai to 4.6.40 (exc)
mervinpraison praisonai 4.6.40

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an Arbitrary File Write issue in the PraisonAI Python API affecting versions 4.6.39 and earlier. The flaw occurs because the write_file function skips path validation when the workspace parameter is set to None, which is the default in production. Attackers can craft a webpage with hidden metadata to instruct the API to write arbitrary files to any system path when a victim's agent processes the page.

Detection Guidance

Check for unauthorized file writes in system directories, especially in /tmp or user home folders. Monitor PraisonAI agent logs for suspicious file operations. Review web content processed by agents for hidden metadata instructing file writes.

Impact Analysis

An attacker could write malicious files to sensitive system locations, potentially leading to code execution, data theft, or system compromise. For example, they could overwrite critical files or plant backdoors. The impact depends on the permissions of the PraisonAI process and the files targeted.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating GDPR's integrity and confidentiality principles or HIPAA's security requirements for protected health information. Organizations using affected versions may face compliance violations and potential penalties.

Mitigation Strategies

Upgrade PraisonAI to version 4.6.40 or later. Disable automatic file writing in agent configurations. Implement strict input validation for web content processed by agents. Monitor for suspicious file creation activities.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-47397. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart