What's Changed
🛡️ Security
- GHSA-q2xc-rrxj-58x9: the local dev web chat UI (
Agent.to_web(),clai web) didn't validate theHostheader, 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 inpydantic-ai/pydantic-ai-slim1.107.5 by validatingHostagainst localhost/loopback/LAN addresses by default; deployments reached under a real hostname must opt in with the newallowed_hostssetting. Backport ofallowed_hostsby @DouweM in #7438
Full Changelog: v1.107.4...v1.107.5