medium6.0
CVE-2026-113792
pypdf: Possible infinite loop in PdfWriter.find_outline_item
Impact
pypdf is a free and open-source pure-python PDF library. Prior to 6.20.1, calling PdfWriter.find_outline_item on a crafted PDF with a cyclic outline hierarchy can enter an infinite loop and block the current process. This issue is fixed in version 6.20.1.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | pypdf | < 6.20.1 | 6.20.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-qfv9-64jg-mh7p
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-qfv9-64jg-mh7p
- https://github.com/py-pdf/pypdf/pull/4188
- https://github.com/py-pdf/pypdf/commit/c9c35b4471c2eb5fe078094f6c816e69d4ed25a0
- https://github.com/py-pdf/pypdf/releases/tag/6.20.1