CVE-2026-107292
MEDIUM 6.4CVSS 3.1Pydantic AI Web chat UI (`Agent.to_web()`, `clai web`): the local chat endpoint does not validate the `Host` header
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.
- Published
- 8 Oct 2026
- Last modified
- 15 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-346CWE-350
- Also known as
- GHSA-q2xc-rrxj-58x9PYSEC-2026-4279PYSEC-2026-4288
- Sources
- NVDJSONOSV GHSA-q2xc-rrxj-58x9JSONOSV PYSEC-2026-4279JSONOSV PYSEC-2026-4288JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:L |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pydantic | pydantic_aicpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:* |
>= 1.34.0, < 1.107.5 | 1.107.5 |
| NVD | pydantic | pydantic_aicpe:2.3:a:pydantic:pydantic_ai:*:-:*:*:*:python:*:* |
>= 2.0.0, < 2.30.0 | 2.30.0 |
| OSV | PyPI | pydantic-ai | >= 1.34.0, < 1.107.5 | 1.107.5 |
| OSV | PyPI | pydantic-ai | >= 2.0.0b1, < 2.30.0 | 2.30.0 |
| OSV | PyPI | pydantic-ai-slim | >= 1.34.0, < 1.107.5 | 1.107.5 |
| OSV | PyPI | pydantic-ai-slim | >= 2.0.0b1, < 2.30.0 | 2.30.0 |
| OSV | PyPI | pydantic-ai | >= 1.34.0, < 1.107.5; >= 2.0.0b1, < 2.30.0 | 1.107.5, 2.30.0 |
| OSV | PyPI | pydantic-ai-slim | >= 1.34.0, < 1.107.5; >= 2.0.0b1, < 2.30.0 | 1.107.5, 2.30.0 |
References
- https://github.com/pydantic/pydantic-ai/commit/394cc1d31656620704a703a2daed752afa5135fe · Patch, WEB
- https://github.com/pydantic/pydantic-ai/commit/871c7aeec5dfed2138655ccbccbf15c6d763bae7 · Patch, WEB
- https://github.com/pydantic/pydantic-ai/pull/7437 · Patch, Vendor Advisory, WEB
- https://github.com/pydantic/pydantic-ai/pull/7438 · Patch, Vendor Advisory, WEB
- https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.5 · Patch, Release Notes, Vendor Advisory, WEB
- https://github.com/pydantic/pydantic-ai/releases/tag/v2.30.0 · Patch, Release Notes, Vendor Advisory, WEB
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-q2xc-rrxj-58x9 · Vendor Advisory, WEB
- https://github.com/pydantic/pydantic-ai · PACKAGE
- https://pypi.org/project/pydantic-ai · PACKAGE
- https://github.com/advisories/GHSA-q2xc-rrxj-58x9 · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-107292 · ADVISORY
- https://pypi.org/project/pydantic-ai-slim · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 8 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 8 Oct 2026)