{
  "id": "CVE-2026-107295",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-107295",
  "published_at": "2026-10-08T17:02:36.718Z",
  "title": "`pydantic-ai-slim` web UI `/api/chat` accepts browser-simple cross-origin requests that can trigger agent tool execution",
  "vendor": "pydantic",
  "product": "pydantic-ai",
  "cvss": {
    "score": 7.6,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-352",
  "cpes": [
    "cpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:*",
    "cpe:2.3:a:pydantic:pydantic_ai:*:-:*:*:*:python:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "pydantic",
        "product": "pydantic-ai",
        "ranges": [
          "\u003e= 1.34.0, \u003c 1.107.4",
          "\u003e= 2.0.0b1, \u003c 2.28.0"
        ],
        "fixed_in": [
          "1.107.4",
          "2.28.0"
        ]
      },
      {
        "vendor": "pydantic",
        "product": "pydantic-ai-slim",
        "ranges": [
          "\u003e= 1.34.0, \u003c 1.107.4",
          "\u003e= 2.0.0b1, \u003c 2.28.0"
        ],
        "fixed_in": [
          "1.107.4",
          "2.28.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade pydantic-ai to 1.107.4 or 2.28.0 or later.",
      "Upgrade pydantic-ai-slim to 1.107.4 or 2.28.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h4xc-3qfq-jf93"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/pydantic/pydantic-ai/pull/7382"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/pydantic/pydantic-ai/pull/7383"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/pydantic/pydantic-ai/commit/d2690201a1834005d382dbf5c47e0ed94ef8bf46"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/pydantic/pydantic-ai/commit/dd2abbdfa029c9ad138e7cc0edd2eaeaf9ed69c0"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.4"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/pydantic/pydantic-ai/releases/tag/v2.28.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
