CVE-2026-44020: Docling: Unsafe XML Entity Expansion in USPTO Patent Backend
Impact The USPTO patent XML parser used the standard xml.sax.parseString() without protection against XML External Entity (XXE) attacks. An attacker could craft malicious USPTO patent XML files with external entity references that could: - Read arbitrary files from the server filesystem - Perform Server-Side Request Forgery (SSRF) attacks - Cause denial of service through entity expansion (Billion Laughs attack) The…
Published Jun 3, 2026 · Updated Aug 28, 2026
Affected packages
docling
- Ecosystem
- PyPI
- Affected
- >= 2.13.0, < 2.74.0
- Fixed in
- 2.74.0
- Check
pip show docling
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
The USPTO patent XML parser used the standard xml.sax.parseString() without protection against XML External Entity (XXE) attacks. An attacker could craft malicious USPTO patent XML files with external entity references that could:
- Read arbitrary files from the server filesystem
- Perform Server-Side Request Forgery (SSRF) attacks
- Cause denial of service through entity expansion (Billion Laughs attack)
The vulnerability affects three USPTO patent format parsers: ICE (v4.x), Grant v2.5, and Application v1.x.
Patches
Fixed in version 2.74.0. The parser now uses defusedxml.sax.make_parser() with secure configuration that blocks external entity resolution (feature_external_ges=False, feature_external_pes=False) while allowing DTD declarations required by USPTO files. This prevents XXE attacks while maintaining compatibility with the USPTO XML format.
Workarounds
Avoid processing USPTO patent XML files from untrusted sources. Implement resource limits (memory, CPU time) when processing patent documents.
References
- Fix release: v2.74.0
References
- https://github.com/docling-project/docling/security/advisories/GHSA-m88r-rg27-5xfg
- https://github.com/docling-project/docling/releases/tag/v2.74.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-44020
- https://access.redhat.com/security/cve/CVE-2026-44020
- https://bugzilla.redhat.com/show_bug.cgi?id=2492456
- https://github.com/pypa/advisory-database/tree/main/vulns/docling/PYSEC-2026-240.yaml
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44020.json
- https://access.redhat.com/errata/RHSA-2026:60520
- https://github.com/advisories/GHSA-m88r-rg27-5xfg
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
