# CVE-2026-31248: Docling's METS GBS 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.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-05-11T00:00:00.000Z
- Modified: 2026-11-08T16:10:00.183Z
- Also known as: GHSA-9f4q-q82q-4359, PYSEC-2026-2454
- Weaknesses: CWE-776
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

Docling's METS GBS backend is vulnerable to XML Entity Expansion (XXE) attacks thru 2.61.0. The backend extracts and validates XML files from .tar.gz archives using etree.fromstring() without disabling entity resolution. An attacker can craft a malicious XML file with nested entity definitions (XML Bomb) and package it into a .tar.gz archive. When processed by Docling, the exponential expansion of entities during XML parsing 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-31248-35d1e1393188818585b2ce3b9ce24686> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31248> (advisory)
- <https://pypi.org/project/docling> (package)
- <https://github.com/advisories/GHSA-9f4q-q82q-4359> (advisory)

## Sources

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

---

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