{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-107295","id":"CVE-2026-107295","title":"`pydantic-ai-slim` web UI `/api/chat` accepts browser-simple cross-origin requests that can trigger agent tool execution","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 wi","descriptionLong":"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":"2026-10-08T17:02:36.718Z","updated":"2026-10-28T02:30:37.402014040Z","reserved":"2026-10-07T15:53:23.587Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","rating":"high","source":"github.com"},{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","rating":"high","source":"OSV"},{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","rating":"high","source":"GitHub"}],"rating":"high","products":["pydantic-ai","pydantic-ai-slim"],"affectedProducts":[{"vendor":"pydantic","product":"pydantic-ai","defaultStatus":null,"versions":[{"version":">= 1.34.0, < 1.107.4","status":"affected"},{"version":">= 2.0.0b1, < 2.28.0","status":"affected"}],"platforms":[]},{"vendor":"pydantic","product":"pydantic-ai-slim","defaultStatus":null,"versions":[{"version":">= 1.34.0, < 1.107.4","status":"affected"},{"version":">= 2.0.0b1, < 2.28.0","status":"affected"}],"platforms":[]}],"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"],"advisory":"GHSA-h4xc-3qfq-jf93"},{"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"],"advisory":"GHSA-h4xc-3qfq-jf93"}],"cwes":["CWE-352","CWE-346"],"aliases":["GHSA-h4xc-3qfq-jf93","PYSEC-2026-4278","PYSEC-2026-4287"],"references":[{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h4xc-3qfq-jf93","tags":["x_refsource_CONFIRM","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/7382","tags":["x_refsource_MISC","Patch","Issue Tracking","fix","web"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/7383","tags":["x_refsource_MISC","Patch","Issue Tracking","fix","web"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/d2690201a1834005d382dbf5c47e0ed94ef8bf46","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/dd2abbdfa029c9ad138e7cc0edd2eaeaf9ed69c0","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.4","tags":["x_refsource_MISC","Patch","Release Notes","web"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v2.28.0","tags":["x_refsource_MISC","Patch","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107295.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107295","tags":["advisory"]},{"url":"https://github.com/pydantic/pydantic-ai","tags":["package"]},{"url":"https://pypi.org/project/pydantic-ai","tags":["package"]},{"url":"https://github.com/advisories/GHSA-h4xc-3qfq-jf93","tags":["advisory"]},{"url":"https://pypi.org/project/pydantic-ai-slim","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00158,"epssPercentile":0.0503,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-107295","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107295","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-107295","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-h4xc-3qfq-jf93","ok":true,"note":"GHSA-h4xc-3qfq-jf93"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-107295","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}