Improper Validation of Unsafe Equivalence in Input Affecting pydantic-ai-slim package, versions [2.0.0b1,2.44.0)[1.56.0,1.107.6)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.32% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-PYDANTICAISLIM-20848912
  • published13 Oct 2026
  • disclosed8 Oct 2026
  • creditEurico Nicacio

Introduced: 8 Oct 2026

NewCVE-2026-107289  (opens in a new tab)
CWE-1289  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade pydantic-ai-slim to version 2.44.0, 1.107.6 or higher.

Overview

pydantic-ai-slim is an Agent Framework / shim to use Pydantic with LLMs, slim package

Affected versions of this package are vulnerable to Improper Validation of Unsafe Equivalence in Input via IPv6 zone identifier handling in the _ssrf.py SSRF guard functions is_cloud_metadata_ip and is_private_ip. An attacker can supply an IPv6 address literal carrying a zone identifier (e.g. fd00:ec2::254%251) to bypass the blocklist checks, because Python's ipaddress module folds the zone identifier into address equality and hashing, causing the guarded address to compare unequal to the blocked entry. This allows requests to cloud metadata endpoints or private network addresses that should be denied.

Note: This is only exploitable if the application passes URLs that are, or could be, influenced by untrusted input into local network access.

CVSS Base Scores

version 4.0
version 3.1