CVE-2026-107295

Vulnérabilité élevée dans pydantic-ai (pydantic)

CVSS 7.6 · Élevée
EPSS 0.2%
pydantic•pydantic-ai•Versions : >= 2.0.0b1, < 2.28.0, >= 1.34.0, < 1.107.4

Description

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.

Gravité et risque d'exploitation

CVE-2026-107295 obtient un score CVSS de 7.6/10, soit une gravité élevée. Selon le modèle EPSS, la probabilité qu'elle soit exploitée dans les 30 prochains jours est de 0.16 %, ce qui la place devant 4.5 % des CVE référencées.

Que faire ?

  • Vérifiez si pydantic-ai (versions >= 2.0.0b1, < 2.28.0, >= 1.34.0, < 1.107.4) est présent sur votre parc.
  • Appliquez le correctif ou la version corrigée indiqués dans les références de l'éditeur.
  • À défaut de correctif, limitez l'exposition (filtrage réseau, désactivation du composant).
  • Automatisez la détection : les agents CVE Heimdall (gratuits, open source) corrèlent l'inventaire de vos serveurs avec la base CVE.

Références