7.5high
Docling: Unsafe XML Entity Expansion in USPTO Patent Backend
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.33% (higher than 28% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-m88r-rg27-5xfgPYSEC-2026-240
Description
Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem. From 2.13.0 until 2.74.0, 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, or 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. This vulnerability is fixed in 2.74.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| docling-project docling | >= 2.13.0, < 2.74.0 | CVE List |
| rhoai/odh-autorag-rhel9 | Not specified Not affected: from 1786612637 before * | CVE List |
| docling (PyPI) | from 2.13.0 before 2.74.0 | GitHub Advisory Database, PyPA Advisory Database |
| docling docling | from 2.13.0 before 2.74.0 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| redhat-SADP | 9.4critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| PyPA Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem. From 2.13.0 until 2.74.0, 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, or 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. This vulnerability is fixed in 2.74.0.
GitHub Advisory Database
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
NVD (es)
Docling simplifica el procesamiento de documentos al analizar diversos formatos y al proporcionar integraciones con el ecosistema de IA generativa. Desde la versión 2.13.0 hasta la 2.74.0, el analizador XML de patentes de la USPTO utilizó la función estándar xml.sax.parseString() sin protección contra ataques de entidad externa XML (XXE). Un atacante podría crear archivos XML de patentes de la USPTO maliciosos con referencias a entidades externas que podrían leer archivos arbitrarios del sistema de archivos del servidor, realizar ataques de falsificación de petición del lado del servidor (SSRF) o causar denegación de servicio a través de la expansión de entidades (ataque Billion Laughs). La vulnerabilidad afecta a tres analizadores de formato de patentes de la USPTO: ICE (v4.x), Grant v2.5 y Application v1.x. Esta vulnerabilidad está corregida en la versión 2.74.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-44020 changed 2026-08-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m88r-rg27-5xfg changed 2026-08-28 | CC-BY-4.0 |
| NVD | CVE-2026-44020 changed 2026-10-25 | Public domain |
| PyPA Advisory Database | PYSEC-2026-240 changed 2026-06-27 | CC-BY-4.0 |