Vulnerabilities

CVE-2026-107295

High 7.6 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2026-10-08
Last modified
2026-10-13
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
Scored by
security-advisories@github.com
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Pydantic Pydantic Ai ≥ 1.34.0, < 1.107.4 Affected
Pydantic Pydantic Ai ≥ 2.0.0, < 2.28.0 Affected

Weakness type

  • CWE-352: Cross-Site Request Forgery

    The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities