Skip to content
MediumVulnerability

GHSA-cqp8-fcvh-x7r3: Pydantic AI: SSRF cloud-metadata blocklist bypass via IPv4-mapped IPv6 (Incomplete fix of CVE-2026-25580)

Published
Record updated
View JSON
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.