CVE-2026-137954

Pydantic Deep 0.2.18 before 0.4.0 SSRF and File Read via /export/pdf

Published Nov 27, 2026 CVSS 4.0 · 8.7 High EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A flaw in the DeepResearch export_report handler for /export/pdf permits attackers to inject raw HTML through the unauthenticated /upload endpoint. The injected HTML is processed by WeasyPrint, which then retrieves URLs embedded in the report. Because the URLs can point to internal resources, the application can be made to request seemingly arbitrary locations on the internal network or read local files. The vulnerability is a textbook example of CWE‑918, a Server‑Side Request Forgery, and results in the unintended disclosure of internal content to an external attacker.

Affected Systems

The affected product is Pydantic Deep from vstorm‑co. Versions 0.2.18 up to, but not including, 0.4.0 contain the defect. Users running any of these releases have the described SSRF and file‑read issue.

Risk and Exploitability

The CVSS score of 8.7 categorizes this flaw as High severity. The EPSS score is not available, but attackers can exploit the path through the public /upload endpoint, meaning that the vulnerability is practically reachable once the application is live. The flaw is not currently listed in the CISA KEV catalog. The likely attack vector involves sending a crafted report via /upload to embed an internal URL, which WeasyPrint then resolves, allowing the attacker to read files from the server’s file system or to contact internal services. Because the flaw is reachable without authentication, the potential impact is significant for confidentiality and integrity of internal data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Pydantic Deep to version 0.4.0 or newer, which contains the fix for the SSRF and file read issue.
  • If an upgrade is not immediately possible, restrict or protect the /upload and /export/pdf endpoints so that only authenticated, authorized users can submit reports, thereby eliminating the unauthenticated attack surface.
  • Reconfigure the application or WeasyPrint to disallow external URL fetching or to enforce strict referrer checks, which mitigates the SSRF vector by preventing the server from resolving internal URLs.

Generated by OpenCVE AI on November 27, 2026 at 16:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Vstorm-co
Vstorm-co pydantic Deep
Vendors & Products Vstorm-co
Vstorm-co pydantic Deep
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Pydantic Deep 0.2.18 before 0.4.0 SSRF and File Read via /export/pdf
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 8.7, 'vector': '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'}

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 27, 2026, 4:23 PM
Reserved
Nov 27, 2026, 2:46 PM
Status
Received
Published
Nov 27, 2026, 4:18 PM
Modified
Nov 27, 2026, 5:17 PM