CVE-2026-40260: pypdf is a free and open-source pure-python PDF library
CVE-2026-40260 is a medium-severity flaw (CVSS 5.3) affecting pypdf. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.3 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 64%) |
| CISA exploited list | No |
| Weakness | CWE-776 |
| Published | 2026-04-17 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40260?
pypdf: upgrade to 6.10.0. Exact commands for each OS are on this page.
Is CVE-2026-40260 being exploited?
CVE-2026-40260 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40260 affect?
CVE-2026-40260 affects pypdf. Severity is medium (CVSS 5.3). 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 usag
How urgent is CVE-2026-40260?
Priority 33/100. Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2026-49461 MEDIUM 5.5 UPGRADE pypdf is a free and open-source pure-python PDF library
- CVE-2026-54530 MEDIUM 5.5 UPGRADE pypdf is a free and open-source pure-python PDF library
- CVE-2026-54531 MEDIUM 5.5 UPGRADE pypdf is a free and open-source pure-python PDF library
- CVE-2026-54651 MEDIUM 5.5 UPGRADE pypdf is a free and open-source pure-python PDF library
- CVE-2026-49460 LOW 3.3 UPGRADE pypdf is a free and open-source pure-python PDF library