CVE-2026-57127 in PraisonAIinfo

Summary

by MITRE • 09/14/2026

PraisonAI is a multi-agent teams system. Prior to 4.6.58, recipe serve installs APIKeyAuthMiddleware or JWTAuthMiddleware when an operator selects api-key or JWT authentication, but each middleware forwards requests when PRAISONAI_API_KEY or PRAISONAI_JWT_SECRET and the corresponding recipe value are absent. Unauthenticated clients can then reach recipe execution, input, and output surfaces and may trigger connected tools despite the operator explicitly enabling authentication. This issue is fixed in 4.6.58.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 09/14/2026

The vulnerability identified in PraisonAI versions prior to 4.6.58 represents a critical failure in access control logic within its multi-agent team orchestration system. The core of the issue lies in the implementation of authentication middleware, specifically APIKeyAuthMiddleware and JWTAuthMiddleware, which are intended to secure recipe execution endpoints when an operator configures api-key or JSON Web Token (JWT) authentication respectively. In a properly secured environment, these middlewares should enforce strict validation by rejecting any request that does not present valid credentials matching the configured secrets. However, due to a logical flaw in the conditional checks governing middleware behavior, the system fails to block unauthenticated requests when specific environmental variables or configuration values are missing.

Technically, the vulnerability stems from an incomplete implementation of the authentication gatekeeping mechanism. When PRAISONAI_API_KEY or PRAISONAI_JWT_SECRET environment variables are not defined, or when the corresponding recipe-specific authentication values are absent, the middleware logic incorrectly defaults to allowing requests through rather than denying them. This behavior effectively bypasses the intended security controls, rendering the configured authentication mechanisms inert under these specific configuration states. Consequently, any client can interact with the application without providing valid credentials, as the system does not enforce the presence of required secrets before granting access to protected resources.

The operational impact of this vulnerability is severe, particularly in environments where PraisonAI is deployed for automated task execution involving sensitive tools or data processing pipelines. Unauthenticated actors gain direct access to recipe execution surfaces, allowing them to trigger connected tools and services that may have their own security implications but are now exposed without the layer of authentication intended by the system administrator. This exposure extends to input and output interfaces, potentially enabling unauthorized users to inject malicious inputs into agent workflows or exfiltrate sensitive outputs generated by the AI agents. The ability to execute recipes without authorization undermines the integrity and confidentiality guarantees provided by the platform's security model.

From a classification perspective, this vulnerability aligns with CWE-287: Improper Authentication, as the system fails to correctly verify the identity of users attempting to access protected resources. It also relates to CWE-306: Missing Authentication for Critical Function, since the core functionality of recipe execution is accessible without proper credential validation under certain conditions. In terms of the MITRE ATT&CK framework, this flaw facilitates Initial Access and potentially Command and Control if the connected tools allow remote interaction with external systems. Attackers could exploit this to perform unauthorized actions within the agent ecosystem, leveraging the trust placed in the system's internal tool integrations.

To mitigate this risk, organizations running PraisonAI must upgrade immediately to version 4.6.58 or later, where the authentication middleware logic has been corrected to strictly enforce credential validation regardless of environment variable presence. For deployments that cannot yet update, administrators should ensure that all required API keys and JWT secrets are explicitly defined in the environment configuration before starting the service. Additionally, implementing network-level access controls such as firewalls or reverse proxies with IP whitelisting can provide a supplementary layer of defense to restrict access to PraisonAI endpoints until the software patch is applied. Regular security audits should also verify that authentication middleware configurations match operational requirements and do not contain fallback states that permit unauthenticated traffic.

Responsible

GitHub M

Reservation

06/24/2026

Disclosure

09/14/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!