PyPI (Python)Worst: High69 advisories

pypdf: known vulnerabilities

pypdf has 69 reviewed security advisories in the GitHub Advisory Database — 20 high, 45 moderate, 4 low. The most recent was published 2026-10-29. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the pypdf versions running across your servers, containers and images, and ranks what to patch first.

How to fix pypdf

Upgrade pypdf to a release at or above the fixed version shown for each advisory below. For PyPI (Python):

pip install --upgrade pypdf (pin pypdf>=6.21.3)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (69)

pypdf has possible long runtimes when retrieving page labels High CWE-400 — Affected: before 6.21.3. Fixed in 6.21.3. Published 2026-10-29. GHSA-42gh-23hr-vphw · CVE-2026-119206
pypdf has possible large memory usage for exceptions in strict mode High CWE-400 CWE-405 — Affected: before 6.21.3. Fixed in 6.21.3. Published 2026-10-29. GHSA-4vqv-7265-gm2w · CVE-2026-119207
pypdf has possible infinite loop when hitting EOF in standard xref table during trailer search High CWE-835 — Affected: before 6.21.4. Fixed in 6.21.4. Published 2026-10-29. GHSA-5849-834g-hvw5 · CVE-2026-119203
pypdf has possible long runtimes/large memory usage for encrypted PDF files High CWE-400 CWE-770 — Affected: before 6.21.3. Fixed in 6.21.3. Published 2026-10-29. GHSA-62m5-6wh8-28x7 · CVE-2026-119208
pypdf has possible large memory usage when parsing page tree High CWE-400 — Affected: before 6.21.4. Fixed in 6.21.4. Published 2026-10-29. GHSA-cggf-277g-3q54 · CVE-2026-119204
pypdf has possible infinite loop when cloning dictionaries High CWE-835 — Affected: before 6.21.4. Fixed in 6.21.4. Published 2026-10-29. GHSA-mfr5-77xh-9j7h · CVE-2026-119205
pypdf has possible large memory usage when parsing cross-reference streams High CWE-400 CWE-770 — Affected: before 6.21.3. Fixed in 6.21.3. Published 2026-10-29. GHSA-x3rh-gjgm-fmqc · CVE-2026-119209
pypdf: Possible long runtimes for repeated references to the same missing object High CWE-400 — Affected: before 6.21.2. Fixed in 6.21.2. Published 2026-10-23. GHSA-6c7f-9265-g8fw · CVE-2026-115572
pypdf: Possible long runtimes for large xref table header limits High CWE-834 — Affected: before 6.21.2. Fixed in 6.21.2. Published 2026-10-23. GHSA-gmh7-3g9r-mjh5 · CVE-2026-115580
pypdf: Possible long runtimes for repeated malformed cross-reference entries (Follow-up) High CWE-400 CWE-407 — Affected: before 6.21.2. Fixed in 6.21.2. Published 2026-10-23. GHSA-jr96-gvgh-j3r4 · CVE-2026-115585
pypdf: Possible infinite loop when hitting EOF in standard xref table Moderate CWE-835 — Affected: before 6.20.0. Fixed in 6.20.0. Published 2026-10-21. GHSA-39mj-jf6j-2qj3 · CVE-2026-113794
pypdf: Unvalidated JPEG image data loading Low CWE-183 CWE-20 — Affected: before 6.21.1. Fixed in 6.21.1. Published 2026-10-21. GHSA-5hx5-vpf9-5wcv · CVE-2026-113786
pypdf: Possible long runtimes/large memory usage when retrieving form fields Moderate CWE-400 CWE-407 — Affected: before 6.21.0. Fixed in 6.21.0. Published 2026-10-21. GHSA-6vvc-x485-93v7 · CVE-2026-113789
pypdf: Possible large memory usage for streams with multiple filters Moderate CWE-400 CWE-770 — Affected: before 6.20.0. Fixed in 6.20.0. Published 2026-10-21. GHSA-7mh2-4gg2-979f · CVE-2026-113795
pypdf: Possible infinite loop when removing tree items Moderate CWE-835 — Affected: before 6.20.1. Fixed in 6.20.1. Published 2026-10-21. GHSA-9mx8-4j7g-633p · CVE-2026-113793
pypdf: Possible large memory usage when parsing content streams Moderate CWE-400 CWE-770 — Affected: before 6.21.0. Fixed in 6.21.0. Published 2026-10-21. GHSA-cgf9-327m-v77c · CVE-2026-113791
pypdf: Possible large memory usage when parsing arrays and dictionaries Moderate CWE-400 — Affected: before 6.21.0. Fixed in 6.21.0. Published 2026-10-21. GHSA-f54x-cmq8-qg57 · CVE-2026-113790
pypdf: Possible infinite loop in PdfWriter.find_outline_item Moderate CWE-835 — Affected: before 6.20.1. Fixed in 6.20.1. Published 2026-10-21. GHSA-qfv9-64jg-mh7p · CVE-2026-113792
pypdf: Possible long runtimes/large memory usage when parsing indirect objects High CWE-400 CWE-407 — Affected: before 6.18.0. Fixed in 6.18.0. Published 2026-09-30. GHSA-5jq2-8x83-x246 · CVE-2026-102994
pypdf: Possible large memory usage for large /ToUnicode streams (Follow-up 2) High CWE-400 — Affected: before 6.18.1. Fixed in 6.18.1. Published 2026-09-30. GHSA-fp3h-c4fm-7vvf · CVE-2026-102995
pypdf: Possible large memory usage when parsing font data High CWE-400 — Affected: before 6.18.1. Fixed in 6.18.1. Published 2026-09-30. GHSA-g9cg-prrw-2r8q · CVE-2026-102996
pypdf: Possible long runtimes for partially malformed FlateDecode streams (Follow-up) High CWE-400 CWE-407 — Affected: before 6.18.1. Fixed in 6.18.1. Published 2026-09-30. GHSA-jw7q-gvrg-4vj3 · CVE-2026-102997
pypdf: Possible long runtimes when generating appearance streams High CWE-400 — Affected: before 6.19.0. Fixed in 6.19.0. Published 2026-09-30. GHSA-php9-fj8v-98fj · CVE-2026-102998
pypdf: Possible large memory usage when retrieving Roman page labels High CWE-400 CWE-770 — Affected: before 6.17.0. Fixed in 6.17.0. Published 2026-09-30. GHSA-qv6h-rv94-w285 · CVE-2026-102993
pypdf: Possible long runtimes with large amount of embedded files High CWE-400 CWE-407 — Affected: before 6.19.0. Fixed in 6.19.0. Published 2026-09-30. GHSA-v247-6f48-mgcj · CVE-2026-102999
pypdf: Possible large memory usage when retrieving alphabetical page labels High CWE-400 — Affected: before 6.19.0. Fixed in 6.19.0. Published 2026-09-30. GHSA-w23x-9jrw-r45c · CVE-2026-103000
pypdf: Possible long runtimes/large memory usage when retrieving outlines Moderate CWE-405 CWE-834 — Affected: before 6.16.1. Fixed in 6.16.1. Published 2026-09-01. GHSA-23w6-3w8w-8484 · CVE-2026-84310
pypdf: Possible long runtimes/large memory usage when extracting XForm objects Moderate CWE-834 — Affected: before 6.16.1. Fixed in 6.16.1. Published 2026-09-01. GHSA-763m-79hh-57f2 · CVE-2026-84311
pypdf: Possible infinite loop for TreeObject.insert_child Moderate CWE-835 — Affected: before 6.16.0. Fixed in 6.16.0. Published 2026-09-01. GHSA-jp53-mhqp-8xcg · CVE-2026-84309
pypdf: Inefficient handling of non-whitespace inputs in read_until_whitespace Moderate CWE-407 — Affected: before 6.15.0. Fixed in 6.15.0. Published 2026-08-31. GHSA-fc8x-2rww-xw9m · CVE-2026-82398
pypdf: Possible large memory usage for large /ToUnicode streams Moderate CWE-400 — Affected: before 6.15.0. Fixed in 6.15.0. Published 2026-08-07. GHSA-fp3f-mc75-235c · CVE-2026-71870
pypdf: Possible long runtimes/large memory usage for large CID font width ranges Moderate CWE-834 — Affected: before 6.15.0. Fixed in 6.15.0. Published 2026-08-07. GHSA-fwg2-594c-jp42 · CVE-2026-71852
pypdf: Possible long runtimes for repeated malformed cross-reference entries Moderate CWE-400 — Affected: before 6.14.0. Fixed in 6.14.0. Published 2026-07-08. GHSA-55h5-xmcq-c37v · CVE-2026-59937
pypdf: Possible large memory usage for wrong image dimensions Moderate CWE-789 — Affected: before 6.14.0. Fixed in 6.14.0. Published 2026-07-08. GHSA-5qjq-93h5-hrgp · CVE-2026-59938
pypdf: Possible infinite loop for not terminated inline images High CWE-400 CWE-835 — Affected: before 6.14.1. Fixed in 6.14.1. Published 2026-07-08. GHSA-5xf7-4p34-54qr · CVE-2026-59936
pypdf: Possible infinite loop for not terminated inline images (ASCII85 and ASCIIHex filter) High CWE-835 — Affected: before 6.14.2. Fixed in 6.14.2. Published 2026-07-08. GHSA-g867-7843-wf8q · CVE-2026-59935
pypdf: Possible infinite loop when processing threads/articles in writer Moderate CWE-835 — Affected: before 6.13.1. Fixed in 6.13.1. Published 2026-06-22. GHSA-g9xf-7f8q-9mcj · CVE-2026-54651
pypdf: Missing stream length values ignore defined limits Moderate CWE-400 CWE-770 — Affected: before 6.13.3. Fixed in 6.13.3. Published 2026-06-18. GHSA-jm82-fx9c-mx94 · CVE-2026-57204
pypdf: Possible infinite loop when retrieving fonts for layout-mode text extraction Moderate CWE-835 — Affected: before 6.13.0. Fixed in 6.13.0. Published 2026-06-16. GHSA-52x6-gq3r-vpf4 · CVE-2026-54530
pypdf: Inefficient decoding of FlateDecode PNG predictor streams Moderate CWE-407 — Affected: before 6.12.2. Fixed in 6.12.2. Published 2026-06-16. GHSA-5hgr-hg42-57jg · CVE-2026-49460
pypdf: Possible large memory usage for form XObjects during text extraction Moderate CWE-400 — Affected: before 6.12.2. Fixed in 6.12.2. Published 2026-06-16. GHSA-j543-4vmf-qm7v · CVE-2026-49461
pypdf: Possible infinite loop when processing outlines/bookmarks in writer Moderate CWE-835 — Affected: before 6.13.0. Fixed in 6.13.0. Published 2026-06-16. GHSA-m2v9-299j-rv96 · CVE-2026-54531
pypdf: Possible long runtimes for zero-only width values in cross-reference streamsuntimes for zero-only width values in cross-reference streams Moderate 3.3 CWE-834 — Affected: before 6.12.0. Fixed in 6.12.0. Published 2026-05-28. GHSA-248m-82v9-q6g6 · CVE-2026-48156
pypdf: Possible large memory usage for large offsets for layout mode text Moderate CWE-400 — Affected: before 6.12.0. Fixed in 6.12.0. Published 2026-05-28. GHSA-cj93-chg6-vgv8 · CVE-2026-48155
pypdf: Manipulated XMP metadata streams can exhaust RAM Moderate CWE-770 — Affected: before 6.12.1. Fixed in 6.12.1. Published 2026-05-28. GHSA-wjqc-6w8f-h24c · CVE-2026-48735
pypdf: Possible long runtimes for wrong size values in incremental mode Moderate 6.5 CWE-834 — Affected: before 6.10.2. Fixed in 6.10.2. Published 2026-04-22. GHSA-4pxv-j86v-mhcw · CVE-2026-41313
pypdf: Manipulated FlateDecode predictor parameters can exhaust RAM Moderate 6.5 CWE-789 — Affected: before 6.10.2. Fixed in 6.10.2. Published 2026-04-22. GHSA-7gw9-cf7v-778f · CVE-2026-41312
pypdf has long runtimes for wrong size values in cross-reference and object streams Moderate 5.3 CWE-834 — Affected: before 6.10.1. Fixed in 6.10.1. Published 2026-04-22. GHSA-jj6c-8h6c-hppx · CVE-2026-41168
pypdf: Manipulated FlateDecode image dimensions can exhaust RAM Moderate 6.5 CWE-789 — Affected: before 6.10.2. Fixed in 6.10.2. Published 2026-04-22. GHSA-x284-j5p8-9c5p · CVE-2026-41314
pypdf: Manipulated XMP metadata entity declarations can exhaust RAM Moderate 5.3 CWE-776 — Affected: before 6.10.0. Fixed in 6.10.0. Published 2026-04-17. GHSA-3crg-w4f6-42mx · CVE-2026-40260
pypdf: Possible infinite loop during recovery attempts in DictionaryObject.read_from_stream Moderate CWE-835 — Affected: before 6.9.2. Fixed in 6.9.2. Published 2026-03-27. GHSA-87mj-5ggw-8qc3 · CVE-2026-33699
pypdf has inefficient decoding of array-based streams Moderate CWE-400 CWE-407 — Affected: before 6.9.1. Fixed in 6.9.1. Published 2026-03-20. GHSA-qpxp-75px-xjcp · CVE-2026-33123
pypdf: manipulated stream length values can exhaust RAM Moderate CWE-770 — Affected: before 6.8.0. Fixed in 6.8.0. Published 2026-03-10. GHSA-hqmh-ppp3-xvm7 · CVE-2026-31826
pypdf vulnerable to inefficient decoding of ASCIIHexDecode streams Moderate CWE-407 — Affected: before 6.7.5. Fixed in 6.7.5. Published 2026-03-06. GHSA-9m86-7pmv-2852 · CVE-2026-28804
pypdf: Manipulated RunLengthDecode streams can exhaust RAM Moderate CWE-400 — Affected: before 6.7.4. Fixed in 6.7.4. Published 2026-02-27. GHSA-f2v5-7jq9-h8cg · CVE-2026-28351
pypdf: Manipulated FlateDecode XFA streams can exhaust RAM Moderate CWE-400 — Affected: before 6.7.3. Fixed in 6.7.3. Published 2026-02-26. GHSA-x7hp-r3qg-r3cj · CVE-2026-27888
pypdf has a possible infinite loop when loading circular /Prev entries in cross-reference streams Low CWE-835 — Affected: before 6.7.2. Fixed in 6.7.2. Published 2026-02-25. GHSA-2rw7-x74f-jg35 · CVE-2026-27628
pypdf has a possible infinite loop when processing TreeObject Moderate CWE-835 — Affected: before 6.7.1. Fixed in 6.7.1. Published 2026-02-20. GHSA-996q-pr4m-cvgq · CVE-2026-27024
pypdf possibly has long runtimes for malformed FlateDecode streams Moderate CWE-770 — Affected: before 6.7.1. Fixed in 6.7.1. Published 2026-02-20. GHSA-9mvc-8737-8j8h · CVE-2026-27026
pypdf has possible long runtimes/large memory usage for large /ToUnicode streams Moderate CWE-834 — Affected: before 6.7.1. Fixed in 6.7.1. Published 2026-02-20. GHSA-wgvp-vg3v-2xq3 · CVE-2026-27025
pypdf has possible Infinite Loop when processing outlines/bookmarks Moderate CWE-835 — Affected: before 6.6.2. Fixed in 6.6.2. Published 2026-01-27. GHSA-2q4j-m29v-hq73 · CVE-2026-24688
pypdf has possible long runtimes for malformed startxref Low CWE-1333 CWE-400 — Affected: before 6.6.0. Fixed in 6.6.0. Published 2026-01-10. GHSA-4f6g-68pf-7vhv · CVE-2026-22691
pypdf has possible long runtimes for missing /Root object with large /Size values Low CWE-400 — Affected: before 6.6.0. Fixed in 6.6.0. Published 2026-01-10. GHSA-4xc4-762w-m6cg · CVE-2026-22690
pypdf's LZWDecode streams be manipulated to exhaust RAM Moderate CWE-400 CWE-409 — Affected: before 6.4.0. Fixed in 6.4.0. Published 2025-11-26. GHSA-m449-cwjh-6pw7 · CVE-2025-66019
pypdf can exhaust RAM via manipulated LZWDecode streams Moderate CWE-409 — Affected: before 6.1.3. Fixed in 6.1.3. Published 2025-10-22. GHSA-jfx9-29x2-rv3j · CVE-2025-62708
pypdf possibly loops infinitely when reading DCT inline images without EOF marker Moderate CWE-834 — Affected: before 6.1.3. Fixed in 6.1.3. Published 2025-10-22. GHSA-vr63-x8vc-m265 · CVE-2025-62707
PyPDF's Manipulated FlateDecode streams can exhaust RAM Moderate CWE-400 CWE-770 — Affected: before 6.0.0. Fixed in 6.0.0. Published 2025-08-13. GHSA-7hfw-26vp-jp8m · CVE-2025-55197
Possible Infinite Loop when PdfWriter(clone_from) is used with a PDF Moderate 5.1 CWE-835 — Affected: from 3.7.0 up to 3.17.0. Fixed in 3.17.0. Published 2023-10-31. GHSA-wjcc-cq79-p63f · CVE-2023-46250
pypdf and PyPDF2 possible Infinite Loop when a comment isn't followed by a character Moderate 6.2 CWE-835 — Affected: from 3.1.0 up to 3.9.0. Fixed in 3.9.0. Published 2023-06-27. GHSA-4vvm-4w3v-6mr8 · CVE-2023-36464

Find pypdf across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.