Vulnerability  ·  2026-12-01

agent-zero missing authentication in requires_auth middleware (public exploit)

VulnerabilityHigh impactGlobalCVE-2026-138389
Before the fix, agent-zero's requires_auth middleware in helpers/api.py allowed requests without enforcing authentication, exposing API endpoints remotely; the exploit is public and CISA SSVC flags exploitation as PoC (CVSS 3.1 7.3, CWE-287/306). The CLI/API of this autonomous agent framework is reachable by unauthenticated remote callers.
agent-zero is a fast-moving open-source autonomous agent framework. An unauthenticated caller reaching its API can drive the agent's tools, read its sessions and possibly invoke code execution affordances — a direct attack on a live agent deployment.
The requires_auth function in helpers/api.py fails to enforce authentication in the middleware, so a remote unauthenticated attacker can reach API endpoints intended to require a session, gaining access to agent state, tool execution and session data (CWE-287/CWE-306). The exploit is now public.
agent0ai agent-zero <= 2.16 (fix PR #2079 pending)
No tagged fix yet; track PR #2079 / issue #2019, and restrict network exposure / place the API behind an authenticated reverse proxy until patched.
NVD CVE-2026-138389agent-zero PR #2079 / issue #2019
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →