Skip to main content

Pydantic Deep CVE-2026-137954

| EUVDEUVD-2026-137443 HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2026-11-27 VulnCheck GHSA-p2g5-wc57-qjrw
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach unauthenticated /upload endpoint
  2. Exploit
    Inject raw HTML referencing internal URL or local file
  3. Execution
    Trigger /export/pdf WeasyPrint render with resource loading
  4. Impact
    Exfiltrate internal responses and local files via exported PDF

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a running DeepResearch app with the optional PDF-export extra (WeasyPrint) installed, a network-reachable and unauthenticated /upload endpoint, and the /export/pdf handler rendering reports with external/local resource loading enabled (the default behavior in affected versions >=0.2.18, <0.4.0). The key LIMITING factor is that the export extra must be installed - if it is not present, the vulnerable PDF-rendering path is unreachable. Additional real-world limiter: in versions before 0.4.0 the app did not require an operator password and did not bind to loopback by default, so actual exposure depends on how the operator deployed it; the 0.4.0 fix adds a DEEPRESEARCH_PASSWORD requirement and loopback binding alongside disabling resource fetching. No authentication is required to reach /upload (PR:N).

Impact

The CVSS 4.0 base score of 8.7 (AV:N/AC:L/AT:N/PR:N/UI:N) indicates a network-reachable, low-complexity flaw needing no authentication or user interaction, with high confidentiality impact (VC:H) but no integrity or availability impact (VI:N/VA:N) and no scope change (SC:N/SI:N/SA:N) - consistent with an SSRF plus local-file-read that leaks data without altering the system. No EPSS probability and no KEV status were supplied, so there is no signal of active or probable exploitation: the flaw is not confirmed actively exploited (CISA KEV) and no public exploit was identified at time of analysis. The vuln.today Decision label is 'this_week', not act_now or emergency, matching a serious-but-not-crisis posture. Net assessment: this is a genuine priority to remediate for anyone running the DeepResearch app with the PDF-export extra, because unauthenticated SSRF/file-read against internal resources is directly impactful, but two factors temper real-world risk - exploitation requires the optional export extra (WeasyPrint) to be installed, and the product is a niche open-source library rather than widely deployed infrastructure. Missing EPSS and the absence of any exploitation evidence mean urgency rests on the vendor/VulnCheck 'this_week' decision and the clean unauthenticated vector rather than on observed attacks.

Exploit ScenarioDerived

An attacker reaches a network-exposed DeepResearch instance and uses the unauthenticated /upload endpoint to submit a report containing raw HTML that references an internal URL or a local file path. When /export/pdf renders the report, WeasyPrint (installed via the export extra) fetches those resources and embeds internal service responses and local server files into the resulting PDF, which the attacker then retrieves. Given AV:N/AC:L/PR:N/UI:N the step is remote and requires no authentication or victim interaction; no public exploit identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 27, 2026

Server-side request forgery and local file read in the bundled DeepResearch app of Pydantic Deep 0.2.18 through 0.3.x let unauthenticated remote attackers make the server fetch internal URLs and embed local server files into exported PDFs. Attackers inject raw HTML into a report through the unauthenticated /upload endpoint, and the /export/pdf handler then hands that content to WeasyPrint with external and local resource loading left enabled, so the rendered PDF can carry back content from internal services or the filesystem. The flaw is only reachable when the optional PDF-export extra (WeasyPrint) is installed, and real-world exposure depends on deployment because pre-0.4.0 builds required no operator password and did not bind to loopback by default; no public exploit code was identified at time of analysis, and the vendor-released patch is version 0.4.0.

RemediationAI

Upgrade pydantic-deep to 0.4.0 or later, which bundles DeepResearch 0.2.0, sanitizes rendered report content and disables external/local resource fetching during PDF rendering; the release notes also state that operators must set DEEPRESEARCH_PASSWORD before starting the app and sign in as deepresearch, and that the service binds to loopback by default. Details are in the GitHub advisory https://github.com/vstorm-co/pydantic-deepagents/security/advisories/GHSA-f4p6-c493-769c, the fix commit https://github.com/vstorm-co/pydantic-deepagents/commit/25947c1f86cb9b2362165712711b28809dfc6202 and the release https://github.com/vstorm-co/pydantic-deepagents/releases/tag/0.4.0, with additional context in the VulnCheck advisory https://www.vulncheck.com/advisories/pydantic-deep-0.2.18-before-0.4.0-ssrf-and-file-read-via-export-pdf. If upgrading is not immediately possible, uninstall the PDF-export extra so WeasyPrint is absent and the /export/pdf rendering path becomes unreachable, at the cost of losing PDF export entirely; alternatively deny unauthenticated access to /upload and /export/pdf at a reverse proxy or network boundary and bind the service to loopback only, but note that pre-0.4.0 builds have no built-in operator password, so these controls depend entirely on the surrounding infrastructure and do not fix the underlying resource-loading behavior.

Affected VersionsENISA

Pydantic Deep 0.2.18 <0.4.0

Affected Packages

euvd pydantic_deep fix: 0.4.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is DeepResearch, an application bundled with the pydantic-deep Python package that accepts uploaded material and can export a research report as a PDF. The root cause class is CWE-918 (server-side request forgery): the export_report handler behind /export/pdf passed report content to the WeasyPrint HTML-to-PDF renderer while resource loading was still enabled, and because the /upload endpoint accepted raw HTML without sanitization, an attacker-controlled report body could carry markup referencing internal network URLs or local file paths. WeasyPrint resolves such references at render time with the server's own network position and file permissions, so the resulting PDF becomes an exfiltration channel rather than just a document, producing high confidentiality impact with no integrity or availability effect. The vendor fix in 0.4.0 sanitizes rendered reports and disables resource fetching during PDF rendering (DeepResearch 0.2.0), and the same release hardens deployment by requiring an operator password (DEEPRESEARCH_PASSWORD) for HTTP and WebSocket access, binding to loopback by default, verifying session paths, sandboxing HTML and SVG previews, and granting CI jobs read-only permissions. The commit also raises the minimum Python version to 3.11 and lowers the memory of the flaw to one of untrusted content reaching a rendering engine with ambient privileges.

Know when Pydantic Deep gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 7.5 HIGH

Unauthenticated network-reachable /upload (PR:N, AV:N, AC:L, UI:N); SSRF/file-read leaks data only, so C:H with I:N/A:N and no scope change.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Technical POC Analysis

CWE-918 (server-side request forgery), with local file read as the secondary impact.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

Pydantic Deep's DeepResearch application, versions 0.2.18 through 0.3.x, contains a high-severity vulnerability that allows unauthenticated attackers to access internal services and sensitive server files through maliciously crafted PDF exports. Organizations using this software, particularly those with exposed deployments and the optional PDF-export component enabled, face potential data leakage and unauthorized access to internal systems, which could undermine customer trust and regulatory compliance. Leadership should prioritize immediate remediation to prevent exploitation.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 54% exploitable
Prevalence
Low
niche open-source AI-agent library (vstorm-co pydantic-deep), limited production footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy