Home / pydantic / pydantic-ai / CVE-2026-48782
CVE-2026-48782: is it exploited, and which versions of pydantic-ai are affected and fixed?
CVE-2026-48782 is a server-side request forgery (SSRF) vulnerability in pydantic-ai. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: pydantic-ai-slim from 1.56.0 before 1.102.0, pydantic-ai from 1.56.0 before 1.102.0, pydantic-ai from 2.0.0b1 before 2.0.0b3 and 1 more (GitHub advisory GHSA-cg7w-rg45-pc59). Fixed in 1.102.0 and 2.0.0b3 (GitHub advisory GHSA-cg7w-rg45-pc59). Severity: Medium (6.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:10 UTC.
What is CVE-2026-48782?
pydantic-ai: SSRF blocklist bypass via IPv4-compatible, SIIT/IVI, and local NAT64 IPv6 addresses (incomplete fix of CVE-2026-46678)
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. In versions 1.56.0 through 1.101.0, 2.0.0b1, and 2.0.0b2, the cloud-metadata blocklist could be bypassed by encoding the metadata IP in an IPv6 transition form that the previous fix, CVE-2026-46678, did not decode, exposing cloud IAM short-term credentials. The previous remediation decoded only IPv4-mapped IPv6, 6to4, and the NAT64 well-known prefix, so the metadata guarantee did not hold for the remaining transition forms: IPv4-compatible IPv6 (::a.b.c.d), the NAT64 RFC 8215 local-use prefix (64:ff9b:1::/48), operator-chosen NAT64 prefixes, and ISATAP. The IPv6 wrapper is then delivered to the underlying IPv4 metadata endpoint. This occurs when an application using Pydantic AI opts a URL into force_download='allow-local' (which disables the default block on private/internal IPs) and runs on a network that actually routes the affected IPv6 transition forms: NAT64-configured networks (IPv6-only or dual-stack-with-NAT64 deployments, including some Kubernetes setups) for the NAT64 variants, or networks with an ISATAP tunnel for ISATAP. A standard dual-stack cloud VM or container does not route these forms and is not affected in practice. The IPv4-compatible and Teredo variants are deprecated and addressed as defense-in-depth. This is an incomplete fix of GHSA-cqp8-fcvh-x7r3 / CVE-2026-46678 (itself a follow-up to CVE-2026-25580). This issue has been fixed in version 2.0.0b3.
From the CVE record by GitHub_M, last updated June 17, 2026, 14:22 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| pydantic | pydantic-ai | >= 1.56.0, < 1.102.0 >= 2.0.0b1, < 2.0.0b3 | |
| pydantic | pydantic-ai-slim | >= 2.0.0b1, < 2.0.0b3 >= 1.56.0, < 1.102.0 |
As the CVE record by GitHub_M states it, last updated June 17, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | pydantic-ai-slim | >= 1.56.0, < 1.102.0 | 1.102.0 | GHSA-cg7w-rg45-pc59 |
| PyPI | pydantic-ai | >= 1.56.0, < 1.102.0 | 1.102.0 | GHSA-cg7w-rg45-pc59 |
| PyPI | pydantic-ai | >= 2.0.0b1, < 2.0.0b3 | 2.0.0b3 | GHSA-cg7w-rg45-pc59 |
| PyPI | pydantic-ai-slim | >= 2.0.0b1, < 2.0.0b3 | 2.0.0b3 | GHSA-cg7w-rg45-pc59 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 26, 2026. Summary: pydantic-ai: SSRF blocklist bypass via IPv4-compatible, SIIT/IVI, and local NAT64 IPv6 addresses (incomplete fix of CVE-2026-46678).
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| pydantic | pydantic ai | from 1.56.0 before 1.102.0 | application |
| pydantic | pydantic ai | 2.0.0 | application |
NVD analysis (status Analyzed), last modified August 6, 2026, 18:30 UTC.
How severe is CVE-2026-48782?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-48782 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, June 17, 2026)
- EPSS
- 0.40% probability of exploitation activity in the next 30 days, percentile 36.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-918 Server-Side Request Forgery
Where are the vendor advisories and references?
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-cg7w-rg45-pc59 x_refsource_CONFIRM
- https://github.com/pydantic/pydantic-ai/pull/5596 x_refsource_MISC
- https://github.com/pydantic/pydantic-ai/commit/1add06179ba4de259f7ab977620b697b7209f7e4 x_refsource_MISC
- https://github.com/pydantic/pydantic-ai/releases/tag/v1.102.0 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- May 22, 2026
- Published
- June 16, 2026, 22:49 UTC
- CVE record updated
- June 17, 2026, 14:22 UTC by GitHub_M
- NVD
- Analyzed, last modified August 6, 2026, 18:30 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:10 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect pydantic-ai?
- Nov 20, 2026CVE-2026-133505 pydantic-ai: type confusion
- Oct 8, 2026CVE-2026-107295 pydantic-ai: cross-site request forgery (CSRF)
- Oct 8, 2026CVE-2026-107294 pydantic-ai: denial of service (uncontrolled resource consumption)
- Oct 8, 2026CVE-2026-107293 pydantic-ai: improper Removal of Sensitive Information Before Storage or Transfer
- Oct 8, 2026CVE-2026-107292 pydantic-ai: origin not validated
- Oct 8, 2026CVE-2026-107291 pydantic-ai: improper Removal of Sensitive Information Before Storage or Transfer
- Oct 8, 2026CVE-2026-107290 pydantic-ai: regular expression denial of service (ReDoS)
- Oct 8, 2026CVE-2026-107289 pydantic-ai: server-side request forgery (SSRF)
Questions about CVE-2026-48782
Is CVE-2026-48782 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.40% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of pydantic-ai are affected by CVE-2026-48782?
pydantic-ai-slim from 1.56.0 before 1.102.0, pydantic-ai from 1.56.0 before 1.102.0, pydantic-ai from 2.0.0b1 before 2.0.0b3 and pydantic-ai-slim from 2.0.0b1 before 2.0.0b3, per the GitHub advisory GHSA-cg7w-rg45-pc59. The tables above give every range the sources list.
Which version fixes CVE-2026-48782?
1.102.0 and 2.0.0b3, per the GitHub advisory GHSA-cg7w-rg45-pc59. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-48782?
Medium (6.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-48782?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.