pypdf

A pure-python PDF library capable of splitting, merging, cropping, and transforming PDF files

7.2.0Latest, 26 Nov 2026
228MDownloads, last month
0Advisories on the latest
40Advisories, all versions
BSD-3-ClauseLicence
1KStars
8.7/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
High pypdf has possible long runtimes when retrieving page labels CVE-2026-119206 Fixed in 6.21.3 30 Oct 2026
High pypdf has possible large memory usage for exceptions in strict mode CVE-2026-119207 Fixed in 6.21.3 30 Oct 2026
High pypdf has possible infinite loop when hitting EOF in standard xref table during trailer search CVE-2026-119203 Fixed in 6.21.4 30 Oct 2026
High pypdf has possible long runtimes/large memory usage for encrypted PDF files CVE-2026-119208 Fixed in 6.21.3 30 Oct 2026
High pypdf has possible large memory usage when parsing page tree CVE-2026-119204 Fixed in 6.21.4 30 Oct 2026
High pypdf has possible infinite loop when cloning dictionaries CVE-2026-119205 Fixed in 6.21.4 30 Oct 2026
High pypdf has possible large memory usage when parsing cross-reference streams CVE-2026-119209 Fixed in 6.21.3 30 Oct 2026
High pypdf: Possible long runtimes for repeated references to the same missing object CVE-2026-115572 Fixed in 6.21.2 23 Oct 2026
High pypdf: Possible long runtimes for large xref table header limits CVE-2026-115580 Fixed in 6.21.2 23 Oct 2026
High pypdf: Possible long runtimes for repeated malformed cross-reference entries (Follow-up) CVE-2026-115585 Fixed in 6.21.2 23 Oct 2026
Moderate pypdf: Possible long runtimes/large memory usage when retrieving form fields CVE-2026-113789 Fixed in 6.21.0 22 Oct 2026
Moderate pypdf: Possible large memory usage when parsing content streams CVE-2026-113791 Fixed in 6.21.0 22 Oct 2026
Moderate pypdf: Possible large memory usage when parsing arrays and dictionaries CVE-2026-113790 Fixed in 6.21.0 22 Oct 2026
Moderate pypdf: Possible infinite loop when hitting EOF in standard xref table CVE-2026-113794 Fixed in 6.20.0 21 Oct 2026
Low pypdf: Unvalidated JPEG image data loading CVE-2026-113786 Fixed in 6.21.1 21 Oct 2026

In the news

Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.