{"id":2490,"cve":"CVE-2026-107289","cve_url":"https:\/\/www.cvedetails.com\/cve\/CVE-2026-107289\/","cwe":"CWE-918","cwe_number":918,"cwe_url":"https:\/\/cwe.mitre.org\/data\/definitions\/918","cvss_score":6.8,"published":"2026-10-08","owasp":"A10 Server-Side Request Forgery (SSRF)","odc":"Checking","cdc":"Incorrect Check","category":"Information Leakage","subcategory":"Information Disclosure","scope":"Remote","impact":"Information Disclosure","summary":"IPv6 zone ID bypasses cloud\u2011metadata blocklist via forced\u2011local URL fetch.","permalink":"https:\/\/netpack.pt\/vaitp\/vulnerability\/CVE-2026-107289\/","description":"Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.56.0 until 1.107.6 and 2.44.0, applications that opt attacker-influenced URLs into local network access through FileUrl with force_download='allow-local' or web_fetch_tool with allow_local_urls=True can bypass the cloud-metadata blocklist by appending an IPv6 zone identifier to an IPv6 metadata address. IPv6Address equality and hashing include the zone identifier, so the blocklist comparison fails even though the network stack ignores the zone on a non-link-local destination and reaches the metadata service, potentially exposing cloud IAM credentials. The opt-in settings are disabled by default, and the issue requires an IPv6-enabled environment. This issue is fixed in versions 1.107.6 and 2.44.0.","solution":"Upgrade Pydantic\u202fAI to\u202f\u2265\u202f1.107.6 (or\u202f\u2265\u202f2.44.0).","affected_component":"Pydantic AI","fixed_by_upgrading":true,"vulnerable_code":"from pydantic_ai import FileUrl, Agent\n\ndef fetch_credentials(url: str) -> str:\n    # VULNERABLE: allows attacker-controlled local URLs bypassing blocklist\n    file = FileUrl(url, force_download='allow-local')\n    data = file.read_text()\n    return data\n\ndef run():\n    agent = Agent()\n    creds = fetch_credentials(\"http:\/\/[fd00:1234::1%eth0]\/metadata\")\n    agent.store_secret(creds)\n","patched_code":"from pydantic_ai import FileUrl, Agent\n\ndef fetch_credentials(url: str) -> str:\n    # FIX: disallow local URLs to enforce blocklist\n    file = FileUrl(url, force_download='deny')\n    data = file.read_text()\n    return data\n\ndef run():\n    agent = Agent()\n    creds = fetch_credentials(\"http:\/\/[fd00:1234::1]\/metadata\")\n    agent.store_secret(creds)\n","payload_needed":true,"payload":null,"payload_status":"model_refused","published_fix":[{"repository":"pydantic\/pydantic-ai","commit_url":"https:\/\/github.com\/pydantic\/pydantic-ai\/commit\/02157e1b87bd45d3f2e111ce07afdf89f9fb0e5b","commit_subject":"Normalize IPv6 zone identifiers in URL validation (#8401)","units":[{"file":"pydantic_ai_slim\/pydantic_ai\/_ssrf.py","function":null},{"file":"pydantic_ai_slim\/pydantic_ai\/_ssrf.py","function":"is_cloud_metadata_ip"},{"file":"pydantic_ai_slim\/pydantic_ai\/_ssrf.py","function":"is_private_ip"}]}],"references":null}