CVE-2026-44018: Docling: Unsafe Archive Extraction and XML Parsing in METS-GBS Backend
Impact The METS-GBS backend's XML parsing and the input document format detection lacked security controls, enabling: - XML External Entity (XXE) attacks to read local files or cause denial of service - Decompression bombs (zip bombs) to exhaust memory and disk space - Unbounded archive extraction consuming system resources An attacker could craft malicious METS-GBS archives that, when processed, could read…
Published Jun 3, 2026 · Updated Jul 21, 2026
Affected packages
docling
- Ecosystem
- PyPI
- Affected
- >= 2.45.0, < 2.91.0
- Fixed in
- 2.91.0
- Check
pip show docling
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
The METS-GBS backend's XML parsing and the input document format detection lacked security controls, enabling:
- XML External Entity (XXE) attacks to read local files or cause denial of service
- Decompression bombs (zip bombs) to exhaust memory and disk space
- Unbounded archive extraction consuming system resources
An attacker could craft malicious METS-GBS archives that, when processed, could read sensitive files, exhaust system resources, or cause application crashes.
Patches
Fixed in version 2.91.0. The fix implements:
- Secure XML parsing with
resolve_entities=False,load_dtd=False, andno_network=True - Configurable limits: 300 MB total extraction size, 10 MB per file, 1000 member count
- Cumulative size tracking across all extractions
- Early termination when limits are exceeded
- Secure format detection of METS-GBS tar archives with
_detect_mets_gbs()method: maximum file size (10 MB per file), maximum member count (1000 members), and exception handling to gracefully fail when limits are exceeded
Workarounds
Avoid processing METS-GBS archives from untrusted sources. If necessary, pre-validate archives in an isolated environment with resource limits.
References
- Fix release: v2.91.0
Credited to brodmart.
References
- https://github.com/docling-project/docling/security/advisories/GHSA-r3xg-rg9j-67fv
- https://github.com/docling-project/docling/releases/tag/v2.91.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-44018
- https://github.com/pypa/advisory-database/tree/main/vulns/docling/PYSEC-2026-2144.yaml
- https://github.com/advisories/GHSA-r3xg-rg9j-67fv
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-105742
Docling: Configured HTTP headers sent to every remote image host named by a document
low3.7Oct 7, 2026CVE-2026-105743
Docling has SSRF guard bypass in remote resource fetching (DNS rebinding / multi-record resolution; no IP validation in HTML render mode)
medium4.0Oct 7, 2026CVE-2026-105744
Docling has arbitrary file read/write (and command execution when shell-escape is enabled) when rendering untrusted TikZ with the opt-in Tectonic engine
high7.5Oct 7, 2026CVE-2026-105745
Docling imports plugin entry points before the allow_external_plugins check
medium6.7Oct 7, 2026CVE-2026-105748
Docling: Crafted DoclingDocument JSON embeds local image files into converted output
medium4.3Oct 7, 2026CVE-2026-105749
Docling: Unbounded table rowspan/colspan in HTML, JATS, ODS and BoxNote backends causes CPU/memory exhaustion
medium6.5Oct 7, 2026
