Security mailing lists by PureSourceCode

CVE-2026-107292

MEDIUM 6.4CVSS 3.1

Pydantic 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD pydantic pydantic_ai
cpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:*
>= 1.34.0, < 1.107.5 1.107.5
NVD pydantic pydantic_ai
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.