CVE-2026-137954: Pydantic Deep 0.2.18 before 0.4.0 SSRF and File Read via /export/pdf

Published Nov 27, 2026
·
Updated

Pydantic Deep 0.2.18 before 0.4.0 contains a server-side request forgery and local file read vulnerability in the DeepResearch exportreport 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.

Affected Software

1 affected component
pypi/pydantic-deep>=0.2.18<0.4.0

Event History

Nov 27, 2026
CVE Published
via MITRE·03:22 PM
Data Sourced
via MITRE·03:22 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:18 PM
DescriptionSeverityWeakness
Event
via NVD·04:18 PM

Frequently Asked Questions

1

Which deployments are exposed?

Pydantic Deep versions from 0.2.18 up to, but not including, 0.4.0 are affected. Exposure requires the DeepResearch export_report handler at /export/pdf and the unauthenticated /upload endpoint to be reachable by an attacker.

2

What does an attacker need to exploit this issue?

No authentication or user interaction is required. An attacker can submit raw HTML through /upload and trigger PDF export processing so that WeasyPrint retrieves internal URLs or local server files.

3

What data could be exposed?

The vulnerability can cause internal network resources requested by WeasyPrint to be fetched and can embed local files from the server into exported PDFs. The provided data does not identify specific file paths or internal services.

4

What is the available remediation?

Upgrade to version 0.4.0, which is identified as the fixed release. The provided data does not specify a workaround for environments that cannot upgrade immediately.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203