// Security Advisory Triage
pypdf infinite loop on malformed PDF fixed in 6.21.4
GitHub advisories — pip · published 2026-11-01 06:07 UTC
WHAT CHANGEDGitHub published GHSA-5849-834g-hvw5 (CVE-2026-119203) on 30 October 2026, rating pypdf's infinite loop vulnerability as high severity. The flaw triggers when pypdf hits EOF in a standard xref table during trailer search. First patched version is 6.21.4.
WHY IT MATTERSA malformed PDF causes an infinite loop, making the process unresponsive. Any service that parses untrusted PDFs with pypdf becomes a denial-of-service target.
WHAT TO DOUpdate pypdf to 6.21.4 or later. Check requirements files and deployed environments for pypdf < 6.21.4.
Model-reported confidence 95% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-5849-834g-hvw5 +summary: pypdf has possible infinite loop when hitting EOF in standard xref table during trailer search +severity: high +published_at: 2026-10-30T23:13:16Z +cve_id: CVE-2026-119203 +vulnerabilities[].package.name: pypdf +vulnerabilities[].first_patched_version: 6.21.4
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | High-severity DoS in pypdf, a common PDF parsing library. Security leads patch this week. |
| signals | new advisory published · high severity rating · pypdf is a pip package in normal dependency trees · first patched version specified (6.21.4) · known DoS vector (infinite loop on malformed PDF) |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |