{"id":"CVE-2026-105745","aliases":["CVE-2026-105745","GHSA-9jxx-vjrv-h2rq","PYSEC-2026-4192","PYSEC-2026-4210"],"related":[],"kind":"vulnerability","state":"published","title":"Docling: Plugin entry points are imported before the allow_external_plugins check","summary":"Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem. From 2.27.0 until 2.131.0, Docling plugin factories in docling/models/factories/base_factory.py call load_setuptools_entrypoints() before applying the allow_external_plugins setting, so every module registered in the Docling entry-point group is imported even when external plugins are disabled. An installed third-party or compromised package can therefore execute import-time code when Docling starts, while the subsequent namespace filter misleadingly reports that the plugin was not loaded. This issue is fixed in 2.131.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Docling simplifies document processing by parsing diverse formats and providing integrations with the generative AI ecosystem. From 2.27.0 until 2.131.0, Docling plugin factories in docling/models/factories/base_factory.py call load_setuptools_entrypoints() before applying the allow_external_plugins setting, so every module registered in the Docling entry-point group is imported even when external plugins are disabled. An installed third-party or compromised package can therefore execute import-time code when Docling starts, while the subsequent namespace filter misleadingly reports that the plugin was not loaded. This issue is fixed in 2.131.0.","source":"cvelist"},{"lang":"en","text":"### Summary\n\n`allow_external_plugins=False` (the default, and the CLI default) is meant to restrict docling to its own model plugins. However, docling's plugin factories call pluggy's `load_setuptools_entrypoints()`, which imports every module registered under docling's plugin entry-point group. Only afterwards does docling filter out modules outside the `docling.` namespace. Import-time code in any installed third-party plugin therefore runs even though external plugins are disabled.\n\n### Details\n\nIn `docling/models/factories/base_factory.py`, `load_from_plugins()` loads all entry points first and applies the `allow_external_plugins` check only to the already-imported modules. The CLI creates these factories when it starts, so running `docling` imports every registered plugin module. A log message says the plugin \"will not be loaded\", although its module has already been imported.\n\n### Affected configurations\n\nEnvironments in which a package registering a docling plugin entry point is installed, for example an unvetted or compromised dependency, and which rely on `allow_external_plugins=False` to keep that code from running.\n\n### Impact\n\nExecution of a third-party plugin module's import-time code in the docling process, contrary to the documented behaviour of `allow_external_plugins=False`.\n\n### Patches\n\nFixed in docling 2.131.0 by [#4413](https://github.com/docling-project/docling/pull/4413). Plugin entry points are now filtered by module name before they are loaded, so with `allow_external_plugins=False` third-party plugin modules are no longer imported.\n\n### Workarounds\n\nUpgrade to 2.131.0. For older versions:\n\nOnly install trusted packages in environments that run docling. Check which packages register docling plugin entry points with `importlib.metadata.entry_points()`.","format":"markdown","source":"ghsa"}],"published":"2026-10-05T21:29:23.561Z","modified":"2026-10-15T14:55:41.958Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":6.7,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":6.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":6.7,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":6.7,"rating":"MEDIUM"}],"cwes":["CWE-696","CWE-829"],"affected":[{"ranges":[{"version":">= 2.27.0, < 2.131.0","status":"affected"}],"vendor":"docling-project","product":"docling","source":"cvelist"},{"ranges":[{"version":">= 2.27.0, < 2.131.0","status":"affected"}],"vendor":"docling-project","product":"docling-slim","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.27.0","status":"affected","fixed":"2.131.0"}],"ecosystem":"PyPI","package":"docling","purl":"pkg:pypi/docling","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.92.0","status":"affected","fixed":"2.131.0"}],"ecosystem":"PyPI","package":"docling-slim","purl":"pkg:pypi/docling-slim","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.27.0","fixed":"2.131.0"}],"vendor":"docling","product":"docling","cpe":"cpe:2.3:a:docling:docling:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.27.0","status":"affected","fixed":"2.131.0"}],"ecosystem":"PyPI","package":"docling","purl":"pkg:pypi/docling","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"2.92.0","status":"affected","fixed":"2.131.0"}],"ecosystem":"PyPI","package":"docling-slim","purl":"pkg:pypi/docling-slim","source":"pysec"}],"references":[{"url":"https://github.com/docling-project/docling/security/advisories/GHSA-9jxx-vjrv-h2rq","tags":["fix","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/docling-project/docling/pull/4413","tags":["fix","issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/docling-project/docling/commit/0f443b3786e98688a2da3b7c8f56fe5e46af876c","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/docling-project/docling/releases/tag/v2.131.0","tags":["advisory","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-105745","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/docling-project/docling","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/docling-slim","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-9jxx-vjrv-h2rq","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-06T14:35:59.694Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-105745","url":"https://www.cve.org/CVERecord?id=CVE-2026-105745","licence":"CVE Terms of Use","modified":"2026-10-06T14:48:57.716Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9jxx-vjrv-h2rq","url":"https://github.com/advisories/GHSA-9jxx-vjrv-h2rq","licence":"CC-BY-4.0","modified":"2026-10-15T14:55:41.958Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-105745","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-105745","licence":"Public domain","modified":"2026-10-07T19:18:20.837Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4192","url":"https://osv.dev/vulnerability/PYSEC-2026-4192","licence":"CC-BY-4.0","modified":"2026-10-15T14:55:41.958Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4210","url":"https://osv.dev/vulnerability/PYSEC-2026-4210","licence":"CC-BY-4.0","modified":"2026-10-15T14:55:41.958Z"}],"updatedAt":"2026-11-25T22:59:42.186Z","epss":{"score":0.00121,"percentile":0.02121,"date":"2026-12-01T12:00:22.000Z"}}