CVE-2026-107295
HIGH 7.6CVSS 3.1Pydantic AI Web chat UI (`Agent.to_web()`, `clai web`): a website visited by the developer can trigger agent runs and server-side tool execution on the local chat endpoint
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.
- Published
- 8 Oct 2026
- Last modified
- 15 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-346CWE-352
- Also known as
- GHSA-h4xc-3qfq-jf93PYSEC-2026-4278PYSEC-2026-4287
- Sources
- NVDJSONOSV GHSA-h4xc-3qfq-jf93JSONOSV PYSEC-2026-4278JSONOSV PYSEC-2026-4287JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L |
| OSV | PyPA | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pydantic | pydantic_aicpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:* |
>= 1.34.0, < 1.107.4 | 1.107.4 |
| NVD | pydantic | pydantic_aicpe:2.3:a:pydantic:pydantic_ai:*:-:*:*:*:python:*:* |
>= 2.0.0, < 2.28.0 | 2.28.0 |
| OSV | PyPI | pydantic-ai | >= 1.34.0, < 1.107.4 | 1.107.4 |
| OSV | PyPI | pydantic-ai | >= 2.0.0b1, < 2.28.0 | 2.28.0 |
| OSV | PyPI | pydantic-ai-slim | >= 1.34.0, < 1.107.4 | 1.107.4 |
| OSV | PyPI | pydantic-ai-slim | >= 2.0.0b1, < 2.28.0 | 2.28.0 |
| OSV | PyPI | pydantic-ai | >= 1.34.0, < 1.107.4; >= 2.0.0b1, < 2.28.0 | 1.107.4, 2.28.0 |
| OSV | PyPI | pydantic-ai-slim | >= 1.34.0, < 1.107.4; >= 2.0.0b1, < 2.28.0 | 1.107.4, 2.28.0 |
References
- https://github.com/pydantic/pydantic-ai/commit/d2690201a1834005d382dbf5c47e0ed94ef8bf46 · Patch, WEB
- https://github.com/pydantic/pydantic-ai/commit/dd2abbdfa029c9ad138e7cc0edd2eaeaf9ed69c0 · Patch, WEB
- https://github.com/pydantic/pydantic-ai/pull/7382 · Patch, Issue Tracking, WEB
- https://github.com/pydantic/pydantic-ai/pull/7383 · Patch, Issue Tracking, WEB
- https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.4 · Patch, Release Notes, WEB
- https://github.com/pydantic/pydantic-ai/releases/tag/v2.28.0 · Patch, Release Notes, WEB
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h4xc-3qfq-jf93 · Mitigation, Vendor Advisory, WEB
- https://github.com/pydantic/pydantic-ai · PACKAGE
- https://pypi.org/project/pydantic-ai · PACKAGE
- https://github.com/advisories/GHSA-h4xc-3qfq-jf93 · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-107295 · ADVISORY
- https://pypi.org/project/pydantic-ai-slim · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 8 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Oct 2026)