GHSA-cqp8-fcvh-x7r3: Pydantic AI: SSRF cloud-metadata blocklist bypass via IPv4-mapped IPv6 (Incomplete fix of CVE-2026-25580)
- Identifiers
- CVE-2026-46678GHSA-cqp8-fcvh-x7r3
- Published
- Record updated
- Affected
- pydantic-ai-slim >= 1.56.0, < 1.99.0
- pydantic-ai >= 1.56.0, < 1.99.0
- Fixed in
- 1.99.0
- pydantic-ai-slim 1.99.0 released May 19, 2026, 1 day before disclosure
- pydantic-ai 1.99.0 released May 19, 2026, 1 day before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.4%
Summary
Pydantic AI versions with an incomplete fix for GHSA-2jrp-274c-jhv3 / CVE-2026-25580 let an attacker bypass the cloud-metadata blocklist by encoding the metadata IP in IPv6 transition forms (IPv4-mapped IPv6, 6to4, or NAT64). This affects applications that set force_download='allow-local' on a URL influenced by untrusted input, and dual-stack or translated networks can route the request to the IPv4 metadata endpoint, exposing cloud IAM short-term credentials.
Mitigation
Upgrade to 1.99.0 or later. Until then, avoid passing force_download='allow-local' on any URL that untrusted input could influence, or resolve the hostname yourself and validate it, including IPv6-encoded forms, against your own metadata blocklist before constructing the FileUrl.
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
- MediumCVE-2026-138033: mcp-video-analyzer server-side request forgery via video URL inputsSimilar attack · NVD/CVE Database
- MediumSwitzerland Confirms AI-Assisted Cyberattacks Breached Critical Infrastructure OperatorsSimilar attack · The Hacker News
- MediumCVE-2026-137668: ONNX ONNXMLTools cross site scripting in visualize_model via producer_nameSimilar attack · NVD/CVE Database
- MediumCVE-2026-137667: ONNX ONNXMLTools cross site scripting in Model VisualizationSimilar attack · NVD/CVE Database
- InfoEvaluating transformer based language model robustness under low rate training data poisoningSimilar attack · OpenAlex (peer-reviewed AI security)