What’s Vulnerable › Vulnerabilities
CVE-2026-113786: pypdf: Unvalidated JPEG image data loading
- Severity: low (CVSS 2.3 v4.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-21 · updated 2026-10-27
- Weakness: CWE-20
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.1, an attacker can craft a PDF containing image data labeled with the /DCTDecode filter that causes Pillow to select and invoke an unintended image parser when the image is loaded. Environments without the optional Pillow dependency are not affected. This issue is fixed in version 6.21.1.
Affected products
- py-pdf pypdf: before 6.21.1
References
- https://github.com/py-pdf/pypdf/commit/512d8eb94eb04be1d1c90504e6da2dcef8679e07
- https://github.com/py-pdf/pypdf/pull/4222
- https://github.com/py-pdf/pypdf/releases/tag/6.21.1
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-5hx5-vpf9-5wcv
Get alerted when CVE-2026-113786 or the next vulnerability affects your stack