Docling: Unsafe Archive Extraction and XML Parsing in METS-GBS Backend
Moderate severity
GitHub Reviewed
Published
Jun 2, 2026
in
docling-project/docling
•
Updated Jul 21, 2026
Description
Published to the GitHub Advisory Database
Jun 3, 2026
Reviewed
Jun 3, 2026
Published by the National Vulnerability Database
Jun 26, 2026
Last updated
Jul 21, 2026
Impact
The METS-GBS backend's XML parsing and the input document format detection lacked security controls, enabling:
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:
resolve_entities=False,load_dtd=False, andno_network=True_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 exceededWorkarounds
Avoid processing METS-GBS archives from untrusted sources. If necessary, pre-validate archives in an isolated environment with resource limits.
References
References