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 pydantic-ai, a Python agent framework for Generative AI applications. Versions 1.56.0 through 1.101.0, 2.0.0b1, and 2.0.0b2 are affected. The vulnerability allows bypassing the cloud-metadata blocklist by encoding metadata IP addresses using certain IPv6 transition forms that were not properly decoded by a previous fix. This can expose cloud IAM short-term credentials when the application opts into force_download='allow-local' and runs on networks routing these IPv6 transition forms. The issue has been fixed in version 2.0.0b3.
AI Analysis
Technical Summary
This SSRF vulnerability arises because pydantic-ai's cloud-metadata blocklist can be bypassed via IPv6 transition address forms that were not decoded by the prior fix (CVE-2026-46678). Specifically, IPv4-compatible IPv6 (::a.b.c.d), NAT64 RFC 8215 local-use prefix (64:ff9b:1::/48), operator-chosen NAT64 prefixes, and ISATAP forms can be used to route requests to the underlying IPv4 metadata endpoint, exposing cloud IAM credentials. The vulnerability manifests when force_download='allow-local' is enabled, disabling the default block on private/internal IPs, and the network routes these IPv6 transition forms (e.g., NAT64-configured or ISATAP networks). Standard dual-stack cloud VMs or containers not routing these forms are not affected in practice. Deprecated IPv6 variants like IPv4-compatible and Teredo are addressed as defense-in-depth. This vulnerability is an incomplete fix of CVE-2026-46678 and has been resolved in pydantic-ai version 2.0.0b3.
Potential Impact
Successful exploitation can lead to exposure of cloud IAM short-term credentials by bypassing the cloud-metadata blocklist, potentially allowing unauthorized access to cloud resources. The impact is limited to environments where the application uses force_download='allow-local' and runs on networks routing affected IPv6 transition forms. There is no indication of integrity or availability impact. The CVSS v3.1 score is 6.8 (medium severity), reflecting network attack vector, high complexity, no privileges required, no user interaction, and high confidentiality impact.
Mitigation Recommendations
A fix is available in pydantic-ai version 2.0.0b3. Users should upgrade to this version or later to remediate the vulnerability. Until then, avoid enabling force_download='allow-local' on networks that route affected IPv6 transition forms. Patch status is not explicitly stated in the vendor advisory beyond the fix in 2.0.0b3, so verify with the vendor for the latest remediation guidance.
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 pydantic-ai, a Python agent framework for Generative AI applications. Versions 1.56.0 through 1.101.0, 2.0.0b1, and 2.0.0b2 are affected. The vulnerability allows bypassing the cloud-metadata blocklist by encoding metadata IP addresses using certain IPv6 transition forms that were not properly decoded by a previous fix. This can expose cloud IAM short-term credentials when the application opts into force_download='allow-local' and runs on networks routing these IPv6 transition forms. The issue has been 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
This SSRF vulnerability arises because pydantic-ai's cloud-metadata blocklist can be bypassed via IPv6 transition address forms that were not decoded by the prior fix (CVE-2026-46678). Specifically, IPv4-compatible IPv6 (::a.b.c.d), NAT64 RFC 8215 local-use prefix (64:ff9b:1::/48), operator-chosen NAT64 prefixes, and ISATAP forms can be used to route requests to the underlying IPv4 metadata endpoint, exposing cloud IAM credentials. The vulnerability manifests when force_download='allow-local' is enabled, disabling the default block on private/internal IPs, and the network routes these IPv6 transition forms (e.g., NAT64-configured or ISATAP networks). Standard dual-stack cloud VMs or containers not routing these forms are not affected in practice. Deprecated IPv6 variants like IPv4-compatible and Teredo are addressed as defense-in-depth. This vulnerability is an incomplete fix of CVE-2026-46678 and has been resolved in pydantic-ai version 2.0.0b3.
Potential Impact
Successful exploitation can lead to exposure of cloud IAM short-term credentials by bypassing the cloud-metadata blocklist, potentially allowing unauthorized access to cloud resources. The impact is limited to environments where the application uses force_download='allow-local' and runs on networks routing affected IPv6 transition forms. There is no indication of integrity or availability impact. The CVSS v3.1 score is 6.8 (medium severity), reflecting network attack vector, high complexity, no privileges required, no user interaction, and high confidentiality impact.
Mitigation Recommendations
A fix is available in pydantic-ai version 2.0.0b3. Users should upgrade to this version or later to remediate the vulnerability. Until then, avoid enabling force_download='allow-local' on networks that route affected IPv6 transition forms. Patch status is not explicitly stated in the vendor advisory beyond the fix in 2.0.0b3, so verify with the vendor for the latest remediation guidance.
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: 6/16/2026, 11:15:15 PM
Last enriched: 6/16/2026, 11:31:10 PM
Last updated: 6/17/2026, 12:19:11 AM
Views: 5
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.