PyPI (Python)Worst: High14 advisories

pydantic-ai: known vulnerabilities

pydantic-ai has 14 reviewed security advisories in the GitHub Advisory Database — 4 high, 8 moderate, 2 low. The most recent was published 2026-10-08. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the pydantic-ai versions running across your servers, containers and images, and ranks what to patch first.

How to fix pydantic-ai

Upgrade pydantic-ai to a release at or above the fixed version shown for each advisory below. For PyPI (Python):

pip install --upgrade pydantic-ai (pin pydantic-ai>=2.27.1)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (14)

Pydantic AI OpenTelemetry instrumentation: retry prompt content is not redacted when `include_content=False` Low CWE-212 CWE-532 — Affected: from 2.0.0b1 up to 2.27.1. Fixed in 2.27.1. Published 2026-10-08. GHSA-3gh4-cghq-f8v4 · CVE-2026-107293
Pydantic AI OpenTelemetry instrumentation: exception events on tool and agent run spans include content when `include_content=False` Low CWE-212 CWE-532 — Affected: from 2.0.0b1 up to 2.44.0. Fixed in 2.44.0. Published 2026-10-08. GHSA-4x9p-g9wm-8q7f · CVE-2026-107291
Pydantic AI: Concurrency-limited models can keep their slot when a streamed request ends early High 7.5 CWE-772 — Affected: from 2.10.0 up to 2.53.0. Fixed in 2.53.0. Published 2026-10-08. GHSA-6fqq-452j-qhrp · CVE-2026-107286
Pydantic AI: Event loop blocked by quadratic title extraction in `web_fetch` Moderate 6.5 CWE-1333 CWE-407 — Affected: from 2.0.0b1 up to 2.44.0. Fixed in 2.44.0. Published 2026-10-08. GHSA-fpf4-vwcp-v4hp · CVE-2026-107290
Pydantic AI Web chat UI (`Agent.to_web()`, `clai web`): a website visited by the developer can trigger agent runs and server-side tool execution on the local chat endpoint High 7.6 CWE-346 CWE-352 — Affected: from 2.0.0b1 up to 2.28.0. Fixed in 2.28.0. Published 2026-10-08. GHSA-h4xc-3qfq-jf93 · CVE-2026-107295
Pydantic AI Web chat UI (`Agent.to_web()`, `clai web`): the local chat endpoint does not validate the `Host` header Moderate 6.4 CWE-346 CWE-350 — Affected: from 2.0.0b1 up to 2.30.0. Fixed in 2.30.0. Published 2026-10-08. GHSA-q2xc-rrxj-58x9 · CVE-2026-107292
Pydantic AI: Unbounded memory use when downloading remote content via web_fetch or FileUrl Moderate 6.5 CWE-400 CWE-770 — Affected: from 2.0.0b1 up to 2.24.0. Fixed in 2.24.0. Published 2026-10-08. GHSA-v2xh-2vp8-57h8 · CVE-2026-107294
Pydantic AI: Excessive resource use when local web fetching converts nested HTML Moderate 6.5 CWE-400 CWE-407 — Affected: from 2.0.0b1 up to 2.52.0. Fixed in 2.52.0. Published 2026-10-08. GHSA-v36g-jcw9-x7cw · CVE-2026-107287
Pydantic AI: SSRF cloud-metadata blocklist bypass via IPv6 zone identifiers Moderate 6.8 CWE-1289 CWE-918 — Affected: from 2.0.0b1 up to 2.44.0. Fixed in 2.44.0. Published 2026-10-08. GHSA-vmxc-h2x2-jmf3 · CVE-2026-107289
Pydantic AI: Unvalidated UploadedFile references in UI adapters allow server-side file access using the application's credentials Moderate 6.8 CWE-918 — Affected: from 2.0.0b1 up to 2.0.0b6. Fixed in 2.0.0b6. Published 2026-07-29. GHSA-h7p7-w5gc-xj3w · CVE-2026-54249
pydantic-ai: SSRF blocklist bypass via IPv4-compatible, SIIT/IVI, and local NAT64 IPv6 addresses (incomplete fix of CVE-2026-46678) Moderate 6.8 CWE-918 — Affected: from 2.0.0b1 up to 2.0.0b3. Fixed in 2.0.0b3. Published 2026-06-17. GHSA-cg7w-rg45-pc59 · CVE-2026-48782
Pydantic AI: SSRF cloud-metadata blocklist bypass via IPv4-mapped IPv6 (Incomplete fix of CVE-2026-25580) Moderate 6.8 CWE-918 — Affected: from 1.56.0 up to 1.99.0. Fixed in 1.99.0. Published 2026-05-21. GHSA-cqp8-fcvh-x7r3 · CVE-2026-46678
Pydantic AI has Server-Side Request Forgery (SSRF) in URL Download Handling High 8.6 CWE-918 — Affected: from 0.0.26 up to 1.56.0. Fixed in 1.56.0. Published 2026-02-06. GHSA-2jrp-274c-jhv3 · CVE-2026-25580
Pydantic AI has Stored XSS via Path Traversal in Web UI CDN URL High 7.1 CWE-22 CWE-79 — Affected: from 1.34.0 up to 1.51.0. Fixed in 1.51.0. Published 2026-02-06. GHSA-wjp5-868j-wqv7 · CVE-2026-25640

Find pydantic-ai across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.