Intel

AIKIDO-2026-629125

agno is vulnerable to Exposure of Sensitive Information

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 6, 2026
July 6, 2026

59

CVE Score

Medium

Exposure of Sensitive Information

Are you affected? Scan for Free

TL;DR

The CustomApiTools toolkit in agno.tools.api unconditionally attached the configured Authorization: Bearer <api_key> header to every request whenever an api_key was set. When base_url was left unset, the caller-supplied endpoint was used verbatim as the full request URL, so a model- or prompt-influenced endpoint could direct the request to an attacker-controlled host while still carrying the secret API key, exfiltrating the credential and enabling server-side request forgery. The fix stops attaching the configured API-key authorization header when base_url is unset, while still honoring explicit caller-provided Authorization headers passed to make_request.

How do I fix this?

Upgrade the agno library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and using CustomApiTools with a configured api_key and no base_url.

Package

Versions

1.1.10 - 2.6.20

Fixed in 2.6.21

Background info

agno is vulnerable to Exposure of Sensitive Information in versions 1.1.10 - 2.6.20.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea