# CVE-2026-46678: Pydantic AI: SSRF cloud-metadata blocklist bypass via IPv4-mapped IPv6 (Incomplete fix of CVE-2026-25580)

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-05-21T21:35:18.000Z
- Modified: 2026-08-04T13:52:14.037Z
- Also known as: GHSA-cqp8-fcvh-x7r3, PYSEC-2026-2978, PYSEC-2026-2982
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Pydantic AI is a Python agent framework for building Generative AI applications. In versions 1.56.0 through 1.98.0, when an application opts a URL into force_download='allow-local' (disabling the default block on private/internal IPs), the cloud-metadata blocklist could be bypassed by encoding the metadata IP in an IPv6 transition form (IPv4-mapped IPv6, 6to4, or NAT64), exposing cloud IAM short-term credentials on dual-stack or translated networks. This is an incomplete fix of GHSA-2jrp-274c-jhv3 / CVE-2026-25580, whose remediation did not hold for IPv6-encoded forms of the metadata IPs. An application is affected only if it explicitly opts a FileUrl (ImageUrl, AudioUrl, VideoUrl, DocumentUrl) into force_download='allow-local' on a URL influenced by untrusted input; it is not affected when using bundled integrations to ingest user input (Agent.to_web / clai web, VercelAIAdapter, AGUIAdapter / Agent.to_ag_ui), since they do not propagate force_download from external data, nor when downloading only from developer-controlled URLs. This issue has been fixed in version 1.99.0.

(As written by CVE List.)

## Affected

- pydantic pydantic-ai: >= 1.56.0, < 1.99.0
- pydantic pydantic-ai-slim: >= 1.56.0, < 1.99.0
- pydantic-ai (PyPI): from 1.56.0 before 1.99.0
- pydantic-ai-slim (PyPI): from 1.56.0 before 1.99.0
- pydantic pydantic_ai: from 1.56.0 before 1.99.0

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`

## References

- <https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-cqp8-fcvh-x7r3> (vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/releases/tag/v1.99.0> (product, release-notes)
- <https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-2jrp-274c-jhv3> (web)
- <https://github.com/pydantic/pydantic-ai> (package)
- <https://pypi.org/project/pydantic-ai> (package)
- <https://github.com/advisories/GHSA-cqp8-fcvh-x7r3> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-46678> (advisory)
- <https://pypi.org/project/pydantic-ai-slim> (package)

## Sources

- CVE List: [CVE-2026-46678](https://www.cve.org/CVERecord?id=CVE-2026-46678), CVE Terms of Use, modified 2026-07-30
- GitHub Advisory Database: [GHSA-cqp8-fcvh-x7r3](https://github.com/advisories/GHSA-cqp8-fcvh-x7r3), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-46678](https://nvd.nist.gov/vuln/detail/CVE-2026-46678), Public domain, modified 2026-08-04
- PyPA Advisory Database: [PYSEC-2026-2978](https://osv.dev/vulnerability/PYSEC-2026-2978), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-2982](https://osv.dev/vulnerability/PYSEC-2026-2982), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-46678 · Whole record: https://cve.day/CVE-2026-46678.json · Rebuilt by cve.day 2026-11-25T22:59:30.487Z
