CVE-2026-40260XML Entity Expansion in Pypdf

Severity
6.9MEDIUMNVD
EPSS
0.0%
top 95.49%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
Latest updateApr 10
PublishedApr 17

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.

CVSS vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Affected Packages2 packages

CVEListV5py-pdf/pypdf< 6.10.0
PyPIpypdf_project/pypdf< 6.10.0

🔴Vulnerability Details

1
GHSA
pypdf: Manipulated XMP metadata entity declarations can exhaust RAM2026-04-10