CVE-2026-40260 PUBLISHED

pypdf: Manipulated XMP metadata entity declarations can exhaust RAM

Assigner: GitHub_M
Reserved: 10.04.2026 Published: 16.04.2026 Updated: 16.04.2026

pypdf is a free and open-source pure-python PDF library. In versions prior to 6.10.0, manipulated XMP metadata entity declarations can exhaust RAM. An attacker who exploits this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the XMP metadata. This issue has been fixed in version 6.10.0.

Metrics

CVSS Vector: 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
CVSS Score: 6.9

Product Status

Vendor py-pdf
Product pypdf
Versions
  • Version < 6.10.0 is affected

References

Problem Types

  • CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') CWE