# pypdf (PyPI)

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

- Latest: 7.2.0 (2026-11-26)
- Licence: BSD-3-Clause
- Downloads: 228369804 last month
- Advisories on the latest version: 0

- CVE-2026-119206 HIGH: pypdf has possible long runtimes when retrieving page labels Fixed in 6.21.3.
- CVE-2026-119207 HIGH: pypdf has possible large memory usage for exceptions in strict mode Fixed in 6.21.3.
- CVE-2026-119203 HIGH: pypdf has possible infinite loop when hitting EOF in standard xref table during trailer search Fixed in 6.21.4.
- CVE-2026-119208 HIGH: pypdf has possible long runtimes/large memory usage for encrypted PDF files Fixed in 6.21.3.
- CVE-2026-119204 HIGH: pypdf has possible large memory usage when parsing page tree Fixed in 6.21.4.
- CVE-2026-119205 HIGH: pypdf has possible infinite loop when cloning dictionaries Fixed in 6.21.4.
- CVE-2026-119209 HIGH: pypdf has possible large memory usage when parsing cross-reference streams Fixed in 6.21.3.
- CVE-2026-115572 HIGH: pypdf: Possible long runtimes for repeated references to the same missing object Fixed in 6.21.2.
- CVE-2026-115580 HIGH: pypdf: Possible long runtimes for large xref table header limits Fixed in 6.21.2.
- CVE-2026-115585 HIGH: pypdf: Possible long runtimes for repeated malformed cross-reference entries (Follow-up) Fixed in 6.21.2.
- CVE-2026-113789 MODERATE: pypdf: Possible long runtimes/large memory usage when retrieving form fields Fixed in 6.21.0.
- CVE-2026-113791 MODERATE: pypdf: Possible large memory usage when parsing content streams Fixed in 6.21.0.
- CVE-2026-113790 MODERATE: pypdf: Possible large memory usage when parsing arrays and dictionaries Fixed in 6.21.0.
- CVE-2026-113794 MODERATE: pypdf: Possible infinite loop when hitting EOF in standard xref table Fixed in 6.20.0.
- CVE-2026-113786 LOW: pypdf: Unvalidated JPEG image data loading Fixed in 6.21.1.
- CVE-2026-113795 MODERATE: pypdf: Possible large memory usage for streams with multiple filters Fixed in 6.20.0.
- CVE-2026-113793 MODERATE: pypdf: Possible infinite loop when removing tree items Fixed in 6.20.1.
- CVE-2026-113792 MODERATE: pypdf: Possible infinite loop in PdfWriter.find_outline_item Fixed in 6.20.1.
- CVE-2026-102994 HIGH: pypdf: Possible long runtimes/large memory usage when parsing indirect objects Fixed in 6.18.0.
- CVE-2026-102995 HIGH: pypdf: Possible large memory usage for large /ToUnicode streams (Follow-up 2) Fixed in 6.18.1.
- CVE-2026-102996 HIGH: pypdf: Possible large memory usage when parsing font data Fixed in 6.18.1.
- CVE-2026-102997 HIGH: pypdf: Possible long runtimes for partially malformed FlateDecode streams (Follow-up) Fixed in 6.18.1.
- CVE-2026-102998 HIGH: pypdf: Possible long runtimes when generating appearance streams Fixed in 6.19.0.
- CVE-2026-102993 HIGH: pypdf: Possible large memory usage when retrieving Roman page labels Fixed in 6.17.0.
- CVE-2026-102999 HIGH: pypdf: Possible long runtimes with large amount of embedded files Fixed in 6.19.0.
- CVE-2026-103000 HIGH: pypdf: Possible large memory usage when retrieving alphabetical page labels Fixed in 6.19.0.
- CVE-2026-102994 : pypdf: Possible long runtimes/large memory usage when parsing indirect objects Fixed in 6.18.0.
- CVE-2026-102995 : pypdf: Possible large memory usage for large /ToUnicode streams (Follow-up 2) Fixed in 6.18.1.
- CVE-2026-102996 : pypdf: Possible large memory usage when parsing font data Fixed in 6.18.1.
- CVE-2026-102997 : pypdf: Possible long runtimes for partially malformed FlateDecode streams (Follow-up) Fixed in 6.18.1.
- CVE-2026-102998 : pypdf: Possible long runtimes when generating appearance streams Fixed in 6.19.0.
- CVE-2026-102993 : pypdf: Possible large memory usage when retrieving Roman page labels Fixed in 6.17.0.
- CVE-2026-102999 : pypdf: Possible long runtimes with large amount of embedded files Fixed in 6.19.0.
- CVE-2026-103000 : pypdf: Possible large memory usage when retrieving alphabetical page labels Fixed in 6.19.0.
- CVE-2026-84310 : pypdf: Possible long runtimes/large memory usage when retrieving outlines Fixed in 6.16.1.
- CVE-2026-84311 : pypdf: Possible long runtimes/large memory usage when extracting XForm objects Fixed in 6.16.1.
- CVE-2026-82398 : pypdf: Inefficient handling of non-whitespace inputs in read_until_whitespace Fixed in 6.15.0.
- CVE-2026-84309 : pypdf: Possible infinite loop for TreeObject.insert_child Fixed in 6.16.0.
- CVE-2026-82398 MODERATE: pypdf: Inefficient handling of non-whitespace inputs in read_until_whitespace Fixed in 6.15.0.
- CVE-2026-84310 MODERATE: pypdf: Possible long runtimes/large memory usage when retrieving outlines Fixed in 6.16.1.

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