Skip to content

← Public intelligence

PyPI package

pypdf

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

68 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 8.7PyPIAmendedPublished

    pypdf: Possible large memory usage when retrieving Roman page labels

    CVE-2026-102993 · GHSA-qv6h-rv94-w285

    Affected
    • PyPI pypdf < 6.17.0
    Fixed in
    6.17.0· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to large memory consumption. This requires accessing the page labels of a document with large Roman numerals. Patches This has been fixed in pypdf==6.17.0. Workarounds If you cannot upgrade yet, consider applying the changes from PR #4047.

    Recommended action: Upgrade to 6.17.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.com (1)osv.dev (2)Source checked Evidence →
  2. Medium, CVSS 6.9PyPIPublished

    pypdf: Inefficient handling of non-whitespace inputs in read_until_whitespace

    CVE-2026-82398 · GHSA-fc8x-2rww-xw9m

    Affected
    • PyPI pypdf < 6.15.0
    Fixed in
    6.15.0· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires a call to readuntilwhitespace with an input which does not have whitespace for a long time. Patches This has been fixed in pypdf==6.15.0. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3947.

    Recommended action: Upgrade to 6.15.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  3. Medium, CVSS 4.8PyPIPublished

    pypdf: Possible long runtimes/large memory usage when retrieving outlines

    CVE-2026-84310 · GHSA-23w6-3w8w-8484

    Affected
    • PyPI pypdf < 6.16.1
    Fixed in
    6.16.1· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to long runtimes and large memory consumption. This requires accessing the outlines of a document with either lots of entries or nested outlines with long re-used nesting paths. Patches This has been fixed in pypdf==6.16.1. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3966.

    Recommended action: Upgrade to 6.16.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  4. Medium, CVSS 4.8PyPIPublished

    pypdf: Possible long runtimes/large memory usage when extracting XForm objects

    CVE-2026-84311 · GHSA-763m-79hh-57f2

    Affected
    • PyPI pypdf < 6.16.1
    Fixed in
    6.16.1· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to long runtimes and large memory consumption. This requires extracting the text of a page with lots of XForm objects, where some of them might be re-used. Patches This has been fixed in pypdf==6.16.1. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3966.

    Recommended action: Upgrade to 6.16.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  5. Medium, CVSS 6.9PyPIPublished

    pypdf: Possible infinite loop for TreeObject.insert_child

    CVE-2026-84309 · GHSA-jp53-mhqp-8xcg

    Affected
    • PyPI pypdf < 6.16.0
    Fixed in
    6.16.0· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires a (usually writing) code path where TreeObject.insertchild is involved. Patches This has been fixed in pypdf==6.16.0. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3964.

    Recommended action: Upgrade to 6.16.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  6. Medium, CVSS 4.8PyPIPublished

    pypdf: Possible large memory usage for large /ToUnicode streams

    CVE-2026-71870 · GHSA-fp3f-mc75-235c

    Affected
    • PyPI pypdf < 6.15.0
    Fixed in
    6.15.0· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to large memory consumption. This requires parsing the /ToUnicode entry of a font with unusually large values, for example during text extraction. Patches This has been fixed in pypdf==6.15.0. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3944.

    Recommended action: Upgrade to 6.15.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  7. Medium, CVSS 4.8PyPIPublished

    pypdf: Possible long runtimes/large memory usage for large CID font width ranges

    CVE-2026-71852 · GHSA-fwg2-594c-jp42

    Affected
    • PyPI pypdf < 6.15.0
    Fixed in
    6.15.0· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to long runtimes and large memory consumption. This requires parsing the font width entries of a font with unusually large values, for example during text extraction. Patches This has been fixed in pypdf==6.15.0. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3946.

    Recommended action: Upgrade to 6.15.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  8. High, CVSS 8.7PyPIAmendedPublished

    pypdf: Possible infinite loop for not terminated inline images (ASCII85 and ASCIIHex filter)

    CVE-2026-59935 · GHSA-g867-7843-wf8q

    Affected
    • PyPI pypdf < 6.14.2
    Fixed in
    6.14.2· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires parsing the content stream of a page with a not terminated inline image, as done when extracting the page text for example. It only affects the ASCII85 and ASCIIHex filters. Patches This has been fixed in pypdf==6.14.2. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3892.

    Recommended action: Upgrade to 6.14.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  9. High, CVSS 8.7PyPIAmendedPublished

    pypdf: Possible infinite loop for not terminated inline images

    CVE-2026-59936 · GHSA-5xf7-4p34-54qr

    Affected
    • PyPI pypdf < 6.14.1
    Fixed in
    6.14.1· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires parsing the content stream of a page with a not terminated inline image, as done when extracting the page text for example. Patches This has been fixed in pypdf==6.14.1. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3891.

    Recommended action: Upgrade to 6.14.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  10. Medium, CVSS 6.9PyPIAmendedPublished

    pypdf: Possible long runtimes for repeated malformed cross-reference entries

    CVE-2026-59937 · GHSA-55h5-xmcq-c37v

    Affected
    • PyPI pypdf < 6.14.0
    Fixed in
    6.14.0· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires cross-reference streams with repeated malformed cross-reference streams. Patches This has been fixed in pypdf==6.14.0. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3887.

    Recommended action: Upgrade to 6.14.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  11. Medium, CVSS 6.9PyPIAmendedPublished

    pypdf: Possible large memory usage for wrong image dimensions

    CVE-2026-59938 · GHSA-5qjq-93h5-hrgp

    Affected
    • PyPI pypdf < 6.14.0
    Fixed in
    6.14.0· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires loading images where the declared size values are much too large compared to the actual data. Patches This has been fixed in pypdf==6.14.0. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3888.

    Recommended action: Upgrade to 6.14.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  12. Medium, CVSS 6.9PyPIAmendedPublished

    pypdf: Possible infinite loop when processing threads/articles in writer

    CVE-2026-54651 · GHSA-g9xf-7f8q-9mcj

    Affected
    • PyPI pypdf < 6.13.1
    Fixed in
    6.13.1· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires merging a file with threads/articles into a writer. Patches This has been fixed in pypdf==6.13.1. Workarounds If users cannot upgrade yet, consider applying the changes from PR #3839.

    Recommended action: Upgrade to 6.13.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  13. Medium, CVSS 6.9PyPIAmendedPublished

    pypdf: Missing stream length values ignore defined limits

    CVE-2026-57204 · GHSA-jm82-fx9c-mx94

    Affected
    • PyPI pypdf < 6.13.3
    Fixed in
    6.13.3· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to large memory usage, as MAXDECLAREDSTREAMLENGTH is sometimes ignored. This requires parsing a content stream without a /Length value. Patches This has been fixed in pypdf==6.13.3. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3871.

    Recommended action: Upgrade to 6.13.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  14. Medium, CVSS 6.9PyPIAmendedPublished

    pypdf: Possible infinite loop when processing outlines/bookmarks in writer

    CVE-2026-54531 · GHSA-m2v9-299j-rv96

    Affected
    • PyPI pypdf < 6.13.0
    Fixed in
    6.13.0· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires merging a file with outlines into a writer. Patches This has been fixed in pypdf==6.13.0. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3830.

    Recommended action: Upgrade to 6.13.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  15. Medium, CVSS 6.9PyPIAmendedPublished

    pypdf: Possible infinite loop when retrieving fonts for layout-mode text extraction

    CVE-2026-54530 · GHSA-52x6-gq3r-vpf4

    Affected
    • PyPI pypdf < 6.13.0
    Fixed in
    6.13.0· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires extracting the text in layout mode. Patches This has been fixed in pypdf==6.13.0. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3830.

    Recommended action: Upgrade to 6.13.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  16. Medium, CVSS 6.9PyPIAmendedPublished

    pypdf: Possible large memory usage for form XObjects during text extraction

    CVE-2026-49461 · GHSA-j543-4vmf-qm7v

    Affected
    • PyPI pypdf < 6.12.2
    Fixed in
    6.12.2· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires extracting the text of a page which contains a form XObject with self-references. Patches This has been fixed in pypdf==6.12.2. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3805.

    Recommended action: Upgrade to 6.12.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  17. Medium, CVSS 5.1PyPIAmendedPublished

    pypdf: Inefficient decoding of FlateDecode PNG predictor streams

    CVE-2026-49460 · GHSA-5hgr-hg42-57jg

    Affected
    • PyPI pypdf < 6.12.2
    Fixed in
    6.12.2· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires accessing a stream which uses the /FlateDecode filter with a PNG predictor. Patches This has been fixed in pypdf==6.12.2. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3806.

    Recommended action: Upgrade to 6.12.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  18. Medium, CVSS 6.9PyPIAmendedPublished

    pypdf: Manipulated XMP metadata streams can exhaust RAM

    CVE-2026-48735 · GHSA-wjqc-6w8f-h24c

    Affected
    • PyPI pypdf < 6.12.1
    Fixed in
    6.12.1· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing large XMP metadata, possibly with lots of unnecessary elements. Patches This has been fixed in pypdf==6.12.1. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3796.

    Recommended action: Upgrade to 6.12.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  19. Medium, CVSS 5.1PyPIAmendedPublished

    pypdf: Possible long runtimes for zero-only width values in cross-reference streamsuntimes for zero-only width values in cross-reference streams

    CVE-2026-48156 · GHSA-248m-82v9-q6g6

    Affected
    • PyPI pypdf < 6.12.0
    Fixed in
    6.12.0· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires cross-reference streams with /W [0 0 0] values and large /Size values. Patches This has been fixed in pypdf==6.12.0. Workarounds If developers are unable to upgrade their apps immediately, they should consider applying the changes from PR #3791.

    Recommended action: Upgrade to 6.12.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  20. Medium, CVSS 4.8PyPIAmendedPublished

    pypdf: Possible large memory usage for large offsets for layout mode text

    CVE-2026-48155 · GHSA-cj93-chg6-vgv8

    Affected
    • PyPI pypdf < 6.12.0
    Fixed in
    6.12.0· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires extracting text in layout mode with large character offsets. Patches This has been fixed in pypdf==6.12.0. Workarounds If developers are unable to immediately upgrade, they should consider applying the changes from PR #3790.

    Recommended action: Upgrade to 6.12.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  21. Medium, CVSS 6.8PyPIAmendedPublished

    pypdf: Manipulated FlateDecode image dimensions can exhaust RAM

    CVE-2026-41314 · GHSA-x284-j5p8-9c5p

    Affected
    • PyPI pypdf < 6.10.2
    Fixed in
    6.10.2· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to the RAM being exhausted. This requires accessing an image using /FlateDecode with large size values. Patches This has been fixed in pypdf==6.10.2. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3734.

    Recommended action: Upgrade to 6.10.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  22. Medium, CVSS 6.8PyPIAmendedPublished

    pypdf: Possible long runtimes for wrong size values in incremental mode

    CVE-2026-41313 · GHSA-4pxv-j86v-mhcw

    Affected
    • PyPI pypdf < 6.10.2
    Fixed in
    6.10.2· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires loading a PDF with a large trailer /Size value in incremental mode. Patches This has been fixed in pypdf==6.10.2. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3735.

    Recommended action: Upgrade to 6.10.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  23. Medium, CVSS 6.8PyPIAmendedPublished

    pypdf: Manipulated FlateDecode predictor parameters can exhaust RAM

    CVE-2026-41312 · GHSA-7gw9-cf7v-778f

    Affected
    • PyPI pypdf < 6.10.2
    Fixed in
    6.10.2· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to the RAM being exhausted. This requires accessing a stream compressed using /FlateDecode with a /Predictor unequal 1 and large predictor parameters. Patches This has been fixed in pypdf==6.10.2. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3734.

    Recommended action: Upgrade to 6.10.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  24. Medium, CVSS 4.8PyPIAmendedPublished

    pypdf has long runtimes for wrong size values in cross-reference and object streams

    CVE-2026-41168 · GHSA-jj6c-8h6c-hppx

    Affected
    • PyPI pypdf < 6.10.1
    Fixed in
    6.10.1· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires cross-reference streams with wrong large /Size values or object streams with wrong large /N values. Patches This has been fixed in pypdf==6.10.1. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3733.

    Recommended action: Upgrade to 6.10.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  25. Medium, CVSS 6.9PyPIAmendedPublished

    pypdf: Manipulated XMP metadata entity declarations can exhaust RAM

    CVE-2026-40260 · GHSA-3crg-w4f6-42mx

    Affected
    • PyPI pypdf < 6.10.0
    Fixed in
    6.10.0· Vendor fix available
    Issue
    Impact An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the XMP metadata. Patches This has been fixed in pypdf==6.10.0. Workarounds If you cannot upgrade yet, consider applying the changes from PR #3724.

    Recommended action: Upgrade to 6.10.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →