← All advisories

CVE-2026-140348criticalBroken access control2026-12-01

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.

01.

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.

02.

How to check

  1. Run pip show aiui and check whether the version is 0.3.154 or earlier.
  2. Against your own instance with AUTH_ENFORCE=true, request /sessions without a token. A 200 response means you are exposed.
03.

How to fix

  1. Upgrade aiui (and praisonai) to a release later than 0.3.154.
  2. 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/.
  3. 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
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.