/

CVE-2026-47396

Severity:

CRITICAL RISK

(9.8)

Missing Auth on Agent Control API (CWE-306) in PraisonAI

CVE-2026-47396

Deferred

Vulnerability type

Category:

Missing Authentication for Critical Function

CWE:

CWE-284, CWE-306

Impact:

Unauthenticated Remote Control of AI Agents

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

PraisonAI's call server exposes a network-facing agent control API without authentication when the CALL_SERVER_TOKEN is not configured, due to a fail-open authentication helper.

In this state, any reachable client can list, inspect, invoke, and unregister agents over the network, effectively gaining remote control of the agent environment whenever the call server is started without a token.

Affected context

This vulnerability arises in PraisonAI deployments that:

  • Run the bundled call server component bound to 0.0.0.0 or otherwise reachable over the network
  • Rely on the praisonai.api.call module, which mounts the praisonai.api.agent_invoke router
  • Start the call server without explicitly setting the CALL_SERVER_TOKEN environment variable

In such configurations, the exposed agent control API may be accessible from other hosts on the same network, or from the public internet if the service is externally routed.

Exploit preconditions

  • Attack surface: Network-accessible call server endpoints provided by praisonai.api.call and praisonai.api.agent_invoke
  • Required access: Ability to send HTTP requests to the call server over the network (no credentials required when CALL_SERVER_TOKEN is unset)
  • Trigger point: Invocation of agent-control endpoints that depend on the verify_token() helper for access control
  • Why exploitation is possible: The authentication helper is implemented to fail open when the CALL_SERVER_TOKEN configuration is missing, so all protected routes effectively bypass authentication under misconfiguration

Why this happens

The core issue is an access control design flaw where authentication and authorization logic depends on a configuration value, but is implemented in a fail-open manner.

The verify_token() helper, which is intended to enforce token-based access to sensitive agent-control operations, treats an unset CALL_SERVER_TOKEN as a non-error condition and allows requests to proceed.

This maps to CWE-306: Missing Authentication for Critical Function and CWE-284: Improper Access Control, because critical operations—such as listing, invoking, and unregistering agents—lack enforced authentication under a common deployment condition.

Conceptually, the system assumes a secure configuration but does not enforce it, turning a configuration omission into full unauthenticated access to powerful API functions.

Potential impact

  • An attacker could remotely list available agents and inspect their metadata and instructions, potentially revealing sensitive prompts or operational logic.
  • An attacker could invoke agents arbitrarily, causing unintended actions, unauthorized processing, or resource consumption.
  • An attacker could unregister or disable agents, leading to denial of service or disruption of multi-agent workflows.
  • An attacker could manipulate agent behavior indirectly by orchestrating sequences of invocations that affect downstream systems or users.
  • An attacker could use the exposed control plane as an entry point to broader system compromise, depending on what the agents are permitted to access.

General mitigation guidance

Mitigation focuses on enforcing strict, explicit authentication for all critical control-plane operations and avoiding fail-open behavior in authentication helpers.

Useful defensive patterns include:

  • Designing authentication helpers to fail closed when required configuration (such as tokens or keys) is missing, ensuring critical routes are inaccessible until security settings are in place.
  • Applying centralized access control for agent management endpoints, rather than relying on ad hoc checks at individual routes.
  • Treating environment-based secrets and configuration as mandatory for network-exposed services, and validating their presence at startup with clear failure modes.
  • Restricting network exposure of control-plane services by binding to loopback interfaces by default and requiring explicit configuration to listen on external interfaces.
  • Applying least-privilege principles so that even authenticated tokens grant only the minimal set of agent operations required for a given use case.

How teams detect issues like this

Detection typically combines configuration validation, runtime checks, and code-level review:

  • Implement startup-time checks that verify required security configuration (such as CALL_SERVER_TOKEN) is set, and emit warnings or fail fast when missing.
  • Use configuration scanning or policy-as-code tools to flag services that bind to 0.0.0.0 and expose administrative or control-plane APIs without authentication.
  • In code review, look for authentication and authorization helpers that treat missing credentials or configuration as success, or that are inconsistently applied to sensitive routes.
  • Apply static analysis rules to identify critical functions (for example, agent listing, invocation, or deregistration) that lack enforced authentication or rely on weak conditional checks.
  • Monitor logs for anonymous or unauthenticated access patterns to agent-control endpoints, especially from unexpected network locations, as indicators of potential misuse.

Sources

SourceLink
github.comgithub.com/MervinPraison/PraisonAI/commit/ef79b7a0561796ad9807f0f09538c25cc78d3619
github.comgithub.com/MervinPraison/PraisonAI/security/advisories/GHSA-86qc-r5v2-v6x6

Frequently asked

questions

Yes, it can be remotely exploitable whenever the call server is reachable over the network and the CALL_SERVER_TOKEN is not configured, allowing unauthenticated access to the agent control API.

An attacker only needs network-level access to the call server endpoint; no credentials are required under the affected configuration, so any client that can reach the service can interact with the agent control plane.

The safest pattern is to enforce fail-closed authentication: critical endpoints should refuse all access unless required authentication configuration is present and validated, and the service should clearly fail startup when security-critical settings are missing.

To prevent similar problems, design control-plane services with secure defaults (such as local-only binding and mandatory authentication), treat absence of security configuration as an error, and incorporate configuration validation, code review for access control paths, and automated checks that ensure sensitive routes are always protected.

Find out what's already
exploitable in your codebase.