medium

CVE-2026-54651

PyPI · pypdf

Summary

pypdf: Possible infinite loop when processing threads/articles in writer

Severity
medium
EPSS
0.2% (p5)
CWE
CWE-835
Also known as
GHSA-g9xf-7f8q-9mcj
Published
2026-07-09
Updated
2026-07-09

Advisory details

Impact

An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires merging a file with threads/articles into a writer.

Patches

This has been fixed in pypdf==6.13.1.

Workarounds

If users cannot upgrade yet, consider applying the changes from PR #3839.

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.