Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

agno-agi/agno
main @ c581db4
42
Fixes
1
CVEs
CRITICAL
Peak severity
21.2%
Coverage
Highlights
Auth Bypass: 20 prior fixes. Scrutinize any change in this area.
libs/agno/agno/agent/agent.py: most-fixed (3 issues). Treat as high-risk during review.
31 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Remote Code Execution: The application dynamically executed untrusted string types via eval() during type parsing. This allowed remote code execution via malformed model metadata or tool responses. Remediation requires strict static type mapping dictionary lookups.
Auth Bypass: The global JWTMiddleware failed to validate signature presence when signature verification was toggled or when empty/unconfigured JWT secrets were passed, leading to complete authentication bypasses.
Auth Bypass: Multiple routers and database drivers (including Async Postgres and memory managers) historically allowed clients to fetch, rename, or delete session and memory data using arbitrary user_id query parameters or unisolated identifiers instead of strictly binding operations to the validated JWT subject.