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
- 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 · 7 tracked dependents
Related items
- MediumAI Agents Navigate Unfamiliar OT Systems and Move Equipment in Minutes, Booz Allen FindsSimilar attack · SecurityWeek
- MediumHow Claude Code’s 256KB blind spot put developers’ secrets in the preview paneSimilar attack · CSO Online
- InfoHow to Run a Deepfake Readiness Drill Before a Cloned Voice Calls Your TeamSimilar attack · The Hacker News
- InfoResearchers Used a Public OpenAI Model to Build a $250,000 Chrome Full-Chain Exploit in Six DaysSimilar attack · The Hacker News
- MediumAn AI Agent Found a Critical OTP Bypass in Production. The Attack Was the Easy Part.Similar attack · The Hacker News