Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify service ingesting USPTO XML
-
DeliveryCraft malicious patent with external entities
-
ExploitSubmit file via ingestion endpoint
-
ExecutionDocling invokes xml.sax.parseString
-
PersistParser resolves external entity or expands recursively
-
ImpactExfiltrate file contents, SSRF internal services, or exhaust resources
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration XML entity recursion limits
|
| Exploitation Conditions | Exploitation requires that the target application invoke Docling's USPTO patent backend (ICE v4.x, Grant v2.5, or Application v1.x parsers) on attacker-supplied XML on docling versions >= 2.13.0 and < 2.74.0; no authentication, user interaction, or special configuration is needed beyond the application accepting USPTO-format XML input. Exploitation is limited where Docling is only fed trusted internal patent corpora, where the parsing worker is sandboxed without outbound network access (neutralizing SSRF) and without sensitive file readability (neutralizing file disclosure), or where deployments use Docling exclusively for non-USPTO formats so the vulnerable code path is never reached. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, score 7.5) reflects only the denial-of-service impact via entity expansion and is reachable network-side with no privileges or interaction; however, the description and CWE-776 indicate that confidentiality (arbitrary file read) and integrity-adjacent SSRF impacts are also achievable, so the scored CVSS understates real-world impact for deployments that expose Docling to untrusted patent XML. There is no EPSS, KEV, or POC signal in the provided data, so this should be treated as no public exploit identified at time of analysis rather than active exploitation. Realistic risk is concentrated in services that automatically ingest USPTO-format XML from external submitters (patent processing pipelines, document-ingestion SaaS, RAG ingestion of third-party patents); installations that only process trusted internal corpora face materially lower risk. Note: the C:N/I:N rating in the CVSS vector appears inconsistent with the advisory's explicit file-read and SSRF claims - defenders should treat the impact as higher than the headline score suggests. |
| Exploit ScenarioDerived | An attacker submits a malicious USPTO-formatted XML patent file to any service that uses a vulnerable docling release to parse incoming patent documents (for example, an ingestion endpoint of a patent-analytics or RAG pipeline). The crafted file contains a DOCTYPE with external entities pointing at file:///etc/passwd or an internal URL, or a deeply nested entity-expansion payload, causing the worker to read local files, issue attacker-directed HTTP requests to internal services, or exhaust memory and CPU. No exploit code is published, but the technique is well-known and trivially reproducible from standard XXE primers. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 03, 2026
XML External Entity (XXE) injection in Docling's USPTO patent backend allows remote attackers to trigger denial of service, read arbitrary server files, or perform SSRF by submitting crafted patent XML to vulnerable versions (>=2.13.0, <2.74.0). The flaw stems from use of Python's unsafe xml.sax.parseString() across the ICE v4.x, Grant v2.5, and Application v1.x parsers. No public exploit identified at time of analysis, but the fix is publicly documented in the vendor advisory and a working patched release is available.
RemediationAI
Vendor-released patch: upgrade docling to 2.74.0 or later (pip install --upgrade 'docling>=2.74.0'); the fix replaces xml.sax with defusedxml.sax and disables external general and parameter entities while preserving DTD support needed by USPTO files, as documented at https://github.com/docling-project/docling/releases/tag/v2.74.0 and commit 576bada. If immediate upgrade is not possible, stop processing USPTO patent XML from untrusted sources (the vendor's stated workaround) and route any required ingestion through a sandboxed worker with no outbound network egress and read-only filesystem access to neutralize SSRF and file-read impact; additionally, apply per-job memory and CPU limits (for example via cgroups, ulimit, or container resource limits) to bound the Billion Laughs DoS, accepting that legitimate large patents may be rejected. Network-layer egress filtering blocking the worker from reaching internal metadata endpoints (169.254.169.254) and internal RFC1918 ranges further reduces SSRF blast radius until the upgrade lands.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Docling is a Python document-processing library (pip/docling) that ingests multiple document formats, including USPTO patent XML. The vulnerable code path calls the standard library's xml.sax.parseString() on attacker-controlled XML without disabling external entity resolution, which maps to CWE-776 (Improper Restriction of Recursive Entity References, 'Billion Laughs'). Because xml.sax in CPython honors external general entities and parameter entities by default, a malicious DOCTYPE/ENTITY block can reference local files (file://), remote URLs (http://), or recursively expanded entities, yielding the classic XXE triad of file disclosure, SSRF, and resource-exhaustion DoS. The fix replaces the parser with defusedxml.sax.make_parser() and sets feature_external_ges=False and feature_external_pes=False while still allowing DTD declarations, which the USPTO format legitimately requires.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (https://github.com/docling-project/docling).
CVSS VectorVendor: https://github.com/docling-project/docling
DescriptionCVE.org
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
Executive ViewAI
The Docling patent processing backend has a high-severity XML injection vulnerability affecting versions 2.13.0-2.73.x, enabling remote attackers to extract confidential files, disrupt service availability, or pivot into internal systems through crafted patent XML payloads. Organizations using Docling for patent data workflows face immediate risk of data exfiltration and operational disruption without urgent remediation.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
XML External Entity (XXE) attacks exploit XML parsers that process Document Type Definitions (DTDs) without proper restrictions.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-39004
GHSA-m88r-rg27-5xfg
NVD
CVE.org
EPSS
Exploit-DB