CVE-2026-47397: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in MervinPraison PraisonAI
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.
AI Analysis
Technical Summary
PraisonAI versions before 4.6.40 contain a CWE-22 path traversal vulnerability where hidden metadata in a webpage can cause PraisonAI agents to write attacker-controlled content to arbitrary filesystem locations. The root cause is that the write_file function skips path validation when the workspace parameter is None, which is always the case in production environments. This allows an attacker with limited privileges to write files outside intended directories. The issue is resolved in version 4.6.40.
Potential Impact
An attacker can exploit this vulnerability to write files to arbitrary paths on the system running PraisonAI, potentially leading to unauthorized file modification or code execution depending on the environment and file permissions. This can compromise system integrity and confidentiality.
Mitigation Recommendations
Upgrade PraisonAI to version 4.6.40 or later, where the path traversal vulnerability is fixed. No other official remediation or temporary fixes are documented. Patch status is not explicitly confirmed in the vendor advisory, but the version 4.6.40 is stated as the fix version.
CVE-2026-47397: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in MervinPraison PraisonAI
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 v4.0
Score 7.1high
Affected software
pkg:github/mervinpraison/PraisonAIRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PraisonAI versions before 4.6.40 contain a CWE-22 path traversal vulnerability where hidden metadata in a webpage can cause PraisonAI agents to write attacker-controlled content to arbitrary filesystem locations. The root cause is that the write_file function skips path validation when the workspace parameter is None, which is always the case in production environments. This allows an attacker with limited privileges to write files outside intended directories. The issue is resolved in version 4.6.40.
Potential Impact
An attacker can exploit this vulnerability to write files to arbitrary paths on the system running PraisonAI, potentially leading to unauthorized file modification or code execution depending on the environment and file permissions. This can compromise system integrity and confidentiality.
Mitigation Recommendations
Upgrade PraisonAI to version 4.6.40 or later, where the path traversal vulnerability is fixed. No other official remediation or temporary fixes are documented. Patch status is not explicitly confirmed in the vendor advisory, but the version 4.6.40 is stated as the fix version.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-19T19:22:45.729Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5fa1722a4a8d59896d3428
Added to database: 07/21/2026, 16:42:26 UTC
Last enriched: 07/21/2026, 16:57:11 UTC
Last updated: 07/21/2026, 20:13:16 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.