CVE-2026-34953: Praisonai Authentication Bypass Vulnerability
CRITICALCVE-2026-34953 is a CRITICAL (CVSS 9.1) authentication bypass vulnerability (CWE-863: Incorrect Authorization) affecting Praisonai libraries in the PyPI ecosystem. The issue involves praisonai has authentication bypass via oauthmanager.validate_token(). Remediation is available by upgrading affected packages to version 4.5.97.
CVE-2026-34953 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-34953
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-34953, 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. 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-34953 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-34953?
Which Praisonai versions are affected?
What version fixes CVE-2026-34953?
Is praisonai affected?
What is the CVSS score of CVE-2026-34953?
What CWE is associated with CVE-2026-34953?
How can I check PyPI dependencies for CVE-2026-34953?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-98f9-fqg5-hvq5",
"modified" : "2026-04-06T22:54:25Z",
"published" : "2026-04-01T23:29:01Z",
"aliases" : [ "CVE-2026-34953" ],
"summary" : "PraisonAI Has Authentication Bypass via OAuthManager.validate_token()",
"details" : "### Summary\n\n`OAuthManager.validate_token()` returns `True` for any token not found in its internal store, which is empty by default. Any HTTP request to the MCP server with an arbitrary Bearer token is treated as authenticated, granting full access to all registered tools and agent capabilities.\n\n### Details\n\n`oauth.py:364` (source) -> `oauth.py:374` (loop miss) -> `oauth.py:381` (sink)\n```python\n# source\ndef validate_token(self, token: str) -> bool:\n for stored_token in self._tokens.values():\n if stored_token.access_token == token:\n return not stored_token.is_expired()\n\n# sink -- _tokens is empty by default, loop never executes, falls through\n return True\n```\n\n### PoC\n```bash\n# install: pip install -e src/praisonai\n# start server: praisonai mcp serve --transport http-stream --port 8080\n\ncurl -s -X POST http://127.0.0.1:8080/mcp \\\n -H \"Authorization: Bearer fake_token_abc123\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"jsonrpc\":\"2.0\",\"method\":\"tools/list\",\"id\":1}'\n\n# expected output: 200 OK with full tool list (50+ tools)\n# including praisonai.agent.run, praisonai.workflow.run, praisonai.containers.file_write\n```\n\n### Impact\n\nAny unauthenticated attacker with network access to the MCP HTTP server can call all registered tools including agent execution, workflow runs, container file read/write, and skill loading. The server binds to `0.0.0.0` by default with no API key required.\n\n### Suggested Fix\n```python\ndef validate_token(self, token: str) -> bool:\n for stored_token in self._tokens.values():\n if stored_token.access_token == token:\n return not stored_token.is_expired()\n # Unknown tokens must be rejected.\n # For external/JWT tokens, call the introspection endpoint here before returning.\n return False\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-98f9-fqg5-hvq5"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-34953"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/MervinPraison/PraisonAI"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-01T23:29:01Z",
"nvd_published_at" : "2026-04-03T23:17:06Z"
}
}