CVE-2026-40260

Updated on 10 Apr 2026

Severity

6.9 Medium severity

Details

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

Overview

About vulnerability

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).

Details

Affected product:
pypdf
Affected packages:
pypdf @ 5.9.0