Memory Exhaustion Due to XMP Metadata in pypdf by PyPDF
CVE-2026-40260
6.9MEDIUM
What is CVE-2026-40260?
The pypdf library, a pure-Python PDF handling tool, is susceptible to a memory exhaustion issue due to manipulated XMP metadata. Attackers can craft specially designed PDF files that exploit this vulnerability, leading to excessive memory consumption during parsing. This behavior can result in degraded performance or denial of service. The issue has been resolved in version 6.10.0, emphasizing the importance of updating to ensure security.
Affected Version(s)
pypdf < 6.10.0
