CVE-2026-140348: PraisonAI claw's AUTH_ENFORCE only guarded /api/ paths, so anyone could call the same handlers unprefixed (/agents, /teams, /sessions, /run) and run the agents with no login (aiui <= 0.3.154)
praisonai claw serves the PraisonAIUI app (pip package aiui). Its AuthEnforcementMiddleware only checks paths starting with /api/, but the same handlers are also mounted at the root. With AUTH_ENFORCE=true, which the deployment docs present as the control for public exposure, an unauthenticated client could still read the configuration via /agents and /teams, list and create sessions via /sessions, and run the configured agents via /run. aiui 0.3.154 and earlier are affected; NVD says fixed in 0.3.155.
What it is
AuthEnforcementMiddleware in src/praisonaiui/server.py tests path.startswith("/api/"). The handlers for /agents, /sessions, /run and /teams are registered a second time without the /api prefix.
On a server started with AUTH_ENFORCE=true, GET /api/sessions returns 401, but GET /sessions returns 200. POST /sessions creates a session and POST /run executes the agent and returns the model's reply, with no Authorization header.
praisonai claw reaches this app through praisonaiui.server.create_app(), so claw deployments inherit the gap. The advisory (GHSA-2v5m-57pq-r9j3, published 16 November 2026) lists aiui <= 0.3.154 as affected. NVD published CVE-2026-140348 on 1 December 2026 and says versions before 0.3.155 are affected.
How to check
- Run pip show aiui and check whether the version is 0.3.154 or earlier.
- Against your own instance with AUTH_ENFORCE=true, request /sessions without a token. A 200 response means you are exposed.
How to fix
- Upgrade aiui (and praisonai) to a release later than 0.3.154.
- Until then, do not expose praisonai claw / PraisonAIUI to untrusted networks; put it behind an authenticating reverse proxy that covers every path, not only /api/.
- If an instance was publicly reachable, review sessions and agent runs, and rotate the model API keys and tool credentials the agents use.
pip show aiui | grep -i '^version'
curl -s -o /dev/null -w '%{http_code}\n' http://YOUR-HOST:PORT/sessions # 200 = unauthenticated access Sources
- criticalCVE-2026-57141: PraisonAI's codeMode tool sandbox can be escaped to run OS commands
- criticalCVE-2026-57147: praisonai-platform signs logins with the public secret dev-secret-change-me
- criticalCVE-2026-57139: PraisonAI's npm MCP server and AgentOS let anyone call tools and agents
- criticalCVE-2026-57123: praisonaiagents MCP SSE server exposes every tool with no auth