VDB
Sign up
HIGH7.5

PYSEC-2026-240

Quick fix

PYSEC-2026-240 — docling: upgrade to the fixed version with the command below.

pip install --upgrade 'docling>=2.74.0'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/docling
Introduced in: 2.13.0Fixed in: 2.74.0
Fixpip install --upgrade 'docling>=2.74.0'

References