ADVISORIES

Vulnerability

CVE-2026-40260

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.

12 advisories report this vulnerability, across 6 ecosystems.

Advisories in PyPI

  • GHSA-3crg-w4f6-42mx

    pypdf: Manipulated XMP metadata entity declarations can exhaust RAM

    Moderate CVE-2026-40260 PyPI Updated 10 September 2026
  • PYSEC-2026-3006

    pypdf: Manipulated XMP metadata entity declarations can exhaust RAM

    CVE-2026-40260 PyPI Updated 13 July 2026

References