CVE-2026-31247 Docling's JATS XML backend is vulnerable to XML Entity Expansion (XXE) attacks
An attacker can cause a denial of service by submitting a malicious XML file that triggers excessive resource consumption in the Docling parser.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-31247?
CVE-2026-31247 is a high-severity denial of service vulnerability in n/a, published on 11 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Docling's JATS XML backend is vulnerable to XML Entity Expansion (XXE) attacks thru 2.61.0. The backend uses etree.parse() to parse XML files without disabling entity resolution. An attacker can craft a malicious XML file containing a nested entity expansion payload (XML Bomb). When processed by Docling, the exponential expansion of entities leads to excessive resource consumption, resulting in a denial of service (DoS) condition on the system running the Docling parser.
Weakness: CWE-400
Which versions are affected by CVE-2026-31247?
3 open source packages ship an affected version, including docling.
| Package | Affected | Fixed in |
|---|---|---|
docling PyPI | All versions to 2.61.0 | None |
docling PyPI | All versions to 2.61.0 | None |
docling PyPI | All versions to 2.61.0 | None |
How do I fix CVE-2026-31247?
No fix has been published for CVE-2026-31247 yet. Limit exposure of the affected software until one is available.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-31247 being exploited?
There is no known exploitation of CVE-2026-31247 in the wild and no public exploit code.
Sources
Also known as GHSA-cr42-rg2m-mq4q, PYSEC-2026-2455.