Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 94%

CVE-2026-40260: CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') in py-pdf pypdf

0
Medium
VulnerabilityCVE-2026-40260cvecve-2026-40260cwe-776
Published: Thu Apr 16 2026 (04/16/2026, 23:18:26 UTC)
Source: CVE Database V5
Vendor/Project: py-pdf
Product: pypdf

Description

CVE-2026-40260 is a medium severity vulnerability in the py-pdf pypdf library versions prior to 6. 10. 0. It involves improper restriction of recursive entity references in XML DTDs, specifically in XMP metadata parsing. An attacker can craft a PDF with manipulated XMP metadata entity declarations that cause excessive memory consumption, potentially exhausting system RAM. This vulnerability has been fixed in pypdf version 6. 10. 0.

CVSS v4.0

Score 6.9medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/24/2026, 16:15:26 UTC

Technical Analysis

The vulnerability CVE-2026-40260 in py-pdf's pypdf library (versions before 6.10.0) is due to improper restriction of recursive XML entity references (CWE-776) in XMP metadata. When parsing such crafted XMP metadata, the library can be forced to consume large amounts of memory, leading to exhaustion of RAM. This issue is addressed by the fix introduced in version 6.10.0 of pypdf.

Potential Impact

Exploitation of this vulnerability allows an attacker to cause high memory usage on systems parsing malicious PDFs with crafted XMP metadata. This can lead to denial of service conditions due to resource exhaustion. There is no indication of code execution or data corruption from the provided data.

Mitigation Recommendations

This vulnerability is fixed in pypdf version 6.10.0. Users should upgrade to version 6.10.0 or later to remediate this issue. Since no official patch link or advisory is provided, users should verify upgrade availability from the official py-pdf project sources. No additional mitigation steps are indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-10T17:31:45.787Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69e1716682d89c981fde6ff3

Added to database: 4/16/2026, 11:31:50 PM

Last enriched: 4/24/2026, 4:15:26 PM

Last updated: 5/31/2026, 1:53:42 PM

Views: 97

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses