XML Entity Expansion in PyPDF - CVE-2026-40260
Published: April 10, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause excessive memory consumption.
The vulnerability exists due to improper restriction of recursive entity references in DTDs in the XMP metadata parser when parsing XMP metadata from a PDF file. A remote attacker can supply a specially crafted PDF to cause excessive memory consumption.
Exploitation requires the application to parse the XMP metadata.
Affected software
IBM Watson Discovery for IBM Cloud Pak for Data
How to mitigate CVE-2026-40260
IBM Watson Discovery for IBM Cloud Pak for Data - update to 5.4.2