{"id":"CVE-2026-107295","sourceIdentifier":"security-advisories@github.com","published":"2026-10-08T17:17:15.237","lastModified":"2026-10-13T14:16:53.140","vulnStatus":"Analyzed","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"pydantic","product":"pydantic-ai","versions":[{"version":">= 1.34.0, < 1.107.4","status":"affected"},{"version":">= 2.0.0b1, < 2.28.0","status":"affected"}]},{"vendor":"pydantic","product":"pydantic-ai-slim","versions":[{"version":">= 1.34.0, < 1.107.4","status":"affected"},{"version":">= 2.0.0b1, < 2.28.0","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","baseScore":7.6,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"HIGH","availabilityImpact":"LOW"},"exploitabilityScore":2.8,"impactScore":4.7}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-10-08T17:53:16.989703Z","id":"CVE-2026-107295","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-352"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:*","versionStartIncluding":"1.34.0","versionEndExcluding":"1.107.4","matchCriteriaId":"6A8C115B-3868-4386-840D-F627698C5C89"},{"vulnerable":true,"criteria":"cpe:2.3:a:pydantic:pydantic_ai:*:-:*:*:*:python:*:*","versionStartIncluding":"2.0.0","versionEndExcluding":"2.28.0","matchCriteriaId":"87901956-7658-4465-B845-A4A0A2F0E902"}]}]}],"references":[{"url":"https://github.com/pydantic/pydantic-ai/commit/d2690201a1834005d382dbf5c47e0ed94ef8bf46","source":"security-advisories@github.com","tags":["Patch"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/dd2abbdfa029c9ad138e7cc0edd2eaeaf9ed69c0","source":"security-advisories@github.com","tags":["Patch"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/7382","source":"security-advisories@github.com","tags":["Patch","Issue Tracking"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/7383","source":"security-advisories@github.com","tags":["Patch","Issue Tracking"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.4","source":"security-advisories@github.com","tags":["Patch","Release Notes"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v2.28.0","source":"security-advisories@github.com","tags":["Patch","Release Notes"]},{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h4xc-3qfq-jf93","source":"security-advisories@github.com","tags":["Mitigation","Vendor Advisory"]}]}