PyPI: praisonai

CVE-2026-40151

Safety vulnerability ID: SFTY-20260410-36991

Safety legacy ID: pyup.io-92551

Affected versions of the PraisonAI package are vulnerable to Information Disclosure due to the GET /api/agents endpoint in the AgentOS deployment platform lacking any authentication middleware or API key validation. The _register_routes() method in agentos.py registers all routes on a plain FastAPI application with no authentication dependencies, and the default CORS configuration uses allow_origins=["*"] with host="0.0.0.0", making every deployment network-accessible and queryable from any origin. An unauthenticated attacker can retrieve agent names, roles, and the first 100 characters of agent system instructions, potentially exposing sensitive operational logic and proprietary prompt configurations.

Created at: Apr 20, 2026Updated at: Apr 20, 2026

Overview

PraisonAI: Unauthenticated Information Disclosure of Agent Instructions via /api/agents in AgentOS

Advisory

Affected versions of the PraisonAI package are vulnerable to Information Disclosure due to the GET /api/agents endpoint in the AgentOS deployment platform lacking any authentication middleware or API key validation. The _register_routes() method in agentos.py registers all routes on a plain FastAPI application with no authentication dependencies, and the default CORS configuration uses allow_origins=["*"] with host="0.0.0.0", making every deployment network-accessible and queryable from any origin. An unauthenticated attacker can retrieve agent names, roles, and the first 100 characters of agent system instructions, potentially exposing sensitive operational logic and proprietary prompt configurations.

Affected Package

Affecting praisonai package, versions
<4.5.128

Also affects

---

How to Fix

Upgrade
praisonai
to
4.5.128
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