Incorrect Behavior Order Affecting docling-slim package, versions [2.92.0, 2.131.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.12% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-DOCLINGSLIM-20537231
  • published6 Oct 2026
  • disclosed5 Oct 2026
  • creditNguyen Van Hiep

Introduced: 5 Oct 2026

NewCVE-2026-105745  (opens in a new tab)
CWE-696  (opens in a new tab)

How to fix?

Upgrade docling-slim to version 2.131.0 or higher.

Overview

docling-slim is a Modular version of the Docling package: SDK and CLI for parsing PDF, DOCX, HTML, and more, to a unified document representation for powering downstream workflows such as gen AI applications.

Affected versions of this package are vulnerable to Incorrect Behavior Order via load_from_plugins() in docling/models/factories/base_factory.py, which previously called pluggy's load_setuptools_entrypoints() to import all modules registered under the docling entry-point group before checking whether they belonged to the docling namespace. An attacker who can register a malicious third-party package under the docling entry-point group on the target system can cause that package's module to be imported and its code executed, even when allow_external_plugins=False is configured. The namespace check ran after import, meaning the guard was ineffective at preventing code execution from untrusted plugins.

CVSS Base Scores

version 4.0
version 3.1