CVE-2026-40260: pypdf: Manipulated XMP metadata entity declarations can exhaust RAM
(updated )
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 →