CVE-2026-40260
mediumpriority · track · 21EPSS 0.004 · 36 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 2.7–6.9
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (12)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-3crg-w4f6-42mxpypdf: Manipulated XMP metadata entity declarations can exhaust RAM2026-04-10ghsa · osvUS
### Impact An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the XMP metadata. ### Patches This has been fixed in [pypdf==6.10.0](https://github.com/py-pdf/pypdf/releases/tag/6.10.0). ### Workarounds If you cannot upgrade yet, consider applying the changes from PR [#3724](https://github.com/py-pdf/pypdf/pull/3724).
- PYSEC-2026-3006pypdf: Manipulated XMP metadata entity declarations can exhaust RAM2026-07-13vendor · osvUS
### Impact An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the XMP metadata. ### Patches This has been fixed in [pypdf==6.10.0](https://github.com/py-pdf/pypdf/releases/tag/6.10.0). ### Workarounds If you cannot upgrade yet, consider applying the changes from PR [#3724](https://github.com/py-pdf/pypdf/pull/3724).
also known as (7)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://github.com/py-pdf/pypdf/releasesPatchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2026-40260cnnvd
- https://github.com/py-pdf/pypdf/commit/b15a374e5ca648d4878e57c3b2c0551e7f8cc7f8enisa_euvd
- https://github.com/py-pdf/pypdf/pull/3724enisa_euvd
- https://github.com/py-pdf/pypdf/releases/tag/6.10.0enisa_euvd
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-3crg-w4f6-42mxenisa_euvd
- https://github.com/py-pdf/pypdf/commit/b15a374e5ca648d4878e57c3b2c0551e7f8cc7f8Patchnvd
- https://github.com/py-pdf/pypdf/pull/3724Issue TrackingPatchnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan