GHSA-vmxc-h2x2-jmf3: Pydantic AI: SSRF cloud-metadata blocklist bypass via IPv6 zone identifiers
- Identifiers
- CVE-2026-107289GHSA-vmxc-h2x2-jmf3
- Published
- Record updated
- Affected
- pydantic-ai-slim >= 2.0.0b1, < 2.44.0, fixed in 2.44.0, released September 17, 2026, 21 days before disclosure
- pydantic-ai-slim >= 1.56.0, < 1.107.6, fixed in 1.107.6, released September 17, 2026, 21 days before disclosure
- pydantic-ai >= 2.0.0b1, < 2.44.0, fixed in 2.44.0, released September 17, 2026, 21 days before disclosure
- and 1 more
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.4%
Summary
Pydantic AI's cloud-metadata blocklist can be bypassed by appending an IPv6 zone identifier, such as fd00:ec2::254%251, to a metadata address when local network access is enabled via force_download='allow-local' or web_fetch_tool(allow_local_urls=True). The host ignores the zone identifier on non-link-local destinations, so requests reach the metadata endpoint and can expose cloud IAM short-term credentials. This is an incomplete fix of GHSA-cqp8-fcvh-x7r3 / CVE-2026-46678 and GHSA-cg7w-rg45-pc59 / CVE-2026-48782, both follow-ups to CVE-2026-25580.
Mitigation
Upgrade to a patched version. The cloud-metadata and private-IP checks now drop an IPv6 zone identifier before evaluating the address. Workaround for unpatched versions: avoid local network access on URLs that untrusted input could influence, or reject URL hosts containing '%' before constructing the FileUrl or configuring the tool.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- pydantic-aiPyPILLM dependency since 2024-05-20 · 4 tracked dependents
- pydantic-ai-slimPyPILLM dependency since 2024-11-25 · 8 tracked dependents
Related items
- CriticalCVE-2026-118285: Azure Machine Learning server-side request forgery allows privilege elevationSimilar attack · NVD/CVE Database
- HighCVE-2026-130164: Hermes Agent code execution via screen environment file mergeSimilar attack · NVD/CVE Database
- MediumCVE-2026-135287: LiteLLM Proxy callback injection through request body callbacks fieldsSimilar attack · NVD/CVE Database
- MediumCVE-2026-135212: AiSOC missing authorization in agents service exposes other tenantsSimilar attack · NVD/CVE Database
- MediumAI Agents Zip From Flaw Discovery to Root Access in 11 MinutesSimilar attack · Dark Reading