{"cve":"CVE-2026-107295","nvd":{"published":"2026-10-08T17:17:15.237","modified":"2026-10-13T14:16:53.140","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","score":7.6},"cwes":["CWE-352"],"references":["https://github.com/pydantic/pydantic-ai/commit/d2690201a1834005d382dbf5c47e0ed94ef8bf46","https://github.com/pydantic/pydantic-ai/commit/dd2abbdfa029c9ad138e7cc0edd2eaeaf9ed69c0","https://github.com/pydantic/pydantic-ai/pull/7382","https://github.com/pydantic/pydantic-ai/pull/7383","https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.4"],"products":["pydantic:pydantic_ai"],"source":"nvd","synced_at":"2026-10-19T22:58:01.639778232+00:00"},"epss":{"cve":"CVE-2026-107295","score":0.00158,"percentile":0.04883,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-h4xc-3qfq-jf93","url":"https://osv.dev/vulnerability/GHSA-h4xc-3qfq-jf93","summary":"Pydantic 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","modified":"2026-10-15T14:55:44.151809973Z","packages":[{"ecosystem":"PyPI","name":"pydantic-ai","purl":"pkg:pypi/pydantic-ai","ranges":[">=1.34.0 <1.107.4"],"fixed":["1.107.4"]},{"ecosystem":"PyPI","name":"pydantic-ai","purl":"pkg:pypi/pydantic-ai","ranges":[">=2.0.0b1 <2.28.0"],"fixed":["2.28.0"]},{"ecosystem":"PyPI","name":"pydantic-ai-slim","purl":"pkg:pypi/pydantic-ai-slim","ranges":[">=1.34.0 <1.107.4"],"fixed":["1.107.4"]},{"ecosystem":"PyPI","name":"pydantic-ai-slim","purl":"pkg:pypi/pydantic-ai-slim","ranges":[">=2.0.0b1 <2.28.0"],"fixed":["2.28.0"]}]},{"id":"PYSEC-2026-4278","url":"https://osv.dev/vulnerability/PYSEC-2026-4278","summary":"Pydantic 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","modified":"2026-10-15T14:55:44.151809973Z","packages":[{"ecosystem":"PyPI","name":"pydantic-ai","purl":"pkg:pypi/pydantic-ai","ranges":[">=1.34.0 <1.107.4",">=2.0.0b1 <2.28.0"],"fixed":["1.107.4","2.28.0"]}]},{"id":"PYSEC-2026-4287","url":"https://osv.dev/vulnerability/PYSEC-2026-4287","summary":"Pydantic 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","modified":"2026-10-15T14:55:44.151809973Z","packages":[{"ecosystem":"PyPI","name":"pydantic-ai-slim","purl":"pkg:pypi/pydantic-ai-slim","ranges":[">=1.34.0 <1.107.4",">=2.0.0b1 <2.28.0"],"fixed":["1.107.4","2.28.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}