pypdf is a free and open-source pure-python PDF library. Prior to 6.21.2, an attacker can craft a PDF with a standard cross-reference table whose declared entry count exceeds what the file can contain, causing excessive processing and long runtimes when the file is opened. This issue is fixed in version 6.21.2.
https://github.com/py-pdf/pypdf/security/advisories/GHSA-gmh7-3g9r-mjh5
https://github.com/py-pdf/pypdf/releases/tag/6.21.2
https://github.com/py-pdf/pypdf/pull/4239
https://github.com/py-pdf/pypdf/commit/a3061e34b169d34478d520f5f049c53cfb1482b2
Published: 2026-10-23
Updated: 2026-10-23
Base Score: 5.8
Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:N/A:P
Severity: Medium
Base Score: 7.5
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Severity: High
Base Score: 7.1
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Severity: High