CVE-2026-31248 Details
Description
Docling's METS GBS backend is vulnerable to XML Entity Expansion (XXE) attacks thru 2.61.0. The backend extracts and validates XML files from .tar.gz archives using etree.fromstring() without disabling entity resolution. An attacker can craft a malicious XML file with nested entity definitions (XML Bomb) and package it into a .tar.gz archive. When processed by Docling, the exponential expansion of entities during XML parsing leads to excessive resource consumption, resulting in a denial of service (DoS) condition on the system running the Docling parser.
A vulnerability allowing XML Entity Expansion (XXE) attacks has been identified in Docling's METS GBS backend, affecting versions through 2.61.0. The issue arises because the backend processes and validates XML files from .tar.gz archives using etree.fromstring() without disabling entity resolution. This oversight allows an attacker to create a malicious XML file with nested entity definitions, packaged within a .tar.gz archive. When Docling processes this archive, the entities expand exponentially during parsing, leading to excessive resource consumption and causing a denial-of-service (DoS) condition on the system running the Docling parser.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 11, 2026CISA-ADP
Assessed May 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/docling-project/docling | [email protected] | Source CodeVendor |
| https://www.notion.so/CVE-2026-31248-35d1e1393188818585b2ce3b9ce24686 | [email protected] | Not Applicable |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-776 | Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Docling | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 8, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 12, 2026 | CVE Modified | CISA-ADP |
| May 11, 2026 | New CVE Received | [email protected] |
Volerion