DNS Rebinding Affecting pydantic-ai-slim package, versions [1.34.0,1.107.5)[2.0.0b1,2.30.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (3rd 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-20848910
  • published13 Oct 2026
  • disclosed8 Oct 2026
  • creditUnknown

Introduced: 8 Oct 2026

NewCVE-2026-107292  (opens in a new tab)
CWE-346  (opens in a new tab)
CWE-350  (opens in a new tab)

How to fix?

Upgrade pydantic-ai-slim to version 1.107.5, 2.30.0 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 DNS Rebinding via insufficient Host header validation in the web UI component (Agent.to_web() and the clai web command). A malicious website can point a hostname it controls at a victim's local machine and issue cross-origin requests to the locally running UI, bypassing the same-origin policy through DNS rebinding. This allows an attacker to read responses and issue requests with the confidentiality, integrity, and availability impact reflected in the CVSS score.

CVSS Base Scores

version 4.0
version 3.1