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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-776"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40260.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:pypdf_project:pypdf:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "6.10.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "b15a374e5ca648d4878e57c3b2c0551e7f8cc7f8"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "6.10.0",
"range": [
{
"fixed": "fd0aeca4e94a4791502a9a164742d2be68c7f565"
}
],
"source": "REFERENCES_TAG"
}
]
}