github pydantic/pydantic-ai v1.107.5
v1.107.5 (2026-08-13)

2 hours ago

What's Changed

🛡️ Security

  • GHSA-q2xc-rrxj-58x9: the local dev web chat UI (Agent.to_web(), clai web) didn't validate the Host header, so DNS rebinding from a website you visit could reach it and run the served agent with your local process's tools and credentials. Fixed in pydantic-ai/pydantic-ai-slim 1.107.5 by validating Host against localhost/loopback/LAN addresses by default; deployments reached under a real hostname must opt in with the new allowed_hosts setting. Backport of allowed_hosts by @DouweM in #7438

Full Changelog: v1.107.4...v1.107.5

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.