ADVISORIES

PyPA Advisory Database

PYSEC-2026-1827

pypdf has possible Infinite Loop when processing outlines/bookmarks

Details

Impact

An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires accessing the outlines/bookmarks.

Patches

This has been fixed in pypdf 6.6.2.

Workarounds

If projects cannot upgrade yet, consider applying the changes from PR #3610.

Affected packages

EcosystemPackageAffected versions
PyPIpypdf
All versions before 6.6.2 (fixed in 6.6.2)

References