CVE-2026-22690
Description
pypdf is a free and open-source pure-python PDF library. Prior to version 6.6.0, pypdf has possible long runtimes for missing /Root object with large /Size values. An attacker who uses this vulnerability can craft a PDF which leads to possibly long runtimes for actually invalid files. This can be achieved by omitting the /Root entry in the trailer, while using a rather large /Size value. Only the non-strict reading mode is affected. This issue has been patched in version 6.6.0.
How to fix
- pypdf_project pypdf6.6.0 or later
- pypdf6.6.0 or later
- py-pdf pypdf6.6.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypdf_project pypdf | v < 6.6.0 | 6.6.0 |
| pypdfPyPI | v < 6.6.0 | 6.6.0 |
| py-pdf pypdf | v < 6.6.0 | 6.6.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.