py-pdf pypdf up to 6.9.x XMP Metadata xml entity expansion
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.1 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as problematic, was found in py-pdf pypdf up to 6.9.x. The affected element is an unknown function of the component XMP Metadata Handler. Such manipulation leads to xml entity expansion. This vulnerability is listed as CVE-2026-40260. The attack may be performed from remote. There is no available exploit. You should upgrade the affected component.
Details
A vulnerability, which was classified as problematic, has been found in py-pdf pypdf up to 6.9.x. Affected by this issue is some unknown functionality of the component XMP Metadata Handler. The manipulation with an unknown input leads to a xml entity expansion vulnerability. Using CWE to declare the problem leads to CWE-776. The product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities. Impacted is availability. CVE summarizes:
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.
The advisory is shared for download at github.com. This vulnerability is handled as CVE-2026-40260 since 04/10/2026. The exploitation is known to be easy. The attack may be launched remotely. No form of authentication is required for exploitation. Successful exploitation requires user interaction by the victim. There are neither technical details nor an exploit publicly available.
The vulnerability scanner Nessus provides a plugin with the ID 307345 (Linux Distros Unpatched Vulnerability : CVE-2026-40260), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 6.10.0 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch b15a374e5ca648d4878e57c3b2c0551e7f8cc7f8 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the vulnerability database at Tenable (307345). VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Vendor
Name
Version
License
Website
- Product: https://github.com/py-pdf/pypdf/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3
VulDB Meta Base Score: 4.3VulDB Meta Temp Score: 4.1
VulDB Base Score: 4.3
VulDB Temp Score: 4.1
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Xml entity expansionCWE: CWE-776
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 307345
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2026-40260
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: pypdf 6.10.0
Patch: b15a374e5ca648d4878e57c3b2c0551e7f8cc7f8
Timeline
04/10/2026 CVE reserved04/17/2026 Advisory disclosed
04/17/2026 VulDB entry created
04/18/2026 VulDB entry last update
Sources
Product: github.comAdvisory: GHSA-3crg-w4f6-42mx
Status: Confirmed
CVE: CVE-2026-40260 (🔒)
GCVE (CVE): GCVE-0-2026-40260
GCVE (VulDB): GCVE-100-357968
Entry
Created: 04/17/2026 06:18Updated: 04/18/2026 05:34
Changes: 04/17/2026 06:18 (38), 04/17/2026 06:19 (33), 04/18/2026 05:34 (2)
Complete: 🔍
Cache ID: 216::103
VulDB is the best source for vulnerability data and more expert information about this specific topic.
No comments yet. Languages: en.
Please log in to comment.