CVE-2026-59937: pypdf Possible Long Runtimes For Repeated Vulnerability
MODERATECVE-2026-59937 is a MODERATE possible long runtimes for repeated vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting pypdf libraries in the PyPI ecosystem. The issue involves possible long runtimes for repeated malformed cross-reference entries. Remediation is available by upgrading affected packages to version 6.14.0.
CVE-2026-59937 at a Glance
How to Fix CVE-2026-59937
To remediate this vulnerability, upgrade all affected pypdf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install pypdf>=6.14.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show pypdf
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-59937, inspect your installed packages using pip:
pip show pypdf
Analyze the terminal output to locate any version of pypdf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.14.0), your application is affected.
Note: The pip show pypdf command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In pypdf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-59937 Affected pypdf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pypdf
|
PyPI |
< 6.14.0
|
6.14.0
|
References
Frequently Asked Questions
What is CVE-2026-59937?
Which pypdf versions are affected?
What version fixes CVE-2026-59937?
Is pypdf affected?
What CWE is associated with CVE-2026-59937?
How can I check PyPI dependencies for CVE-2026-59937?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-55h5-xmcq-c37v",
"modified" : "2026-07-23T15:07:33Z",
"published" : "2026-07-23T15:07:33Z",
"aliases" : [ "CVE-2026-59937" ],
"summary" : "pypdf: Possible long runtimes for repeated malformed cross-reference entries ",
"details" : "### Impact\n\nAn attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires cross-reference streams with repeated malformed cross-reference streams.\n\n### Patches\n\nThis has been fixed in [pypdf==6.14.0](https://github.com/py-pdf/pypdf/releases/tag/6.14.0).\n\n### Workarounds\n\nIf you cannot upgrade yet, consider applying the changes from PR [#3887](https://github.com/py-pdf/pypdf/pull/3887).",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "pypdf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.14.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/py-pdf/pypdf/security/advisories/GHSA-55h5-xmcq-c37v"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-59937"
}, {
"type" : "WEB",
"url" : "https://github.com/py-pdf/pypdf/pull/3887"
}, {
"type" : "WEB",
"url" : "https://github.com/py-pdf/pypdf/commit/b5fc5aa714f4b696fb9b1deaa35a9e4a4eb50dae"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/py-pdf/pypdf"
}, {
"type" : "WEB",
"url" : "https://github.com/py-pdf/pypdf/releases/tag/6.14.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-23T15:07:33Z",
"nvd_published_at" : "2026-07-08T18:16:34Z"
}
}