Live threats

All CVEs / Pydantic

CVE-2026-107295Pydantic Ai

High 7.6 No auth needed

Priority
61
CVSS 3.1
7.6
EPSS
—
Auth required
No
Published
Oct 8, 2026
Updated
Oct 13, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-352
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L

What happens

Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.34.0 until 1.107.4 and 2.28.0, the Agent.to_web() and clai web development chat endpoint has missing request content-type validation. A website visited by a developer can submit a browser-compatible request to a loopback-hosted chat server, causing the served agent to run and execute tools with the privileges and credentials of the local process; client-relayed approval decisions also leave requires_approval=True tools exposed. Binding to localhost does not prevent a browser page from reaching the loopback address. This issue is fixed in versions 1.107.4 and 2.28.0.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pydantic Ai.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pydantic-ai ≥ 1.34.0 < 1.107.4 1.107.4 pip install "pydantic-ai>=1.107.4"
PyPI pydantic-ai ≥ 2.0.0b1 < 2.28.0 2.28.0 pip install "pydantic-ai>=2.28.0"
PyPI pydantic-ai ≥ 1.34.0 < 1.107.4 1.107.4 pip install "pydantic-ai>=1.107.4"
PyPI pydantic-ai ≥ 2.0.0b1 < 2.28.0 2.28.0 pip install "pydantic-ai>=2.28.0"
PyPI pydantic-ai-slim ≥ 1.34.0 < 1.107.4 1.107.4 pip install "pydantic-ai-slim>=1.107.4"
PyPI pydantic-ai-slim ≥ 2.0.0b1 < 2.28.0 2.28.0 pip install "pydantic-ai-slim>=2.28.0"
PyPI pydantic-ai-slim ≥ 1.34.0 < 1.107.4 1.107.4 pip install "pydantic-ai-slim>=1.107.4"
PyPI pydantic-ai-slim ≥ 2.0.0b1 < 2.28.0 2.28.0 pip install "pydantic-ai-slim>=2.28.0"

Per OSV / GitHub Advisories (GHSA-h4xc-3qfq-jf93, PYSEC-2026-4278, PYSEC-2026-4287). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pydanticpydantic_ai≥ 1.34.0 < 1.107.4
pydanticpydantic_ai≥ 2.0.0 < 2.28.0

Official sources

References

Links published by the sources. Open them with care.