CVE-2026-48782: CWE-918: Server-Side Request Forgery (SSRF) in pydantic pydantic-ai
CVE-2026-48782 is a Server-Side Request Forgery (SSRF) vulnerability in the pydantic-ai Python framework versions 1.56.0 through 1.101.0 and 2.0.0. The vulnerability allows bypassing the cloud-metadata IP blocklist by encoding the metadata IP using certain IPv6 transition forms that were not decoded by a previous fix. This can expose cloud IAM short-term credentials when the application opts to allow local URL downloads and runs on networks routing these IPv6 transition forms. The issue is fixed in version 2.0.0b3.
AI Analysis
Technical Summary
Pydantic AI versions 1.56.0 through 1.101.0, 2.0.0b1, and 2.0.0b2 contain an SSRF vulnerability where the cloud-metadata IP blocklist can be bypassed by encoding the metadata IP in IPv6 transition forms not handled by the prior fix (CVE-2026-46678). These forms include IPv4-compatible IPv6 (::a.b.c.d), NAT64 local-use prefixes, operator-chosen NAT64 prefixes, and ISATAP. When an application using pydantic-ai enables force_download='allow-local', disabling the default block on private/internal IPs, and runs on networks routing these IPv6 forms (e.g., NAT64-configured or ISATAP tunnel networks), the IPv6 wrapper is delivered to the IPv4 metadata endpoint, exposing cloud IAM short-term credentials. Standard dual-stack cloud VMs or containers not routing these forms are not affected in practice. The vulnerability is an incomplete fix of a previous SSRF issue and has been addressed in version 2.0.0b3.
Potential Impact
Successful exploitation can expose cloud IAM short-term credentials by bypassing the cloud-metadata IP blocklist via SSRF. This can lead to unauthorized access to cloud resources. The vulnerability requires network conditions that route specific IPv6 transition forms and the application to opt into allowing local URL downloads, limiting the practical attack surface.
Mitigation Recommendations
A fix is available in pydantic-ai version 2.0.0b3. Users should upgrade to this version to remediate the vulnerability. No official remediation level is stated, but the vendor has addressed the issue in the specified version. Until upgrading, avoid enabling force_download='allow-local' on networks routing the affected IPv6 transition forms.
CVE-2026-48782: CWE-918: Server-Side Request Forgery (SSRF) in pydantic pydantic-ai
Description
CVE-2026-48782 is a Server-Side Request Forgery (SSRF) vulnerability in the pydantic-ai Python framework versions 1.56.0 through 1.101.0 and 2.0.0. The vulnerability allows bypassing the cloud-metadata IP blocklist by encoding the metadata IP using certain IPv6 transition forms that were not decoded by a previous fix. This can expose cloud IAM short-term credentials when the application opts to allow local URL downloads and runs on networks routing these IPv6 transition forms. The issue is fixed in version 2.0.0b3.
CVSS v3.1
Score 6.8medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Pydantic AI versions 1.56.0 through 1.101.0, 2.0.0b1, and 2.0.0b2 contain an SSRF vulnerability where the cloud-metadata IP blocklist can be bypassed by encoding the metadata IP in IPv6 transition forms not handled by the prior fix (CVE-2026-46678). These forms include IPv4-compatible IPv6 (::a.b.c.d), NAT64 local-use prefixes, operator-chosen NAT64 prefixes, and ISATAP. When an application using pydantic-ai enables force_download='allow-local', disabling the default block on private/internal IPs, and runs on networks routing these IPv6 forms (e.g., NAT64-configured or ISATAP tunnel networks), the IPv6 wrapper is delivered to the IPv4 metadata endpoint, exposing cloud IAM short-term credentials. Standard dual-stack cloud VMs or containers not routing these forms are not affected in practice. The vulnerability is an incomplete fix of a previous SSRF issue and has been addressed in version 2.0.0b3.
Potential Impact
Successful exploitation can expose cloud IAM short-term credentials by bypassing the cloud-metadata IP blocklist via SSRF. This can lead to unauthorized access to cloud resources. The vulnerability requires network conditions that route specific IPv6 transition forms and the application to opt into allowing local URL downloads, limiting the practical attack surface.
Mitigation Recommendations
A fix is available in pydantic-ai version 2.0.0b3. Users should upgrade to this version to remediate the vulnerability. No official remediation level is stated, but the vendor has addressed the issue in the specified version. Until upgrading, avoid enabling force_download='allow-local' on networks routing the affected IPv6 transition forms.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-22T20:18:20.365Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a31d9030b89be68884780e3
Added to database: 06/16/2026, 23:15:15 UTC
Last enriched: 06/24/2026, 16:42:36 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 123
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.