google-adk is vulnerable to Server-Side Request Forgery (SSRF)
32
Low Risk
The LlmAgent accepts a generate_content_config whose http_options.base_url is copied into every model request and overrides the client transport. When an agent configuration is derived from untrusted input, such as a loaded agent YAML config, this redirects a credentialed model call to a host of the config author's choosing, sending the configured API key and the full prompt and response traffic to that endpoint. The fix rejects base_url in generate_content_config while leaving request-time headers, timeout, and retry options unaffected.
You are affected if you are using a version that falls within the vulnerable range and your application builds an agent from a generate_content_config that is derived from untrusted or externally supplied input, such as a loaded agent YAML configuration.
google-adk is vulnerable to Server-Side Request Forgery (SSRF) in versions 0.0.2 - 2.5.0.
Upgrade the google-adk library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant