/

CVE-2026-108818

Severity:

HIGH RISK

(7.3)

Authentication Bypass (CWE-287) in agno Auth Module

CVE-2026-108818

Deferred

Vulnerability type

Category:

Authentication Bypass

CWE:

CWE-287, CWE-306

Impact:

Unauthorized access

Severity:

HIGH RISK

(7.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A vulnerability in agno's authentication dependency handling may allow remote requests to bypass authentication by manipulating the security_key argument. Where the affected authentication path protects sensitive functionality, an unauthenticated attacker could access operations intended for authorized users.

A vulnerability in agno's authentication dependency handling may allow remote requests to bypass authentication by manipulating the security_key argument. Where the affected authentication path protects sensitive functionality, an unauthenticated attacker could access operations intended for authorized users.

Affected context

The issue occurs in agno deployments using the affected authentication logic in auth.py, particularly where get_authentication_dependency processes the security_key argument for remotely reachable functionality. Risk depends on whether the affected endpoint is exposed and whether authentication is relied upon as its primary access control.

The issue occurs in agno deployments using the affected authentication logic in auth.py, particularly where get_authentication_dependency processes the security_key argument for remotely reachable functionality. Risk depends on whether the affected endpoint is exposed and whether authentication is relied upon as its primary access control.

Exploit preconditions

  • Attack surface: A remotely reachable agno application or API using the

affected authentication dependency

  • Required access: Network access to the exposed authentication-protected

functionality; valid credentials may not be required

  • Trigger point: Processing of the security_key argument by

get_authentication_dependency

  • Why exploitation is possible: Improper handling of the security key can

cause the authentication check to be skipped or treated as satisfied

  • Attack surface: A remotely reachable agno application or API using the

affected authentication dependency

  • Required access: Network access to the exposed authentication-protected

functionality; valid credentials may not be required

  • Trigger point: Processing of the security_key argument by

get_authentication_dependency

  • Why exploitation is possible: Improper handling of the security key can

cause the authentication check to be skipped or treated as satisfied

Why this happens

The underlying bug is an authentication validation failure. The affected dependency-handling logic does not reliably enforce that the supplied security_key represents an authorized identity or valid authentication state. This maps primarily to CWE-287, Improper Authentication, and is also consistent with CWE-306, Missing Authentication for Critical Function, when protected functionality can be reached without an effective authentication check.

The underlying bug is an authentication validation failure. The affected dependency-handling logic does not reliably enforce that the supplied security_key represents an authorized identity or valid authentication state. This maps primarily to CWE-287, Improper Authentication, and is also consistent with CWE-306, Missing Authentication for Critical Function, when protected functionality can be reached without an effective authentication check.

Potential impact

  • An attacker may access protected API functionality without authentication.
  • Unauthorized users could read, modify, or delete data exposed through affected operations.
  • An attacker could perform privileged actions using the application's permissions.
  • The vulnerability could enable follow-on compromise if sensitive administrative functions are exposed.
  • An attacker may access protected API functionality without authentication.
  • Unauthorized users could read, modify, or delete data exposed through affected operations.
  • An attacker could perform privileged actions using the application's permissions.
  • The vulnerability could enable follow-on compromise if sensitive administrative functions are exposed.

General mitigation guidance

Mitigation generally focuses on making authentication mandatory and fail-closed for every protected operation. Authentication decisions should use a well-defined, validated security-key format, reject missing or ambiguous values, and avoid treating malformed input as authenticated. Authorization should be enforced independently at the operation and resource level, with least-privilege service identities and minimal exposure of administrative endpoints. Trusted identity information should come from a controlled authentication component rather than directly from mutable request parameters, and security-sensitive behavior should be covered by negative authentication tests.

Mitigation generally focuses on making authentication mandatory and fail-closed for every protected operation. Authentication decisions should use a well-defined, validated security-key format, reject missing or ambiguous values, and avoid treating malformed input as authenticated. Authorization should be enforced independently at the operation and resource level, with least-privilege service identities and minimal exposure of administrative endpoints. Trusted identity information should come from a controlled authentication component rather than directly from mutable request parameters, and security-sensitive behavior should be covered by negative authentication tests.

How teams detect issues like this

Detection approaches include static analysis and code review for conditional branches that accept missing, malformed, empty, or unexpected security-key values; checks for protected routes lacking explicit authentication dependencies; and tests that verify unauthenticated and incorrectly authenticated requests are rejected. Runtime monitoring can alert on successful access to protected operations without a corresponding valid authentication event. CI policy checks and automated review tools may help identify missing authentication enforcement and fail-open logic.

Detection approaches include static analysis and code review for conditional branches that accept missing, malformed, empty, or unexpected security-key values; checks for protected routes lacking explicit authentication dependencies; and tests that verify unauthenticated and incorrectly authenticated requests are rejected. Runtime monitoring can alert on successful access to protected operations without a corresponding valid authentication event. CI policy checks and automated review tools may help identify missing authentication enforcement and fail-open logic.

Sources

SourceLink
github.comgithub.com/Agno-agi/Agno/
github.comgithub.com/Agno-agi/Agno/issues/10051
github.comgithub.com/ybyu-ieu/agno-security-advisories/blob/main/advisories/agno-agentos-no-authentication-by-default.md
vuldb.comvuldb.com/cve/CVE-2026-108818
vuldb.comvuldb.com/submit/964162
vuldb.comvuldb.com/submit/964163
vuldb.comvuldb.com/vuln/416595
vuldb.comvuldb.com/vuln/416595/cti

Frequently asked

questions

Potentially. Exploitation can occur over the network when an affected

authentication-protected agno function is exposed to an attacker.

Not necessarily. The reported issue involves missing or bypassed

authentication, although network reachability and endpoint exposure remain

necessary conditions.

Enforce authentication using fail-closed validation, reject invalid or

absent security keys, and apply authorization checks independently to each

sensitive operation.

Use centralized authentication middleware, minimize trust in request

parameters, add negative access-control tests, and continuously review

exposed endpoints for consistent authentication enforcement.

Potentially. Exploitation can occur over the network when an affected

authentication-protected agno function is exposed to an attacker.

Not necessarily. The reported issue involves missing or bypassed

authentication, although network reachability and endpoint exposure remain

necessary conditions.

Enforce authentication using fail-closed validation, reject invalid or

absent security keys, and apply authorization checks independently to each

sensitive operation.

Use centralized authentication middleware, minimize trust in request

parameters, add negative access-control tests, and continuously review

exposed endpoints for consistent authentication enforcement.

Find out what's already
exploitable in your codebase.