Pydantic Deep: flaw lets attackers make the server send requests to internal systems (SSRF)
CVE-2026-137954 · published 27 Nov 2026
CVE-2026-137954 is a serious security flaw in Pydantic Deep, rated 7.5 out of 10.
The official description: 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.
We have no report of attacks yet. Plan the update now, before attackers start.
How to check if you are affected, and how to fix it
The full analysis (affected versions, step-by-step check, fix, what to do if you cannot update yet, and signs of an attack) is free in your SegfaultSec dashboard. You also get an alert when a new vulnerability matches the software on your website.
Read the full analysis