pypdf is a free and open-source pure-python PDF library. Prior to 6.16.0, an attacker can craft a PDF whose cyclic tree structure causes pypdf/generic/_data_structures.py TreeObject.insert_child to follow /Next links indefinitely when a writing code path inserts a child, producing an infinite loop. This issue is fixed in version 6.16.0.
https://github.com/py-pdf/pypdf/security/advisories/GHSA-jp53-mhqp-8xcg
https://github.com/py-pdf/pypdf/releases/tag/6.16.0
https://github.com/py-pdf/pypdf/pull/3964
https://github.com/py-pdf/pypdf/commit/c9ba557d565d57c53a0b3a0be06c0a4c29b0559b
Published: 2026-09-01
Updated: 2026-09-02
Base Score: 5.8
Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:N/A:P
Severity: Medium
Base Score: 5.5
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Severity: Medium
Base Score: 6.9
Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Severity: Medium
EPSS: 0.00127