pypdf is a free and open-source pure-python PDF library.
CVE-2026-22691
Impact An attacker who exploits this vulnerability can craft a PDF which leads to possibly long runtimes for invalid startxref entries. When rebuilding the cross-reference table, PDF files with lots of whitespace characters become problematic. Only the non-strict reading mode is affected. Patches This has been fixed in [pypdf==6.6.0](https://github.com/py-pdf/pypdf/releases/tag/6.6.0). Workarounds python from pypdf import PdfReader, PdfWriter Instead of reader = PdfReader("file.pdf") use the strict mode: reader = PdfReader("file.pdf", strict=True) Instead of writer = PdfWriter(clonefrom="file.pdf") use an explicit strict reader: writer = PdfWriter(clonefrom=PdfReader("file.pdf", strict=True)) Resources This issue has been fixed in #3594.
Assessment
- CVSS
- 2.7 (v4.0)
- Severity
- Low
- EPSS
- 0.43% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 9 January 2026
- Last updated
- 2 November 2026
- Weakness
- CWE-1333, CWE-400
- Assigner
- security-advisories@github.com
CVSS vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U
At the source
References
- https://github.com/py-pdf/pypdf/commit/294165726b646bb7799be1cc787f593f2fdbcf45
- https://github.com/py-pdf/pypdf/pull/3594
- https://github.com/py-pdf/pypdf/releases/tag/6.6.0
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-4f6g-68pf-7vhv
- https://nvd.nist.gov/vuln/detail/CVE-2026-22691
- https://github.com/advisories/GHSA-4f6g-68pf-7vhv
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-22691