# CVE-2026-31247: Docling's JATS XML backend is vulnerable to XML Entity Expansion (XXE) attacks

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-05-11T00:00:00.000Z
- Modified: 2026-11-08T16:10:00.183Z
- Also known as: GHSA-cr42-rg2m-mq4q, PYSEC-2026-2455
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- docling (PyPI): up to 2.61.0

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/docling-project/docling> (package)
- <https://www.notion.so/CVE-2026-31247-35d1e1393188818fa654c116c6a470bb> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31247> (advisory)
- <https://pypi.org/project/docling> (package)
- <https://github.com/advisories/GHSA-cr42-rg2m-mq4q> (advisory)

## Sources

- CVE List: [CVE-2026-31247](https://www.cve.org/CVERecord?id=CVE-2026-31247), CVE Terms of Use, modified 2026-05-12
- GitHub Advisory Database: [GHSA-cr42-rg2m-mq4q](https://github.com/advisories/GHSA-cr42-rg2m-mq4q), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-31247](https://nvd.nist.gov/vuln/detail/CVE-2026-31247), Public domain, modified 2026-11-08
- PyPA Advisory Database: [PYSEC-2026-2455](https://osv.dev/vulnerability/PYSEC-2026-2455), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-31247 · Whole record: https://cve.day/CVE-2026-31247.json · Rebuilt by cve.day 2026-11-25T22:59:21.193Z
