Categories
CVE-2026-107292 medium CVSS 6.4

Vulnerability in pydantic-ai (CVE-2026-107292)

Summary

Vulnerability in pydantic-ai (CVE-2026-107292). Data can be tampered with by attackers. Exploitable via Host. Mitigation: upgrade to 2.30.0 or later.

Original description

The description as published by the source.

Summary

The Pydantic AI development web chat UI (Agent.to_web(), clai web) does not validate the Host header of incoming requests. A website a developer visits can use DNS rebinding to make requests to a chat UI running on that developer's machine appear same-origin to the browser, causing the served agent to run and to execute its tools with the privileges and credentials of the local process.

Details

Once a name the attacker controls resolves to the loopback address, the browser treats the request as same-origin, so neither an Origin check nor a CSRF token constrains it — a same-origin page can read the served UI and any token in it.

Binding the web UI to localhost — the default — does not prevent this.

Impact

Applications and developers serving an agent through Agent.to_web() or clai web. The consequences depend on the tools the served agent exposes, and can include data disclosure as well as unwanted tool side effects.

Current browser protections reduce but do not remove this exposure: Chromium's Local Network Access gates loopback subresource requests, but does not cover top-level navigations, and Safari does not implement it.

Mitigation

Upgrade to pydantic-ai/pydantic-ai-slim >= 2.30.0, or >= 1.107.5 on the v1 maintenance line.

The fix validates the Host header and rejects anything other than localhost, a loopback/LAN IP address, or an explicitly allowed host, responding 421 Misdirected Request otherwise. If you serve the we…

Source: GitHub Security Advisories (Global) NVD GitHub Advisory

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as CVE-2026-107292 has been found in pydantic-ai.
Attackers can target a specific entry point like Host over the network to misuse the product.
Data can be tampered with by attackers. CVSS score: 6.4/10.
What to do: upgrade pydantic-ai to 2.30.0 or later.
If unsure, ask your IT team or search "pydantic-ai CVE-2026-107292" on the vendor's site.

CVE-2026-107292 (pydantic-ai) — CWE-346 / CVSS v3 6.4
Attack vector: remote (network-reachable) / unauthenticated
Attack surface: Host / Origin
Patched: 2.30.0 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

❓ What is the problem

A vulnerability (CWE-346) exists in pydantic-ai. Attackers reach the vulnerable code path via Host without authentication.

📍 Affected scope

Check the vendor advisory for the affected versions of pydantic-ai. Attack surface: Host / Origin.

🔥 Severity

Severity: Medium (CVSS 6.4/10). Data can be tampered with by attackers.

🔧 How to fix

Update to 2.30.0.

🛡️ Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

🔍 Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'pydantic-ai' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposure identify
    grep -r 'pydantic-ai' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で pydantic-ai を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply patch patch
    Upgrade pydantic-ai to 2.30.0

    ステージング環境で 2.30.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verification verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

pip pydantic-ai
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.30.0"}]}]
pip pydantic-ai-slim
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.30.0"}]}]

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details