Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-47397: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in MervinPraison PraisonAI

0
High
VulnerabilityCVE-2026-47397cvecve-2026-47397cwe-22
Published: 07/21/2026 (07/21/2026, 15:57:25 UTC)
Source: CVE Database V5
Vendor/Project: MervinPraison
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
mervinpraison/PraisonAI
pkg:github/mervinpraison/PraisonAI
Affected versions
<4.6.40

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/21/2026, 16:57:11 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses