Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pypdf
  4. ›
  5. CVE-2026-40260

CVE-2026-40260: pypdf: Manipulated XMP metadata entity declarations can exhaust RAM

April 10, 2026 (updated April 24, 2026)

An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the XMP metadata.

References

  • github.com/advisories/GHSA-3crg-w4f6-42mx
  • github.com/py-pdf/pypdf
  • github.com/py-pdf/pypdf/commit/b15a374e5ca648d4878e57c3b2c0551e7f8cc7f8
  • github.com/py-pdf/pypdf/pull/3724
  • github.com/py-pdf/pypdf/releases/tag/6.10.0
  • github.com/py-pdf/pypdf/security/advisories/GHSA-3crg-w4f6-42mx
  • nvd.nist.gov/vuln/detail/CVE-2026-40260

Code Behaviors & Features

Detect and mitigate CVE-2026-40260 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.10.0

Fixed versions

  • 6.10.0

Solution

Upgrade to version 6.10.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

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

Source file

pypi/pypdf/CVE-2026-40260.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:02 +0000.