← Back to scan
File as GitHub Issue repo: PaddlePaddle/PaddleOCR

Push this scan report to PaddlePaddle/PaddleOCR

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

Action `actions/stale` pinned to mutable ref `@v10`: `uses

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
HIGH MINED134 [MINED134] Binary file `deploy/android_demo/gradle/wrapper/gradle-wrapper.jar` committed … deploy/android_demo/gradle/wrapper/grad…:1
HIGH MINED115 [MINED115] Action `actions/cache` pinned to mutable ref `@v5`: `uses: actions/cache@v5` r… .github/workflows/docs_anchor_check.yml:22
HIGH MINED115 [MINED115] Action `actions/setup-python` pinned to mutable ref `@v6`: `uses: actions/setu… .github/workflows/docs_anchor_check.yml:18
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/docs_anchor_check.yml:15
HIGH MINED115 [MINED115] Action `actions/stale` pinned to mutable ref `@v10`: `uses: actions/stale@v10`… .github/workflows/close_inactive_issues…:13
HIGH MINED115 [MINED115] Action `actions/cache` pinned to mutable ref `@v5`: `uses: actions/cache@v5` r… .github/workflows/tests.yml:53
HIGH MINED115 [MINED115] Action `actions/setup-python` pinned to mutable ref `@v6`: `uses: actions/setu… .github/workflows/tests.yml:48
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/tests.yml:46
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/tests.yml:20
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… paddleocr/_doc2md/converters/pptx.py:412
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… paddleocr/_doc2md/converters/pptx.py:455
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… paddleocr/_doc2md/converters/pptx.py:349
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… paddleocr/_doc2md/converters/xlsx.py:71
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… paddleocr/_doc2md/math/__init__.py:25
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… paddleocr/_api_client/cli.py:314
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… paddleocr/_api_client/cli.py:221
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… paddleocr/_api_client/_async_http.py:179
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… ppocr/data/imaug/make_pse_gt.py:99
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… ppocr/data/imaug/ct_process.py:97
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… ppocr/data/imaug/operators.py:310
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… ppocr/data/imaug/rec_img_aug.py:928
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… ppocr/modeling/heads/rec_cppd_head.py:21
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… ppocr/utils/e2e_metric/Deteval.py:354
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/losses/distillation_loss.py:840
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/losses/distillation_loss.py:813
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/losses/distillation_loss.py:745
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/losses/distillation_loss.py:706
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/losses/distillation_loss.py:671
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/losses/distillation_loss.py:641
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/losses/distillation_loss.py:614
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/losses/distillation_loss.py:505
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/losses/distillation_loss.py:400
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/losses/distillation_loss.py:251
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/losses/distillation_loss.py:146
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/losses/distillation_loss.py:48
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/postprocess/vqa_token_ser_layoutl…:102
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/postprocess/db_postprocess.py:260
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/postprocess/vqa_token_re_layoutlm…:82
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… ppocr/postprocess/east_postprocess.py:80
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/postprocess/picodet_postprocess.py:108
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… ppocr/postprocess/ct_postprocess.py:145
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… ppocr/postprocess/rec_postprocess.py:976
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/postprocess/rec_postprocess.py:840
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/postprocess/rec_postprocess.py:241
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… ppocr/data/latexocr_dataset.py:147
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… ppocr/data/multi_scale_sampler.py:10
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… ppocr/data/pgnet_dataset.py:86
MED MINED109 [MINED109] Mutable default argument in `__init__` (dict): `def __init__(... = []/{}/set()… test_tipc/supplementary/optimizer.py:256
MED MINED109 [MINED109] Mutable default argument in `__init__` (dict): `def __init__(... = []/{}/set()… test_tipc/supplementary/optimizer.py:132
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… test_tipc/supplementary/load_cifar.py:15
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… test_tipc/compare_results.py:70
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… test_tipc/compare_results.py:52
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… benchmark/analysis.py:146
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… benchmark/analysis.py:350
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/program.py:296
MED MINED109 [MINED109] Mutable default argument in `eval` (list): `def eval(... = []/{}/set())` — Pyt… tools/program.py:661
MED MINED109 [MINED109] Mutable default argument in `train` (list): `def train(... = []/{}/set())` — P… tools/program.py:200
MED SEC037 [SEC037] Uncontrolled Recursion — stack/depth exhaustion: Parsing arbitrary-depth user in… paddleocr-js/packages/core/src/pipeline…:81
MED SEC007 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code. ppocr/losses/center_loss.py:46
MED SEC007 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code. paddleocr-js/packages/core/src/pipeline…:81
MED SEC007 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code. paddleocr-js/packages/core/src/models/c…:38
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… tools/train.py:183
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… ppocr/data/simple_dataset.py:82
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… benchmark/PaddleOCR_DBNet/utils/metrics…:30
MED SEC136 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all excepti… benchmark/PaddleOCR_DBNet/utils/ocr_met…:18
MED SEC136 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all excepti… benchmark/PaddleOCR_DBNet/post_processi…:12
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… paddleocr/_models/_doc_vlm.py:43
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… paddleocr/_abstract.py:20
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… benchmark/PaddleOCR_DBNet/base/base_tra…:185
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … benchmark/PaddleOCR_DBNet/models/__init…:21
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … benchmark/PaddleOCR_DBNet/data_loader/_…:89
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … benchmark/PaddleOCR_DBNet/base/base_dat…:43
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… api_sdk/typescript/examples/doc-parsing…:32
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… api_sdk/go/examples/ocr_url/main.go:33
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… api_sdk/go/examples/doc_parsing_file/ma…:46
MED COMP001 [COMP001] High cognitive complexity: Function `__init__` has cognitive complexity 16 (Son… benchmark/PaddleOCR_DBNet/base/base_tra…:21
MED MINED124 [MINED124] requirements.txt: `yacs` has no version pin: Unpinned pip requirement means ev… ppstructure/kie/requirements.txt:2
MED MINED124 [MINED124] requirements.txt: `sentencepiece` has no version pin: Unpinned pip requirement… ppstructure/kie/requirements.txt:1
MED MINED124 [MINED124] requirements.txt: `typing-extensions` has no version pin: Unpinned pip require… deploy/avh/requirements.txt:4
MED MINED124 [MINED124] requirements.txt: `opencv-python` has no version pin: Unpinned pip requirement… deploy/avh/requirements.txt:3
MED MINED124 [MINED124] requirements.txt: `numpy` has no version pin: Unpinned pip requirement means e… deploy/avh/requirements.txt:2
MED MINED124 [MINED124] requirements.txt: `paddlepaddle` has no version pin: Unpinned pip requirement … deploy/avh/requirements.txt:1
MED MINED124 [MINED124] requirements.txt: `Wand` has no version pin: Unpinned pip requirement means ev… docs/version2.x/algorithm/formula_recog…:4
MED MINED124 [MINED124] requirements.txt: `ftfy` has no version pin: Unpinned pip requirement means ev… docs/version2.x/algorithm/formula_recog…:3
MED MINED124 [MINED124] requirements.txt: `imagesize` has no version pin: Unpinned pip requirement mea… docs/version2.x/algorithm/formula_recog…:2
MED MINED124 [MINED124] requirements.txt: `packaging` has no version pin: Unpinned pip requirement mea… requirements.txt:18
MED MINED124 [MINED124] requirements.txt: `albucore` has no version pin: Unpinned pip requirement mean… requirements.txt:17
MED MINED124 [MINED124] requirements.txt: `albumentations` has no version pin: Unpinned pip requiremen… requirements.txt:15
MED MINED124 [MINED124] requirements.txt: `requests` has no version pin: Unpinned pip requirement mean… requirements.txt:14
MED MINED124 [MINED124] requirements.txt: `pyyaml` has no version pin: Unpinned pip requirement means … requirements.txt:13
MED MINED124 [MINED124] requirements.txt: `Pillow` has no version pin: Unpinned pip requirement means … requirements.txt:12
MED MINED124 [MINED124] requirements.txt: `cython` has no version pin: Unpinned pip requirement means … requirements.txt:11
MED MINED124 [MINED124] requirements.txt: `opencv-contrib-python` has no version pin: Unpinned pip req… requirements.txt:10
MED MINED124 [MINED124] requirements.txt: `opencv-python` has no version pin: Unpinned pip requirement… requirements.txt:9
MED MINED124 [MINED124] requirements.txt: `rapidfuzz` has no version pin: Unpinned pip requirement mea… requirements.txt:8
MED MINED124 [MINED124] requirements.txt: `numpy` has no version pin: Unpinned pip requirement means e… requirements.txt:7
MED MINED124 [MINED124] requirements.txt: `tqdm` has no version pin: Unpinned pip requirement means ev… requirements.txt:6
MED MINED124 [MINED124] requirements.txt: `lmdb<1.5; python_version < "3.9"` has no version pin: Unpin… requirements.txt:5
MED MINED124 [MINED124] requirements.txt: `pyclipper` has no version pin: Unpinned pip requirement mea… requirements.txt:3
MED MINED124 [MINED124] requirements.txt: `scikit-image` has no version pin: Unpinned pip requirement … requirements.txt:2
MED MINED124 [MINED124] requirements.txt: `shapely` has no version pin: Unpinned pip requirement means… requirements.txt:1
MED DKR007 Docker build context has no .dockerignore .dockerignore
MED DKR001 Docker final stage has no non-root USER deploy/docker/hubserving/gpu/Dockerfile:2
MED DKR001 Docker final stage has no non-root USER deploy/docker/hubserving/cpu/Dockerfile:2
MED DKC005 Compose service adds dangerous Linux capabilities deploy/paddleocr_vl_docker/accelerators…:26
MED DKC005 Compose service adds dangerous Linux capabilities deploy/paddleocr_vl_docker/accelerators…:1
MED DKC005 Compose service adds dangerous Linux capabilities deploy/paddleocr_vl_docker/accelerators…:31
MED DKC005 Compose service adds dangerous Linux capabilities deploy/paddleocr_vl_docker/accelerators…:1
MED DKC005 Compose service adds dangerous Linux capabilities deploy/paddleocr_vl_docker/accelerators…:28
MED DKC005 Compose service adds dangerous Linux capabilities deploy/paddleocr_vl_docker/accelerators…:1
MED SEC005 [SEC005] Command Injection Risk: Unsafe shell execution or eval of user input. test_tipc/compare_results.py:26
LOW SEC124 [SEC124] TOCTOU file access (os.access then open): Check-then-use file pattern (access/ex… tools/end2end/convert_ppocr_label.py:78
LOW SEC124 [SEC124] TOCTOU file access (os.access then open): Check-then-use file pattern (access/ex… ppstructure/table/eval_table.py:55
LOW SEC124 [SEC124] TOCTOU file access (os.access then open): Check-then-use file pattern (access/ex… configs/rec/multi_language/generate_mul…:261
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… ppocr/metrics/eval_det_iou.py:166
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… deploy/android_demo/app/src/main/java/c…:156
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… benchmark/PaddleOCR_DBNet/utils/ocr_met…:197
LOW ERR003 [ERR003] Ignored Error (Go): Ignoring error return values. api_sdk/go/transport.go:112
LOW ERR003 [ERR003] Ignored Error (Go): Ignoring error return values. api_sdk/go/resource.go:97
LOW COMP001 [COMP001] High cognitive complexity: Function `_init_pre_processes` has cognitive complex… benchmark/PaddleOCR_DBNet/base/base_dat…:34
LOW COMP001 [COMP001] High cognitive complexity: Function `__getitem__` has cognitive complexity 12 (… benchmark/PaddleOCR_DBNet/base/base_dat…:61
LOW AIC003 Duplicated implementation block across source files mcp_server/paddleocr_mcp/inference/pp_s…:30
LOW AIC003 Duplicated implementation block across source files mcp_server/paddleocr_mcp/inference/pp_s…:40
LOW AIC003 Duplicated implementation block across source files mcp_server/paddleocr_mcp/inference/pp_s…:25
LOW AIC003 Duplicated implementation block across source files mcp_server/paddleocr_mcp/inference/padd…:43
LOW AIC003 Duplicated implementation block across source files deploy/slim/quantization/quant_kl.py:41
LOW AIC003 Duplicated implementation block across source files deploy/slim/quantization/quant_kl.py:25
LOW AIC003 Duplicated implementation block across source files deploy/slim/quantization/quant.py:51
LOW AIC003 Duplicated implementation block across source files deploy/slim/quantization/quant.py:39
LOW AIC003 Duplicated implementation block across source files deploy/slim/prune/sensitivity_anal.py:43
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/structure_table/modul…:84
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/structure_table/modul…:49
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/structure_table/modul…:29
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/structure_system/modu…:49
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/structure_system/modu…:29
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/structure_layout/modu…:27
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/ocr_system/params.py:1
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/ocr_system/module.py:109
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/ocr_system/module.py:28
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/ocr_rec/module.py:72
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/ocr_rec/module.py:60
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/ocr_rec/module.py:26
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/ocr_det/module.py:73
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/ocr_det/module.py:27
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/ocr_cls/module.py:26
LOW AIC003 Duplicated implementation block across source files deploy/hubserving/kie_ser_re/module.py:28
LOW AIC003 Duplicated implementation block across source files deploy/cpp_infer/src/pipelines/ocr/pipe…:25
LOW AIC003 Duplicated implementation block across source files deploy/cpp_infer/src/pipelines/doc_prep…:11
LOW AIC003 Duplicated implementation block across source files deploy/cpp_infer/src/modules/text_recog…:9
LOW AIC003 Duplicated implementation block across source files deploy/cpp_infer/src/modules/text_detec…:8
LOW AIC003 Duplicated implementation block across source files api_sdk/typescript/src/internal/poller.…:117
LOW DKC010 Compose service lacks no-new-privileges hardening deploy/paddleocr_vl_docker/hps/compose.…:28
LOW DKC010 Compose service lacks no-new-privileges hardening deploy/paddleocr_vl_docker/hps/compose.…:1
LOW DKC010 Compose service lacks no-new-privileges hardening deploy/paddleocr_vl_docker/accelerators…:1
LOW DKC010 Compose service lacks no-new-privileges hardening deploy/paddleocr_vl_docker/accelerators…:1
LOW DKC010 Compose service lacks no-new-privileges hardening deploy/paddleocr_vl_docker/accelerators…:1
LOW DKC010 Compose service lacks no-new-privileges hardening deploy/paddleocr_vl_docker/accelerators…:1
LOW DKC010 Compose service lacks no-new-privileges hardening deploy/paddleocr_vl_docker/accelerators…:1
LOW DKC010 Compose service lacks no-new-privileges hardening deploy/paddleocr_vl_docker/accelerators…:1
LOW DKC010 Compose service lacks no-new-privileges hardening deploy/paddleocr_vl_docker/accelerators…:1
LOW DKC010 Compose service lacks no-new-privileges hardening deploy/paddleocr_vl_docker/accelerators…:1
LOW DKC010 Compose service lacks no-new-privileges hardening deploy/paddleocr_vl_docker/accelerators…:1
LOW DKC006 Compose service does not declare a runtime user deploy/paddleocr_vl_docker/hps/compose.…:28
LOW DKC006 Compose service does not declare a runtime user deploy/paddleocr_vl_docker/hps/compose.…:1
INFO MINED079 [MINED079] Off By One Slice: range(len(x)+1), arr[i+1:i+n+1], or while i<=len(arr) — off-… test_tipc/supplementary/optimizer.py:43
INFO MINED063 [MINED063] Toctou Os Path Exists: if os.path.exists(p): open(p) — file can be replaced/de… test_tipc/supplementary/utils.py:133
INFO MINED063 [MINED063] Toctou Os Path Exists: if os.path.exists(p): open(p) — file can be replaced/de… ppstructure/table/eval_table.py:55
INFO MINED067 [MINED067] Python Requests No Timeout: requests.get/post/etc. without timeout= can hang f… paddleocr/_cli.py:138
INFO MINED067 [MINED067] Python Requests No Timeout: requests.get/post/etc. without timeout= can hang f… paddleocr/_api_client/_resources.py:48
INFO MINED067 [MINED067] Python Requests No Timeout: requests.get/post/etc. without timeout= can hang f… paddleocr/_api_client/_http.py:188
INFO MINED062 [MINED062] Python Dataclass No Fields: @dataclass over an empty class — unfinished model. paddleocr/_doc2md/base.py:20
INFO MINED062 [MINED062] Python Dataclass No Fields: @dataclass over an empty class — unfinished model. mcp_server/paddleocr_mcp/inference/type…:18
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. mcp_server/paddleocr_mcp/__main__.py:137
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. deploy/hubserving/ocr_cls/params.py:20
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. deploy/hubserving/kie_ser_re/params.py:22
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. deploy/hubserving/kie_ser/params.py:22
INFO MINED080 [MINED080] Cpp Using Namespace Std: using namespace std; pollutes the global namespace. deploy/cpp_infer/src/utils/ilogger.h:53
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… deploy/cpp_infer/src/api/models/text_im…:37
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… deploy/cpp_infer/src/api/models/text_de…:37
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… deploy/cpp_infer/src/api/models/doc_img…:40
INFO MINED055 [MINED055] Npm Install No Lockfile: Production image runs npm install (resolves new versi… test_tipc/prepare_lite_cpp.sh:44
INFO MINED055 [MINED055] Npm Install No Lockfile: Production image runs npm install (resolves new versi… deploy/avh/configure_avh.sh:78
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… mcp_server/paddleocr_mcp/inference/padd…:110
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… mcp_server/paddleocr_mcp/inference/ocr/…:100
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… deploy/avh/configure_avh.sh:50
INFO MINED081 [MINED081] Java Printstacktrace: Should use logger, not stack trace to stderr. deploy/android_demo/app/src/main/java/c…:29
INFO MINED077 [MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles. ppocr/losses/text_focus_loss.py:31
INFO MINED077 [MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles. ppocr/losses/stroke_focus_loss.py:38
INFO MINED077 [MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles. benchmark/PaddleOCR_DBNet/utils/make_tr…:11
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… benchmark/PaddleOCR_DBNet/data_loader/_…:46
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… benchmark/PaddleOCR_DBNet/base/base_tra…:175
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… benchmark/PaddleOCR_DBNet/base/base_dat…:54
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … paddleocr-js/packages/core/src/resource…:91
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … api_sdk/typescript/src/internal/poller.…:116
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … api_sdk/typescript/src/internal/http.ts:172
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … paddleocr-js/apps/demo/src/main.ts:197
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … api_sdk/typescript/examples/ocr-url.ts:26
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … api_sdk/typescript/examples/doc-parsing…:28
INFO MINED060 [MINED060] Go Context No Cancel: context.Background() at request handler boundary leaks g… api_sdk/go/examples/ocr_url/main.go:30
INFO MINED060 [MINED060] Go Context No Cancel: context.Background() at request handler boundary leaks g… api_sdk/go/examples/doc_parsing_file/ma…:30
Reset to top 5 200 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `PaddlePaddle/PaddleOCR`

**Score: 74/100 (B+)**  ·  366 findings  ·  scanned 2026-06-04 23:21 UTC  ·  137,836 LOC

| Severity | Count |
|---|---|
| CRITICAL | 30 |
| HIGH | 112 |
| MEDIUM | 102 |
| LOW | 53 |

📊 [Full filterable report](https://repobility.com/scan/3dad2478-306d-4d44-a628-9cd6ca4ce6f2/)  ·  ![scorecard](https://repobility.com/scan/3dad2478-306d-4d44-a628-9cd6ca4ce6f2/report.png?v=1780615316-s2)

### Top findings

1. **HIGH** `MINED134` — Binary file `deploy/android_demo/gradle/wrapper/gradle-wrapper.jar` committed in source re
   `deploy/android_demo/gradle/wrapper/gradle-wrapper.jar:1` · ✓ Repobility
2. **HIGH** `MINED115` — Action `actions/cache` pinned to mutable ref `@v5`: `uses
   `.github/workflows/docs_anchor_check.yml:22` · ✓ Repobility
3. **HIGH** `MINED115` — Action `actions/setup-python` pinned to mutable ref `@v6`: `uses
   `.github/workflows/docs_anchor_check.yml:18` · ✓ Repobility
4. **HIGH** `MINED115` — Action `actions/checkout` pinned to mutable ref `@v6`: `uses
   `.github/workflows/docs_anchor_check.yml:15` · ✓ Repobility
5. **HIGH** `MINED115` — Action `actions/stale` pinned to mutable ref `@v10`: `uses
   `.github/workflows/close_inactive_issues.yml:13` · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/3dad2478-306d-4d44-a628-9cd6ca4ce6f2/_
Megaproject â high spam risk
Could not determine 'PaddlePaddle/PaddleOCR' 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.

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.