What’s Vulnerable › Vulnerabilities

CVE-2026-24688: pypdf has possible Infinite Loop when processing outlines/bookmarks

Description

pypdf is a free and open-source pure-python PDF library. An attacker who uses an infinite loop vulnerability that is present in versions prior to 6.6.2 can craft a PDF which leads to an infinite loop. This requires accessing the outlines/bookmarks. This has been fixed in pypdf 6.6.2. If projects cannot upgrade yet, consider applying the changes from PR #3610 manually.

Affected products

How to fix

Upgrade to a fixed version: py-pdf pypdf 6.6.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-24688 or the next vulnerability affects your stack