{"id":"CVE-2026-107295","published":"2026-10-08T17:17:15.237","lastModified":"2026-10-13T14:16:53.140","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.","cvssScore":7.6,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","cwes":["CWE-352"],"vendors":["pydantic"],"products":["pydantic ai"],"references":[{"url":"https://github.com/pydantic/pydantic-ai/commit/d2690201a1834005d382dbf5c47e0ed94ef8bf46","tags":["Patch"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/dd2abbdfa029c9ad138e7cc0edd2eaeaf9ed69c0","tags":["Patch"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/7382","tags":["Patch","Issue Tracking"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/7383","tags":["Patch","Issue Tracking"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.4","tags":["Patch","Release Notes"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v2.28.0","tags":["Patch","Release Notes"]},{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h4xc-3qfq-jf93","tags":["Mitigation","Vendor Advisory"]}],"exploitRefs":[{"url":"https://github.com/pydantic/pydantic-ai/commit/d2690201a1834005d382dbf5c47e0ed94ef8bf46","tags":["Patch"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/dd2abbdfa029c9ad138e7cc0edd2eaeaf9ed69c0","tags":["Patch"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/7382","tags":["Patch","Issue Tracking"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/7383","tags":["Patch","Issue Tracking"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.4","tags":["Patch","Release Notes"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v2.28.0","tags":["Patch","Release Notes"]},{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h4xc-3qfq-jf93","tags":["Mitigation","Vendor Advisory"]}],"hasPoc":true,"ai":{"summary":"Pydantic AI allows remote code execution through missing content-type validation in web endpoints, enabling attackers to execute tools with local process privileges when developers visit malicious websites.","exploitability":"Moderately difficult to exploit as it requires a developer to visit a malicious website that submits requests to the loopback chat server, but the attack is feasible since browsers can reach localhost addresses.","blast_radius":"High impact in development environments where developers frequently access loopback servers and run tools with elevated privileges, potentially leading to full system compromise.","remediation":"Upgrade to version 1.107.4 or 2.28.0 to fix the content-type validation issue.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["rce","web","development","api"],"model":"garnet-coder","analyzedAt":"2026-10-16T09:23:16.045Z"}}