CVE-2026-31248
HIGH 7.5CVSS 3.1Docling's METS GBS backend is vulnerable to XML Entity Expansion (XXE) attacks
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.
- Published
- 11 May 2026
- Last modified
- 8 Nov 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-776
- Also known as
- GHSA-9f4q-q82q-4359PYSEC-2026-2454
- Sources
- NVDJSONOSV GHSA-9f4q-q82q-4359JSONOSV PYSEC-2026-2454JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | docling | <= 2.61.0 |
References
- https://github.com/docling-project/docling · PACKAGE
- https://www.notion.so/CVE-2026-31248-35d1e1393188818585b2ce3b9ce24686 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-31248 · ADVISORY
- https://pypi.org/project/docling · PACKAGE
- https://github.com/advisories/GHSA-9f4q-q82q-4359 · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 11 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 May 2026)