{"cve":"CVE-2026-107289","nvd":{"published":"2026-10-08T16:17:04.337","modified":"2026-10-13T14:34:48.123","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.8},"cwes":["CWE-918","CWE-1289"],"references":["https://github.com/pydantic/pydantic-ai/commit/02157e1b87bd45d3f2e111ce07afdf89f9fb0e5b","https://github.com/pydantic/pydantic-ai/commit/4da70591460f51a8c4f128eaeef70a33340dbd55","https://github.com/pydantic/pydantic-ai/pull/8401","https://github.com/pydantic/pydantic-ai/pull/8402","https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.6"],"products":["pydantic:pydantic_ai"],"source":"nvd","synced_at":"2026-10-19T22:58:01.639778232+00:00"},"epss":{"cve":"CVE-2026-107289","score":0.0039,"percentile":0.32848,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-vmxc-h2x2-jmf3","url":"https://osv.dev/vulnerability/GHSA-vmxc-h2x2-jmf3","summary":"Pydantic AI: SSRF cloud-metadata blocklist bypass via IPv6 zone identifiers","modified":"2026-10-15T14:56:18.251254037Z","packages":[{"ecosystem":"PyPI","name":"pydantic-ai","purl":"pkg:pypi/pydantic-ai","ranges":[">=1.56.0 <1.107.6"],"fixed":["1.107.6"]},{"ecosystem":"PyPI","name":"pydantic-ai","purl":"pkg:pypi/pydantic-ai","ranges":[">=2.0.0b1 <2.44.0"],"fixed":["2.44.0"]},{"ecosystem":"PyPI","name":"pydantic-ai-slim","purl":"pkg:pypi/pydantic-ai-slim","ranges":[">=1.56.0 <1.107.6"],"fixed":["1.107.6"]},{"ecosystem":"PyPI","name":"pydantic-ai-slim","purl":"pkg:pypi/pydantic-ai-slim","ranges":[">=2.0.0b1 <2.44.0"],"fixed":["2.44.0"]}]},{"id":"PYSEC-2026-4282","url":"https://osv.dev/vulnerability/PYSEC-2026-4282","summary":"Pydantic AI: SSRF cloud-metadata blocklist bypass via IPv6 zone identifiers","modified":"2026-10-15T14:56:18.251254037Z","packages":[{"ecosystem":"PyPI","name":"pydantic-ai","purl":"pkg:pypi/pydantic-ai","ranges":[">=1.56.0 <1.107.6",">=2.0.0b1 <2.44.0"],"fixed":["1.107.6","2.44.0"]}]},{"id":"PYSEC-2026-4291","url":"https://osv.dev/vulnerability/PYSEC-2026-4291","summary":"Pydantic AI: SSRF cloud-metadata blocklist bypass via IPv6 zone identifiers","modified":"2026-10-15T14:56:18.251254037Z","packages":[{"ecosystem":"PyPI","name":"pydantic-ai-slim","purl":"pkg:pypi/pydantic-ai-slim","ranges":[">=1.56.0 <1.107.6",">=2.0.0b1 <2.44.0"],"fixed":["1.107.6","2.44.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}