Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 73%

CVE-2026-48782: CWE-918: Server-Side Request Forgery (SSRF) in pydantic pydantic-ai

0
Medium
VulnerabilityCVE-2026-48782cvecve-2026-48782cwe-918
Published: 06/16/2026 (06/16/2026, 22:49:26 UTC)
Source: CVE Database V5
Vendor/Project: pydantic
Product: 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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N

Affected software

pydantic-ai
pkg:pypi/pydantic-ai
Affected versions
>=1.56.0 <=1.101.0=2.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/24/2026, 16:42:36 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses