CVE-2026-40260

pypdf: Manipulated XMP metadata entity declarations can exhaust RAM

MEDIUM
5.3
CVSS Score
Published: April 16, 2026 at 11:18 PM UTC
Updated: June 17, 2026 at 10:44 AM UTC
2 products affected across 2 vendorsPypdfPypdf

Using pypdf by py-pdf?

Get instant alerts when new vulnerabilities affect pypdf - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 0.4%
SSVC
No known exploit

Description

pypdf is a free and open-source pure-python PDF library. In versions prior to 6.10.0, manipulated XMP metadata entity declarations can exhaust RAM. An attacker who exploits this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the XMP metadata. This issue has been fixed in version 6.10.0.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 6.10.0
Affected range stops below 6.10.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (4)

x_refsource_CONFIRMMitigationPatchVendor Advisory
Source: cverecord
https://github.com/py-pdf/pypdf/security/advisories/GHSA-3crg-w4f6-42mx
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/py-pdf/pypdf/pull/3724
x_refsource_MISCProductRelease Notes
Source: cverecord
https://github.com/py-pdf/pypdf/releases/tag/6.10.0

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Vector?

Quick Info

StatusANALYZED
CWE
CWE-776

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card