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

Published Updated

Unauthenticated attackers can inject HTML into reports so Pydantic Deep fetches internal URLs and embeds local server files into exported PDFs.

CVSS score

High

8.7/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
0.4.0
Attack path
Over the internet
No login, no user action

What is CVE-2026-137954?

CVE-2026-137954 is a high-severity server-side request forgery vulnerability in vstorm-co Pydantic Deep, published on 27 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-918

How severe is CVE-2026-137954?

CVE-2026-137954 scores 8.7 out of 10 under CVSS 4.0, which is high severity. It was scored by VulnCheck.

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None

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

Which versions are affected by CVE-2026-137954?

1 open source package ship an affected version, including pydantic-deep.

An affected version is exposed as installed. No special setting or call is needed.

PackageAffectedFixed in
pydantic-deep PyPI
pkg:pypi/pydantic-deep
From 0.2.180.4.0

How do I fix CVE-2026-137954?

Upgrade pydantic-deep to 0.4.0 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-137954 being exploited?

There is no known exploitation of CVE-2026-137954 in the wild and no public exploit code.

Sources

Also known as GHSA-f4p6-c493-769c, GHSA-p2g5-wc57-qjrw.

Is CVE-2026-137954 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free