Python
CVE-2026-34952
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessConnect to PraisonAI Gateway /info endpoint
-
DeliveryEnumerate all registered agent IDs
-
ExploitEstablish WebSocket connection to /ws
-
ExecutionSend arbitrary messages to target agents
-
ImpactCompromise agent functionality and data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions — remote unauthenticated exploitation against default PraisonAI Gateway installations. Any network client can connect to WebSocket endpoint |
| Impact | This vulnerability presents critical real-world risk for internet-exposed PraisonAI Gateway deployments despite no CISA KEV listing or EPSS score (too recent for historical exploitation data). The CVSS 3.1 score of 9.1 accurately reflects severity: network attack vector (AV:N) means any remote attacker can reach vulnerable instances, low attack complexity (AC:L) requires no special conditions, and no privileges required (PR:N) eliminates authentication as a barrier. The scope remains unchanged (S:U) but confidentiality and integrity impacts are both high (C:H/I:H) as attackers gain full read/write access to agent message buses and can exfiltrate conversation data or inject malicious tool commands. The publicly available POC with tested installation steps and working Python exploit code confirms this is immediately weaponizable-not theoretical. The SSVC framework would categorize this as exploitation state 'POC' with automatable attack (curl + websockets library), technical impact of total system compromise for the gateway component, and situated mission impact depending on agent permissions. Organizations running PraisonAI Gateway on accessible networks face active risk of agent hijacking, data theft from AI conversations, and unauthorized tool execution until patched. |
| Exploit ScenarioDerived | An external attacker scans for open port 8765 on the target network and identifies a running PraisonAI Gateway instance. The attacker first issues an HTTP GET request to http://target:8765/info with no credentials, receiving a JSON response listing all registered agent IDs such as 'assistant', 'researcher', and 'code_executor' along with active session counts. Using the Python websockets library, the attacker establishes a WebSocket connection to ws://target:8765/ws without providing any authentication token. The server accepts the connection and assigns a client_id. The attacker sends a JSON message with type 'join' and agent_id 'assistant' to subscribe to that agent's message channel, then injects a malicious message instructing the agent to execute a tool that reads sensitive files from the deployment environment or exfiltrates conversation history containing proprietary business data to an attacker-controlled endpoint. Since publicly available exploit code exists with complete installation and execution steps, this attack requires minimal skill and can be automated for mass scanning. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 02, 2026
Missing authentication in PraisonAI Gateway 4.5.87 allows remote unauthenticated attackers to hijack AI agent infrastructure via exposed WebSocket endpoints and topology enumeration. The /ws WebSocket endpoint and /info REST endpoint accept connections without token validation, enabling arbitrary message injection to registered agents and their tool sets. While the GatewayConfig includes an auth_token field, the implementation never enforces it. Publicly available exploit code exists with concrete proof-of-concept demonstrating unauthenticated connection and agent enumeration. EPSS data not available for this recent CVE, but the network-accessible attack vector (AV:N), low complexity (AC:L), and zero authentication requirement (PR:N) combined with working POC code create immediate risk for exposed instances.
RemediationAI
Apply the vendor-recommended authentication fix to gateway/server.py by modifying the websocket_endpoint async function to validate bearer tokens before accepting WebSocket connections. The patch implementation should extract tokens from either the query parameter 'token' or the Authorization header (stripping 'Bearer ' prefix), compare against GatewayConfig.auth_token, and close the connection with code 4001 if validation fails or if auth_token is configured but no valid token is provided. Organizations should immediately review network exposure of PraisonAI Gateway instances and implement firewall rules restricting access to TCP port 8765 (default) from trusted IP ranges only until patching is complete. Verify that GatewayConfig specifies a strong auth_token value in deployment configurations post-patch. Monitor WebSocket connection logs for unauthorized access attempts by reviewing client_id assignments and agent join requests from unexpected sources. Consult the official security advisory at https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-cfh6-vr3j-qc3g for updated patch releases and additional mitigation guidance from the maintainer.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PraisonAI Gateway is a Python-based WebSocket orchestration layer for multi-agent AI systems (pkg:pip/praisonai). The vulnerability stems from CWE-306 (Missing Authentication for Critical Function) in gateway/server.py where two endpoints handle client connections: the HTTP /info endpoint exposes complete agent topology metadata (agent IDs, session counts, client counts) as JSON with no access controls, while the /ws WebSocket endpoint calls websocket.accept() unconditionally before any credential checks. Although the GatewayConfig data structure includes an auth_token field for bearer token authentication, the websocket_endpoint handler performs no validation against this token-neither from query parameters nor Authorization headers. This allows any network client to establish a WebSocket session, join agent channels using discovered agent_id values from /info, and send arbitrary JSON payloads that trigger tool execution, file system operations, and external API calls within the agent runtime environment.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Primary rating from Vendor (https://github.com/MervinPraison/PraisonAI) · only source for this CVE.
CVSS VectorVendor: https://github.com/MervinPraison/PraisonAI
Lifecycle Timeline
2DescriptionCVE.org
Summary
The PraisonAI Gateway server accepts WebSocket connections at /ws and serves agent topology at /info with no authentication. Any network client can connect, enumerate registered agents, and send arbitrary messages to agents and their tool sets.
Details
gateway/server.py:242 (source) -> gateway/server.py:250 (sink)
# source -- /info leaks all agent IDs with no auth
async def info(request):
return JSONResponse({
"agents": list(self._agents.keys()),
"sessions": len(self._sessions),
"clients": len(self._clients),
})
# sink -- WebSocket accepted unconditionally, no token check
async def websocket_endpoint(websocket: WebSocket):
await websocket.accept()
client_id = str(uuid.uuid4())
self._clients[client_id] = websocket
# processes any message from any clientPoC
# tested on: praisonai==4.5.87 (source install)
# install: pip install -e src/praisonai
# start server:
# python3 -c "import asyncio; from praisonai.gateway.server import WebSocketGateway; asyncio.run(WebSocketGateway(host='127.0.0.1', port=8765).start())" &
# Step 1 - enumerate agents, no auth
curl -s http://127.0.0.1:8765/info
# expected output: {"name":"PraisonAI Gateway","version":"1.0.0","agents":[...],"sessions":0,"clients":0}
# Step 2 - connect to WebSocket, no token
python3 -c "
import asyncio, websockets, json
async def run():
async with websockets.connect('ws://127.0.0.1:8765/ws') as ws:
print('Connected with no auth')
await ws.send(json.dumps({'type': 'join', 'agent_id': 'assistant'}))
print(await asyncio.wait_for(ws.recv(), timeout=3))
asyncio.run(run())
"
# expected output: Connected with no auth
# {"type": ...} -- server responds, connection acceptedImpact
Any unauthenticated attacker with network access can connect to the WebSocket gateway, enumerate all registered agents via /info, and send arbitrary messages to agents including tool execution, file reads, and API calls. GatewayConfig has an auth_token field that is never enforced in the handler.
Suggested Fix
async def websocket_endpoint(websocket: WebSocket):
token = websocket.query_params.get("token") or \
websocket.headers.get("Authorization", "").removeprefix("Bearer ")
if self._config.auth_token and token != self._config.auth_token:
await websocket.close(code=4001, reason="Unauthorized")
return
await websocket.accept()Executive ViewAI
PraisonAI Gateway 4.5.87 contains a critical authentication bypass vulnerability affecting WebSocket and REST endpoints, allowing unauthenticated remote attackers to enumerate and hijack AI agent infrastructure without credentials. Organizations running exposed instances face immediate risk of unauthorized access to agent tool sets and message injection capabilities, potentially compromising AI-driven business processes and sensitive data processed by agents.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network access to Gateway instances using firewall rules or security groups-permit only trusted internal clients to /ws and /info endpoints; (2) Deploy a reverse proxy or WAF with token validation that re-authenticates all requests before forwarding to the Gateway; (3) Monitor WebSocket and /info endpoint access logs for unexpected connection sources and enumerate unusual agent enumeration activity; (4) Disable public Internet exposure of the Gateway and route all access through authenticated VPN or private networks; (5) Review GatewayConfig auth_token settings and ensure secrets management practices are in place for any future patched version.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
GHSA-cfh6-vr3j-qc3g
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB