CVE-2026-138389
Deferred Deferred - Pending Action

Authentication Bypass in agent0ai agent-zero via API

Vulnerability report for CVE-2026-138389, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-30

Last updated on: 2026-11-30

Assigner: VulDB

Description

A vulnerability was detected in agent0ai agent-zero up to 2.16. Affected is the function requires_auth of the file helpers/api.py of the component Authentication middleware. Performing a manipulation results in missing authentication. The attack can be initiated remotely. The exploit is now public and may be used. The pull request to fix this issue awaits acceptance.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-30
Last Modified
2026-11-30
Generated
2026-11-30
AI Q&A
2026-11-30
EPSS Evaluated
N/A
NVD
EUVD

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-287 When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.
CWE-306 The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects Agent Zero up to version 2.16. It involves a flaw in the authentication middleware where the absence of the AUTH_LOGIN line in the usr/.env file disables all HTTP and WebSocket authentication without warning. The system defaults to allowing unauthenticated access if credentials are missing, leading to potential unauthorized remote control of the agent.

Detection Guidance

Check if the AUTH_LOGIN line is missing in the usr/.env file of Agent Zero installations up to version 2.16. Inspect the file for the presence of AUTH_LOGIN and AUTH_PASSWORD. If either is missing, authentication may be disabled silently.

Impact Analysis

An attacker on the same network could exploit this by removing the AUTH_LOGIN line, restarting the application, and gaining full unauthenticated access. This allows remote execution of shell or Python code, file access, browser control, and interaction with MCP servers. Essentially, it could lead to complete compromise of the system running Agent Zero.

Compliance Impact

This vulnerability likely violates compliance requirements for data protection and access control, such as GDPR's principle of least privilege and HIPAA's access controls. Unauthenticated access could lead to unauthorized data exposure or modification, resulting in non-compliance with these regulations.

Mitigation Strategies

Update Agent Zero to the latest version where the fix is applied. Ensure AUTH_LOGIN and AUTH_PASSWORD are present in usr/.env. Use atomic writes for .env file modifications to prevent corruption. Restart the application to enforce authentication.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-138389. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...