CVE-2026-137954

7.5High

Published Nov 27, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.5CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
High impact on confidentiality
Weakness
CWE-918

What an attacker gets

Unauthenticated attackers can read local server files and perform SSRF by injecting malicious HTML into reports. This occurs via the /upload endpoint and the /export/pdf handler.

Root cause

The application fails to sanitize HTML input before passing it to the WeasyPrint library, allowing arbitrary URL fetching and file inclusion.

Affected versions

Pydantic Deep 0.2.18 through 0.3.x

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Fix & remediation

Upgrade to Pydantic Deep 0.4.0 or later. If you cannot update immediately, disable the /upload and /export/pdf endpoints.

remediation — bash
$ pip install --upgrade pydantic-deep

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-137954

More fully triaged vulnerabilities you may want to check next.