Skip to main content

Python CVE-2026-34952

CRITICAL
Missing Authentication for Critical Function (CWE-306)
2026-04-01 https://github.com/MervinPraison/PraisonAI GHSA-cfh6-vr3j-qc3g
9.1
CVSS 3.1 · Vendor: https://github.com/MervinPraison/PraisonAI
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect to PraisonAI Gateway /info endpoint
  2. Delivery
    Enumerate all registered agent IDs
  3. Exploit
    Establish WebSocket connection to /ws
  4. Execution
    Send arbitrary messages to target agents
  5. Impact
    Compromise 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 /ws and HTTP endpoint /info to enumerate agents and send arbitrary messages without authentication.

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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pypi praisonai fix: 4.5.97

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

Vendor (https://github.com/MervinPraison/PraisonAI) PRIMARY 9.1 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch released
Apr 02, 2026 - 14:30 nvd
Patch available
CVE Published
Apr 01, 2026 - 23:28 nvd
CRITICAL 9.1

DescriptionCVE.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)

python
# 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 client

PoC

bash
# 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 accepted

Impact

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

python
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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.0%
Top 89% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

pkg:pip/praisonai

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy