Summary
CVE-2026-137954 is a server-side request forgery (SSRF) and local file read vulnerability (CWE-918) in Pydantic Deep (vstorm-co, PyPI package pydantic-deep). It affects the DeepResearch export_report handler for /export/pdf. Its CVSS v4.0 score is 8.7 (High).
Technical details
- Root cause: The DeepResearch
export_reporthandler for/export/pdfaccepts attacker-supplied HTML. WeasyPrint renders that HTML to PDF and can access internal resources. - Trigger conditions: The CVE record describes an unauthenticated upload endpoint that lets an attacker inject HTML into the export flow.
- Attack vector: Network. No authentication, privileges or user interaction are required.
- Impact: The server can be made to request internal resources (SSRF). Local server files can be read and embedded in the generated PDF, which exposes confidential data.
Affected software
- Pydantic Deep (
pydantic-deepon PyPI) 0.2.18 up to, but not including, 0.4.0
Severity
- CVSS v4.0: 8.7 (High) –
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - The CVE record also lists a CVSS v3.1 score of 7.5 (High):
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Mitigation and recommended actions
- Immediate: Upgrade
pydantic-deepto version 0.4.0 or later. - If you cannot patch: I found no vendor-documented workaround. As a precaution, restrict network access to the DeepResearch
/export/pdfendpoint so untrusted clients cannot reach it. Also limit the service’s access to internal network resources and sensitive local files.

