ag2 is vulnerable to Server-Side Request Forgery (SSRF)
59
CVE Score
Medium
Server-Side Request Forgery (SSRF)
The experimental Document Agent fetches remote documents from user- or model-supplied URLs in autogen/agents/experimental/document_agent/document_utils.py without validating the request destination. Before the fix, a caller could point the agent at internal hostnames, loopback, link-local cloud metadata endpoints (for example 169.254.169.254), or other private IP ranges, and the agent would issue the request and return or ingest the response. Redirect hops were also followed without revalidation, so a public URL could redirect into the internal network. The fix adds validate_url() in url_utils.py that enforces an http/https scheme allow-list and resolves each hostname to reject loopback, link-local, private, reserved, multicast, and unspecified addresses, and applies it before the initial request, for every redirect hop, and before downloading the final content.
Upgrade the ag2 library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you use the experimental Document Agent to ingest documents from untrusted or user-supplied URLs.
0.7.5 - 0.12.3
Fixed in 0.13.0ag2 is vulnerable to Server-Side Request Forgery (SSRF) in versions 0.7.5 - 0.12.3.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.