# CVE-2026-107295: `pydantic-ai-slim` web UI `/api/chat` accepts browser-simple cross-origin requests that can trigger agent tool execution

- Severity: High 7.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-10-08T17:02:36.718Z
- Modified: 2026-10-15T14:55:44.151Z
- Also known as: GHSA-h4xc-3qfq-jf93, PYSEC-2026-4278, PYSEC-2026-4287
- Weaknesses: CWE-346, CWE-352
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pydantic pydantic-ai: >= 1.34.0, < 1.107.4; >= 2.0.0b1, < 2.28.0
- pydantic pydantic-ai-slim: >= 1.34.0, < 1.107.4; >= 2.0.0b1, < 2.28.0
- pydantic-ai (PyPI): from 1.34.0 before 1.107.4; from 2.0.0b1 before 2.28.0
- pydantic-ai-slim (PyPI): from 1.34.0 before 1.107.4; from 2.0.0b1 before 2.28.0
- pydantic pydantic_ai: from 1.34.0 before 1.107.4; from 2.0.0 before 2.28.0

## Every score

- GitHub_M: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L`
- GitHub: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L`
- PyPA Advisory Database: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L`

## References

- <https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h4xc-3qfq-jf93> (mitigation, vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/pull/7382> (issue-tracking, patch, web)
- <https://github.com/pydantic/pydantic-ai/pull/7383> (issue-tracking, patch, web)
- <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/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> (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)

## Sources

- CVE List: [CVE-2026-107295](https://www.cve.org/CVERecord?id=CVE-2026-107295), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-h4xc-3qfq-jf93](https://github.com/advisories/GHSA-h4xc-3qfq-jf93), CC-BY-4.0, modified 2026-10-15
- NVD: [CVE-2026-107295](https://nvd.nist.gov/vuln/detail/CVE-2026-107295), Public domain, modified 2026-10-13
- PyPA Advisory Database: [PYSEC-2026-4278](https://osv.dev/vulnerability/PYSEC-2026-4278), CC-BY-4.0, modified 2026-10-15
- PyPA Advisory Database: [PYSEC-2026-4287](https://osv.dev/vulnerability/PYSEC-2026-4287), CC-BY-4.0, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-107295 · Whole record: https://cve.day/CVE-2026-107295.json · Rebuilt by cve.day 2026-11-25T22:59:43.189Z
