CVE-2026-40260: py-pdf pypdf XML Entity Expansion
Vulnerability summary
CVE-2026-40260 is a medium (CVSS 6.9) XML Entity Expansion vulnerability in py-pdf pypdf. EPSS estimates a 0.52% chance of exploitation in the next 30 days, higher than 42.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 16-04-2026PublishedVulnerability first disclosed.
- 17-04-2026Last modifiedVulnerability information updated.
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 metrics
10 scores · 7 sources · 2 versions- OSV · PypiEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · UbuntuEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · WolfiEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- NVDNIST6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.52%
Chance of exploitation in the next 30 days
Percentile
43%
Versus all other CVEs
30-day change
+0.09 pp
From 0.42% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard3 products
- litellm< 1.82.3.0-r4
- nemo< 2.7.2-r2
- open-webui< 0.9.2-r0 | < 0.8.12-r4
Opensuse3 products
- python-PyPDF2&distro=openSUSE Leap 16.0< 2.11.1-bp160.6.1
- python-PyPDF2&distro=openSUSE Tumbleweed< 2.11.1-9.1
- python-pypdf&distro=openSUSE Tumbleweed< 6.10.2-1.1
Debian2 products
- pypdfAll versions (No fix recorded) | < 6.19.0-1
- pypdf2All versions (No fix recorded)
Ubuntu2 products
- pypdfAll versions (No fix recorded)
- pypdf2All versions (No fix recorded)
Py-pdf1 product
- pypdf< 6.10.0
Pypdf_project1 product
- pypdf< 6.10.0
PyPI1 product
- pypdf< 6.10.0
Wolfi1 product
- open-webui< 0.9.2-r0 | < 0.8.12-r4
8 vendors · 14 products
References
14 links- github.com/py-pdf/pypdf/security/advisories/GHSA-3crg-w4f6-42mxX Refsource CONFIRMWEBREPORTAdvisoryMitigationPatchVendor Advisory
- github.com/py-pdf/pypdfPACKAGE
- pypi.org/project/pypdfPACKAGE