← Back to scan
File as GitHub Issue repo: docling-project/docling

Push this scan report to docling-project/docling

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

Missing import: `queue` used but not imported

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED107 [MINED107] Missing import: `array` used but not imported: The file uses `array.something(… docling/models/inference_engines/common…:389
CRIT MINED107 [MINED107] Missing import: `array` used but not imported: The file uses `array.something(… docling/models/inference_engines/common…:102
CRIT MINED107 [MINED107] Missing import: `queue` used but not imported: The file uses `queue.something(… docling/service_client/_scheduler.py:71
CRIT MINED107 [MINED107] Missing import: `string` used but not imported: The file uses `string.somethin… docling/utils/utils.py:42
CRIT MINED107 [MINED107] Missing import: `queue` used but not imported: The file uses `queue.something(… docling/backend/msexcel_backend.py:543
CRIT MINED107 [MINED107] Missing import: `html` used but not imported: The file uses `html.something(..… docling/backend/email_backend.py:74
CRIT MINED107 [MINED107] Missing import: `warnings` used but not imported: The file uses `warnings.some… scripts/check_max_lines.py:174
CRIT MINED107 [MINED107] Missing import: `stat` used but not imported: The file uses `stat.something(..… perfs/iterate_pdf_pages.py:284
CRIT MINED019 [MINED019] Ssti Jinja From String: jinja2.Environment().from_string(user_input) — full RC… docling/models/inference_engines/vlm/ml…:192
CRIT MINED116 [MINED116] Workflow uses `secrets.CODECOV_TOKEN` on a `pull_request` trigger: This workfl… .github/workflows/ci.yml:149
HIGH MINED108 [MINED108] `self.is_processable` used but never assigned in __init__: Method `prepare_ele… docs/examples/post_process_ocr_with_vlm…:274
HIGH MINED108 [MINED108] `self._get_pipeline_options_hash` used but never assigned in __init__: Method … docling/document_extractor.py:295
HIGH MINED108 [MINED108] `self._get_pipeline` used but never assigned in __init__: Method `_execute_ext… docling/document_extractor.py:272
HIGH MINED108 [MINED108] `self._execute_extraction_pipeline` used but never assigned in __init__: Metho… docling/document_extractor.py:243
HIGH MINED108 [MINED108] `self._process_document_extraction` used but never assigned in __init__: Metho… docling/document_extractor.py:204
HIGH MINED108 [MINED108] `self._extract` used but never assigned in __init__: Method `extract_all` of c… docling/document_extractor.py:166
HIGH MINED108 [MINED108] `self.extract_all` used but never assigned in __init__: Method `extract` of cl… docling/document_extractor.py:135
HIGH MINED108 [MINED108] `self.pipeline_options` used but never assigned in __init__: Method `set_optio… docling/document_extractor.py:63
HIGH MINED108 [MINED108] `self.pipeline_options` used but never assigned in __init__: Method `set_optio… docling/document_extractor.py:61
HIGH MINED108 [MINED108] `self._get_pipeline` used but never assigned in __init__: Method `_execute_pip… docling/document_converter.py:666
HIGH MINED108 [MINED108] `self._execute_pipeline` used but never assigned in __init__: Method `_process… docling/document_converter.py:645
HIGH MINED108 [MINED108] `self._get_pipeline_options_hash` used but never assigned in __init__: Method … docling/document_converter.py:618
HIGH MINED108 [MINED108] `self._process_document` used but never assigned in __init__: Method `_convert… docling/document_converter.py:582
HIGH MINED108 [MINED108] `self.convert` used but never assigned in __init__: Method `convert_string` of… docling/document_converter.py:567
HIGH MINED108 [MINED108] `self.convert` used but never assigned in __init__: Method `convert_string` of… docling/document_converter.py:559
HIGH MINED108 [MINED108] `self._convert` used but never assigned in __init__: Method `convert_all` of c… docling/document_converter.py:478
HIGH MINED108 [MINED108] `self.convert_all` used but never assigned in __init__: Method `convert` of cl… docling/document_converter.py:414
HIGH MINED108 [MINED108] `self._get_pipeline` used but never assigned in __init__: Method `initialize_p… docling/document_converter.py:354
HIGH MINED108 [MINED108] `self.pipeline_options` used but never assigned in __init__: Method `set_optio… docling/document_converter.py:91
HIGH MINED108 [MINED108] `self.pipeline_options` used but never assigned in __init__: Method `set_optio… docling/document_converter.py:90
HIGH SEC078 [SEC078] Python: requests without timeout: requests.get/post without a timeout will hang … docs/examples/legacy/pictures_descripti…:87
HIGH SEC078 [SEC078] Python: requests without timeout: requests.get/post without a timeout will hang … docling/utils/utils.py:49
HIGH SEC078 [SEC078] Python: requests without timeout: requests.get/post without a timeout will hang … docling/utils/api_image_request.py:122
HIGH MINED006 [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and Syste… docling/service_client/_scheduler.py:66
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… docling/models/stages/ocr/kserve_v2_ocr…:286
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… docling/models/inference_engines/object…:256
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… docling/models/inference_engines/image_…:195
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… docling/models/stages/ocr/kserve_v2_ocr…:75
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… docling/models/inference_engines/object…:119
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… docling/models/inference_engines/image_…:105
HIGH MINED020 [MINED020] Logging Credential Via Fstring: logger.error(f"failed for {api_key}") — secret… docling/models/extraction/transformers_…:201
HIGH MINED020 [MINED020] Logging Credential Via Fstring: logger.error(f"failed for {api_key}") — secret… docling/models/extraction/nuextract_tra…:294
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). docling/document_extractor.py:317
HIGH MINED012 [MINED012] Curl Pipe Bash: curl ... | sh / bash — runs unverified network code. docling/backend/latex/engines/tectonic.…:86
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … docling/models/inference_engines/vlm/ap…:137
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … docling/models/extraction/transformers_…:173
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … docling/backend/latex/engines/tectonic.…:174
HIGH MINED115 [MINED115] Action `actions/download-artifact` pinned to mutable ref `@v4`: `uses: actions… .github/workflows/pypi.yml:66
HIGH MINED115 [MINED115] Action `actions/download-artifact` pinned to mutable ref `@v4`: `uses: actions… .github/workflows/pypi.yml:43
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/pypi.yml:28
HIGH MINED115 [MINED115] Action `astral-sh/setup-uv` pinned to mutable ref `@v7`: `uses: astral-sh/setu… .github/workflows/checks.yml:595
HIGH MINED115 [MINED115] Action `astral-sh/setup-uv` pinned to mutable ref `@v7`: `uses: astral-sh/setu… .github/workflows/checks.yml:553
HIGH MINED115 [MINED115] Action `astral-sh/setup-uv` pinned to mutable ref `@v7`: `uses: astral-sh/setu… .github/workflows/checks.yml:473
HIGH MINED115 [MINED115] Action `astral-sh/setup-uv` pinned to mutable ref `@v7`: `uses: astral-sh/setu… .github/workflows/checks.yml:435
HIGH MINED115 [MINED115] Action `astral-sh/setup-uv` pinned to mutable ref `@v7`: `uses: astral-sh/setu… .github/workflows/checks.yml:398
HIGH MINED115 [MINED115] Action `astral-sh/setup-uv` pinned to mutable ref `@v7`: `uses: astral-sh/setu… .github/workflows/checks.yml:352
HIGH MINED118 [MINED118] Dockerfile FROM `quay.io/ds4sd/docling-serve-cpu:latest` not pinned by digest:… .actor/Dockerfile:23
HIGH MINED118 [MINED118] Dockerfile FROM `node:20-slim` not pinned by digest: `FROM node:20-slim` resol… .actor/Dockerfile:2
HIGH MINED131 [MINED131] pre-commit hook `https://github.com/astral-sh/uv-pre-commit` pinned to mutable… .pre-commit-config.yaml:62
HIGH MINED131 [MINED131] pre-commit hook `https://github.com/astral-sh/ruff-pre-commit` pinned to mutab… .pre-commit-config.yaml:17
HIGH MINED131 [MINED131] pre-commit hook `https://github.com/pre-commit/pre-commit-hooks` pinned to mut… .pre-commit-config.yaml:4
HIGH MINED118 [MINED118] Dockerfile FROM `python:3.11-slim-bookworm` not pinned by digest: `FROM python… Dockerfile:1
MED MINED109 [MINED109] Mutable default argument in `download_models` (list): `def download_models(...… docling/models/stages/ocr/easyocr_model…:96
MED MINED109 [MINED109] Mutable default argument in `api_image_request_streaming` (list): `def api_ima… docling/utils/api_image_request.py:146
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docling/pipeline/standard_pdf_pipeline.…:716
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docling/pipeline/base_pipeline.py:83
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docling/pipeline/vlm_pipeline.py:407
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docling/pipeline/base_extraction_pipeli…:42
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docling/backend/mspowerpoint_backend.py:431
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docling/backend/mets_gbs_backend.py:197
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docling/backend/mets_gbs_backend.py:185
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docs/examples/agent_skill/docling-docum…:31
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docs/examples/service_client/convert_co…:76
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docs/examples/vlm_pipeline_api_model.py:148
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docs/examples/vlm_pipeline_api_model.py:87
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docs/examples/run_with_formats_html_ren…:100
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docs/examples/post_process_ocr_with_vlm…:368
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docs/examples/post_process_ocr_with_vlm…:420
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docs/examples/post_process_ocr_with_vlm…:316
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docs/examples/mlx_whisper_example.py:187
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… docs/examples/asr_pipeline_performance_…:117
MED SEC136 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all excepti… docs/examples/agent_skill/docling-docum…:27
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… docling/models/picture_description_base…:56
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… docling/models/stages/ocr/kserve_v2_ocr…:286
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… docling/models/inference_engines/object…:256
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… docling/models/inference_engines/image_…:195
MED COMP001 [COMP001] High cognitive complexity: Function `convert` has cognitive complexity 20 (Sona… docling/backend/csv_backend.py:52
MED DKR003 Dockerfile base image uses the latest tag .actor/Dockerfile:23
MED DKR007 Docker build context has no .dockerignore .dockerignore
MED DKR001 Docker final stage has no non-root USER Dockerfile:1
MED AGT015 Remote install command pipes network code directly to a shell docling/backend/latex/engines/tectonic.…:86
LOW COMP001 [COMP001] High cognitive complexity: Function `__init__` has cognitive complexity 10 (Son… docling/backend/image_backend.py:137
LOW COMP001 [COMP001] High cognitive complexity: Function `convert` has cognitive complexity 9 (Sonar… docling/backend/email_backend.py:117
LOW AIC003 Duplicated implementation block across source files docling/models/vlm_pipeline_models/vllm…:211
LOW AIC003 Duplicated implementation block across source files docling/models/vlm_pipeline_models/vllm…:100
LOW AIC003 Duplicated implementation block across source files docling/models/vlm_pipeline_models/vllm…:41
LOW AIC003 Duplicated implementation block across source files docling/models/vlm_pipeline_models/mlx_…:131
LOW AIC003 Duplicated implementation block across source files docling/models/vlm_pipeline_models/mlx_…:58
LOW AIC003 Duplicated implementation block across source files docling/models/vlm_pipeline_models/hf_t…:182
LOW AIC003 Duplicated implementation block across source files docling/models/stages/table_structure/t…:285
LOW AIC003 Duplicated implementation block across source files docling/models/stages/table_structure/t…:116
LOW AIC003 Duplicated implementation block across source files docling/models/stages/ocr/tesseract_ocr…:101
LOW AIC003 Duplicated implementation block across source files docling/models/stages/ocr/rapid_ocr_mod…:246
LOW AIC003 Duplicated implementation block across source files docling/models/stages/ocr/ocr_mac_model…:50
LOW AIC003 Duplicated implementation block across source files docling/models/stages/code_formula/code…:165
LOW AIC003 Duplicated implementation block across source files docling/models/stages/chart_extraction/…:175
LOW AIC003 Duplicated implementation block across source files docling/models/inference_engines/vlm/vl…:109
LOW AIC003 Duplicated implementation block across source files docling/models/inference_engines/vlm/ba…:2
LOW AIC003 Duplicated implementation block across source files docling/models/inference_engines/object…:53
LOW AIC003 Duplicated implementation block across source files docling/models/inference_engines/object…:14
LOW AIC003 Duplicated implementation block across source files docling/models/inference_engines/object…:151
LOW AIC003 Duplicated implementation block across source files docling/models/inference_engines/object…:58
LOW AIC003 Duplicated implementation block across source files docling/models/inference_engines/object…:2
LOW AIC003 Duplicated implementation block across source files docling/models/inference_engines/object…:88
LOW AIC003 Duplicated implementation block across source files docling/models/inference_engines/image_…:14
LOW AIC003 Duplicated implementation block across source files docling/models/extraction/transformers_…:104
LOW AIC003 Duplicated implementation block across source files docling/models/extraction/prompt_utils.…:96
LOW AIC003 Duplicated implementation block across source files docling/document_extractor.py:174
LOW AIC003 Duplicated implementation block across source files docling/datamodel/object_detection_engi…:18
LOW AIC003 Duplicated implementation block across source files docling/cli/tools.py:6
LOW AIC003 Duplicated implementation block across source files docling/backend/xml/jats_backend.py:121
LOW AIC003 Duplicated implementation block across source files docling/backend/pypdfium2_backend.py:290
LOW AIC003 Duplicated implementation block across source files docling/backend/mets_gbs_backend.py:55
LOW DKR011 Dockerfile installs recommended OS packages Dockerfile:5
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. docs/examples/pictures_description_api.…:114
INFO MINED067 [MINED067] Python Requests No Timeout: requests.get/post/etc. without timeout= can hang f… docs/examples/legacy/pictures_descripti…:87
INFO MINED067 [MINED067] Python Requests No Timeout: requests.get/post/etc. without timeout= can hang f… docling/utils/utils.py:49
INFO MINED067 [MINED067] Python Requests No Timeout: requests.get/post/etc. without timeout= can hang f… docling/utils/api_image_request.py:122
INFO MINED062 [MINED062] Python Dataclass No Fields: @dataclass over an empty class — unfinished model. docling/service_client/exceptions.py:12
INFO MINED062 [MINED062] Python Dataclass No Fields: @dataclass over an empty class — unfinished model. docling/service_client/_scheduler.py:23
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. docling/service_client/_scheduler.py:24
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. docling/models/stages/page_assemble/pag…:51
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. docling/exceptions.py:1
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… docs/examples/legacy/vlm_pipeline_api_m…:67
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… docs/examples/experimental/demo_layout_…:70
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… docling/datamodel/kserve_transport_util…:13
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… docling/backend/latex/libraries/base.py:9
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… docling/backend/latex/engines/base.py:7
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… docling/backend/abstract_backend.py:35
Reset to top 5 139 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `docling-project/docling`

**Score: 76/100 (A-)**  ·  178 findings  ·  scanned 2026-06-05 09:38 UTC  ·  83,073 LOC

| Severity | Count |
|---|---|
| CRITICAL | 10 |
| HIGH | 52 |
| MEDIUM | 29 |
| LOW | 33 |

📊 [Full filterable report](https://repobility.com/scan/85f49a77-72bd-4c75-996a-7b2ce912526b/)  ·  ![scorecard](https://repobility.com/scan/85f49a77-72bd-4c75-996a-7b2ce912526b/report.png?v=1780652311-s2)

### Top findings

1. **CRITICAL** `MINED107` — Missing import: `array` used but not imported
   `docling/models/inference_engines/common/kserve_v2_grpc.py:389` · ✓ Repobility
2. **CRITICAL** `MINED107` — Missing import: `array` used but not imported
   `docling/models/inference_engines/common/kserve_v2_http.py:102` · ✓ Repobility
3. **CRITICAL** `MINED107` — Missing import: `queue` used but not imported
   `docling/service_client/_scheduler.py:71` · ✓ Repobility
4. **CRITICAL** `MINED107` — Missing import: `string` used but not imported
   `docling/utils/utils.py:42` · ✓ Repobility
5. **CRITICAL** `MINED107` — Missing import: `queue` used but not imported
   `docling/backend/msexcel_backend.py:543` · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/85f49a77-72bd-4c75-996a-7b2ce912526b/_
Already filed
This repo publishes a SECURITY.md policy and the scan contains 9 Critical/High security finding(s). Public issue filing would violate coordinated disclosure. Submit privately via the project's security reporting channel.
Megaproject â high spam risk
Could not determine 'docling-project/docling' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.
Already filed
68/193 findings (35%) on this scan are already flagged as test-file, won't-fix, or suppressed. The scan is too noisy to file as a single issue. Curate down to specific actionable findings, or address the FP source first.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.