PyPI: praisonai

CVE-2026-39306

Safety vulnerability ID: SFTY-20260406-01008

Safety legacy ID: pyup.io-92086

Affected versions of the PraisonAI package are vulnerable to Path Traversal due to the use of tar.extractall() without validation of archive member paths in the recipe registry pull workflow. Both the LocalRegistry.pull() and HttpRegistry.pull() methods in registry.py extract downloaded .praison tar archives directly into the output directory without inspecting or sanitising tar member paths for traversal sequences. A malicious publisher can upload a recipe bundle containing entries with relative path components that escape the intended extraction directory, causing arbitrary files to be written on the filesystem of any user who pulls the compromised recipe.

Created at: Apr 8, 2026Updated at: Apr 8, 2026

Overview

PraisonAI recipe registry pull path traversal writes files outside the chosen output directory

Advisory

Affected versions of the PraisonAI package are vulnerable to Path Traversal due to the use of tar.extractall() without validation of archive member paths in the recipe registry pull workflow. Both the LocalRegistry.pull() and HttpRegistry.pull() methods in registry.py extract downloaded .praison tar archives directly into the output directory without inspecting or sanitising tar member paths for traversal sequences. A malicious publisher can upload a recipe bundle containing entries with relative path components that escape the intended extraction directory, causing arbitrary files to be written on the filesystem of any user who pulls the compromised recipe.

Affected Package

Affecting praisonai package, versions
<=4.5.112

Also affects

---

How to Fix

Upgrade
praisonai
to
4.5.113
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more