Pydantic Deep 0.2.18 before 0.4.0 contains a server-side request forgery and local file read vulnerability in the DeepResearch export_report handler for /export/pdf. Attackers can inject raw HTML into reports via the unauthenticated /upload endpoint, causing WeasyPrint to fetch internal URLs and embed local server files into exported PDFs.
https://github.com/vstorm-co/pydantic-deepagents/security/advisories/GHSA-f4p6-c493-769c
https://github.com/vstorm-co/pydantic-deepagents/releases/tag/0.4.0
https://github.com/vstorm-co/pydantic-deepagents/commit/25947c1f86cb9b2362165712711b28809dfc6202