cve.bz

CVE-2026-107289 pydantic pydantic ai: SSRF

6.8 mediumExploit referenceEPSS 0.4%Fix available

Medium (6.8) in pydantic pydantic ai. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in pydantic-ai 1.107.6, 2.44.0.

On this page
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.56.0 until 1.107.6 and 2.44.0, applications that opt attacker-influenced URLs into local network access through FileUrl with force_download='allow-local' or web_fetch_tool with allow_local_urls=True can bypass the cloud-metadata blocklist by appending an IPv6 zone identifier to an IPv6 metadata address. IPv6Address equality and hashing include the zone identifier, so the blocklist comparison fails even though the network stack ignores the zone on a non-link-local destination and reaches the metadata service, potentially exposing cloud IAM credentials. The opt-in settings are disabled by default, and the issue requires an IPv6-enabled environment. This issue is fixed in versions 1.107.6 and 2.44.0.

Severity

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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 34th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-918 Server-Side Request Forgery (SSRF)
CWE-1289 Improper Validation of Unsafe Equivalence in Input
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-107289 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-107289?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-107289?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-107289 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pydantic:pydantic_aifrom 1.56.0 before 1.107.6
pydantic:pydantic_aifrom 2.0.0 before 2.44.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vmxc-h2x2-jmf3PyPIpydantic-ai>=1.56.0 <1.107.61.107.6
GHSA-vmxc-h2x2-jmf3PyPIpydantic-ai>=2.0.0b1 <2.44.02.44.0
GHSA-vmxc-h2x2-jmf3PyPIpydantic-ai-slim>=1.56.0 <1.107.61.107.6
GHSA-vmxc-h2x2-jmf3PyPIpydantic-ai-slim>=2.0.0b1 <2.44.02.44.0
PYSEC-2026-4282PyPIpydantic-ai>=1.56.0 <1.107.6
>=2.0.0b1 <2.44.0
1.107.6, 2.44.0
PYSEC-2026-4291PyPIpydantic-ai-slim>=1.56.0 <1.107.6
>=2.0.0b1 <2.44.0
1.107.6, 2.44.0

Red Hat

Red Hat rates this Low.

Red Hat's statement

A LOW impact information disclosure flaw was found in the pydantic-ai Python agent framework, which is shipped in Red Hat Enterprise Linux AI and Lightspeed Core products. When an application explicitly opts attacker-influenced URLs into local network access (a FileUrl with force_download='allow-local' or web_fetch_tool with allow_local_urls=True; both settings are disabled by default) and runs in an IPv6-enabled environment, a remote attacker can bypass the internal cloud-metadata blocklist by appending an IPv6 zone identifier to an IPv6 metadata address. Because IPv6Address equality and hashing include the zone identifier, the blocklist comparison fails, while the network stack ignores the zone identifier on a non-link-local destination and delivers the request to the cloud metadata service, potentially exposing cloud IAM credentials. Red Hat rates this flaw LOW severity (CVSS 3.7) rather than the upstream MODERATE rating (CVSS 6.8) because exploitation requires the non-default opt-in local-network settings and an IPv6-enabled environment, and the resulting information disclosure remains within the vulnerable application's own security context. The affected Red Hat products carry a DEFER resolution because updates are not filed for LOW severity flaws; the residual risk is limited to deployments that enable local network access for URLs influenced by untrusted input in IPv6-enabled environments.

Red Hat's mitigation

Local network access in pydantic-ai is opt-in and disabled by default. Do not enable force_download='allow-local' on FileUrl objects or allow_local_urls=True on web_fetch_tool for URLs that could be influenced by untrusted input; web_fetch_tool is configured only by the application itself, so a client cannot enable local network access on its own. If local network access must be allowed for such URLs, reject URL hosts containing '%' (an IPv6 zone identifier) before constructing the FileUrl or configuring the tool. Upgrading pydantic-ai to a version containing the upstream fix also resolves the issue.

ProductPackageStateAdvisory
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-gaudi-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-rocm-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/disk-image-cuda-rhel9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-107289.

Attack patterns (CAPEC)

  • CAPEC-664 Server Side Request Forgery Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON