← Back to scan
File as GitHub Issue repo: google-ai-edge/LiteRT-LM

Push this scan report to google-ai-edge/LiteRT-LM

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

JS: require() with non-literal

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 MINED022 [MINED022] C Strcpy: strcpy/strcat dont bounds-check; use strncpy or snprintf. js/packages/core/src/cpp/readable_strea…:40
CRIT MINED107 [MINED107] Missing import: `stat` used but not imported: The file uses `stat.something(..… python/litert_lm_cli/commands/list.py:45
CRIT MINED022 [MINED022] C Strcpy: strcpy/strcat dont bounds-check; use strncpy or snprintf. runtime/components/constrained_decoding…:148
CRIT MINED022 [MINED022] C Strcpy: strcpy/strcat dont bounds-check; use strncpy or snprintf. runtime/components/constrained_decoding…:85
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… kotlin/java/com/google/ai/edge/litertlm…:89
CRIT MINED116 [MINED116] Workflow uses `secrets.HF_TOKEN` on a `pull_request` trigger: This workflow tr… .github/workflows/ml-ci-build.yml:159
CRIT MINED116 [MINED116] Workflow uses `secrets.HF_TOKEN` on a `pull_request` trigger: This workflow tr… .github/workflows/ml-ci-build-win.yml:189
CRIT MINED116 [MINED116] Workflow uses `secrets.HF_TOKEN` on a `pull_request` trigger: This workflow tr… .github/workflows/ci-build-mac.yml:105
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … js/apps/chat/src/stores/model_loader_se…:277
HIGH MINED006 [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and Syste… python/litert_lm_cli/commands/import.py:129
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… python/litert_lm_cli/huggingface_downlo…:70
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… python/litert_lm_cli/common.py:192
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… python/litert_lm_cli/commands/import.py:132
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… python/litert_lm_cli/huggingface_downlo…:122
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… python/litert_lm_cli/commands/import.py:58
HIGH MINED021 [MINED021] Path Traversal Os Join: os.path.join(user_dir, filename) where filename can co… python/litert_lm_cli/model.py:253
HIGH MINED006 [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and Syste… python/litert_lm_cli/commands/serve.py:62
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … js/packages/core/src/cleanup.ts:27
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … js/apps/model_tester/src/session_chat.ts:134
HIGH MINED038 [MINED038] Swift Try Bang: try! crashes on thrown error. Use try? or do/catch. swift/Tool.swift:279
HIGH MINED003 [MINED003] Rust Unwrap In Prod: .unwrap() panics if None/Err. Acceptable in tests; risky … runtime/components/tool_use/rust/python…:36
HIGH MINED029 [MINED029] Kotlin Null Bang: x!! throws NullPointerException if x is null. Bypasses Kotli… kotlin/java/com/google/ai/edge/litertlm…:123
HIGH COMP001 [COMP001] High cognitive complexity: Function `send_message_async` has cognitive complexi… python/litert_lm/conversation.py:184
HIGH MINED115 [MINED115] Action `actions/cache/save` pinned to mutable ref `@v4`: `uses: actions/cache/… .github/workflows/ci-build-mac.yml:181
HIGH MINED126 [MINED126] Workflow container/services image `ubuntu:24.04` unpinned: `container/services… .github/workflows/ml-ci-build.yml:41
HIGH MINED115 [MINED115] Action `actions/cache/restore` pinned to mutable ref `@v4`: `uses: actions/cac… .github/workflows/ml-ci-build-win.yml:170
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/ml-ci-build-win.yml:133
HIGH MINED115 [MINED115] Action `astral-sh/setup-uv` pinned to mutable ref `@v5`: `uses: astral-sh/setu… .github/workflows/nightly-linux-arm64.y…:70
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/nightly-linux-arm64.y…:51
HIGH MINED115 [MINED115] Action `actions/cache/save` pinned to mutable ref `@v4`: `uses: actions/cache/… .github/workflows/ci-build-win.yml:168
HIGH MINED115 [MINED115] Action `actions/cache/restore` pinned to mutable ref `@v4`: `uses: actions/cac… .github/workflows/ci-build-win.yml:77
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/ci-build-win.yml:44
HIGH MINED115 [MINED115] Action `astral-sh/setup-uv` pinned to mutable ref `@v5`: `uses: astral-sh/setu… .github/workflows/nightly-mac-arm64.yml:63
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/nightly-mac-arm64.yml:47
HIGH MINED115 [MINED115] Action `actions/github-script` pinned to mutable ref `@v7`: `uses: actions/git… .github/workflows/auto-assignment.yml:31
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/auto-assignment.yml:30
HIGH MINED115 [MINED115] Action `actions/cache/save` pinned to mutable ref `@v4`: `uses: actions/cache/… .github/workflows/ci-build.yml:182
HIGH MINED115 [MINED115] Action `nttld/setup-ndk` pinned to mutable ref `@v1`: `uses: nttld/setup-ndk@v… .github/workflows/ci-build.yml:151
HIGH MINED115 [MINED115] Action `actions/cache/restore` pinned to mutable ref `@v4`: `uses: actions/cac… .github/workflows/ci-build.yml:64
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/ci-build.yml:38
HIGH MINED115 [MINED115] Action `actions/cache/restore` pinned to mutable ref `@v4`: `uses: actions/cac… .github/workflows/ci-build-mac.yml:80
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/ci-build-mac.yml:54
HIGH MINED126 [MINED126] Workflow container/services image `ubuntu:24.04` unpinned: `container/services… .github/workflows/ci-build-cmake.yml:34
HIGH MINED115 [MINED115] Action `actions/cache` pinned to mutable ref `@v4`: `uses: actions/cache@v4` r… .github/workflows/ci-build-cmake.yml:117
HIGH MINED115 [MINED115] Action `actions/cache` pinned to mutable ref `@v4`: `uses: actions/cache@v4` r… .github/workflows/ci-build-cmake.yml:108
HIGH MINED115 [MINED115] Action `actions/cache` pinned to mutable ref `@v4`: `uses: actions/cache@v4` r… .github/workflows/ci-build-cmake.yml:99
HIGH MINED115 [MINED115] Action `actions/cache` pinned to mutable ref `@v4`: `uses: actions/cache@v4` r… .github/workflows/ci-build-cmake.yml:90
HIGH MINED115 [MINED115] Action `actions/cache` pinned to mutable ref `@v4`: `uses: actions/cache@v4` r… .github/workflows/ci-build-cmake.yml:78
HIGH MINED115 [MINED115] Action `actions/cache` pinned to mutable ref `@v4`: `uses: actions/cache@v4` r… .github/workflows/ci-build-cmake.yml:70
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/ci-build-cmake.yml:53
HIGH BINARY_RISK [BINARY] scipy: compound risk score 2194 (CVEs: 0, binary findings: 550)
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. js/apps/chat/src/stores/model_loader_se…:158
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… python/litert_lm_cli/commands/openai_ha…:1070
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… python/litert_lm_cli/commands/openai_ha…:1023
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… python/litert_lm_cli/commands/openai_ha…:898
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… python/litert_lm_cli/commands/openai_ha…:806
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… python/litert_lm_cli/commands/openai_ha…:592
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. js/packages/core/scripts/download-wasm.…:77
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… python/litert_lm_cli/commands/run.py:334
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… python/litert_lm_cli/commands/run.py:338
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… python/litert_lm_cli/commands/gemini_ha…:476
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… python/litert_lm_cli/commands/gemini_ha…:413
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… python/litert_lm_cli/commands/gemini_ha…:266
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… python/litert_lm_cli/commands/serve_uti…:65
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… python/litert_lm_cli/commands/benchmark…:119
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… python/litert_lm_cli/model.py:131
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… runtime/util/memory_mapped_file_test.cc:58
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… runtime/util/lora_util_test.cc:51
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… python/litert_lm/_messages.py:56
MED SEC015 [SEC015] Insecure Randomness for Security: Weak PRNG used in security-sensitive context. … python/litert_lm/engine.py:244
MED COMP001 [COMP001] High cognitive complexity: Function `_handle_tool_calls` has cognitive complexi… python/litert_lm/conversation.py:79
MED AGT015 Remote install command pipes network code directly to a shell .github/workflows/ci-build-cmake.yml:49
MED AGT015 Remote install command pipes network code directly to a shell .github/workflows/ci-build-mac.yml:117
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… runtime/conversation/channel_util.cc:56
LOW COMP001 [COMP001] High cognitive complexity: Function `of` has cognitive complexity 14 (SonarSour… python/litert_lm/_messages.py:161
LOW AIC003 Duplicated implementation block across source files js/apps/model_tester/src/session_chat.ts:6
LOW AIC003 Duplicated implementation block across source files js/apps/model_tester/src/litert_lm_mode…:48
LOW AIC003 Duplicated implementation block across source files runtime/conversation/model_data_process…:13
LOW AIC003 Duplicated implementation block across source files runtime/executor/vision_executor_settin…:20
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … js/apps/chat/src/stores/settings_store_…:37
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … js/apps/chat/src/stores/settings_store.…:51
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … js/apps/chat/src/stores/settings_store.…:85
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … js/apps/chat/src/stores/model_loader_se…:68
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… python/litert_lm/conversation.py:70
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. js/packages/core/src/readable_stream_da…:34
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… runtime/components/lora.cc:59
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… runtime/util/zip_readonly_mem_file.cc:7
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… runtime/util/model_asset_bundle_resourc…:7
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… runtime/util/model_asset_bundle_resourc…:7
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… runtime/components/huggingface_tokenize…:51
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… runtime/components/embedding_lookup/emb…:157
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… python/litert_lm/engine.py:131
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… python/litert_lm/_messages.py:57
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .github/workflows/auto-assignment.js:32
Reset to top 5 94 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `google-ai-edge/LiteRT-LM`

**Score: 89/100 (B+)**  ·  158 findings  ·  scanned 2026-06-09 04:37 UTC  ·  55,609 LOC

| Severity | Count |
|---|---|
| CRITICAL | 8 |
| HIGH | 43 |
| MEDIUM | 22 |
| LOW | 6 |

📊 [Full filterable report](https://repobility.com/scan/6eab8516-bf5a-4e2a-804e-19ee40e91ce8/)  ·  ![scorecard](https://repobility.com/scan/6eab8516-bf5a-4e2a-804e-19ee40e91ce8/report.png?v=1780979849-s2)

### Top findings

1. **CRITICAL** `MINED022` — C Strcpy
   `js/packages/core/src/cpp/readable_stream_data_stream.cc:40` · CWE-120 · ✓ Repobility
2. **CRITICAL** `MINED107` — Missing import: `stat` used but not imported
   `python/litert_lm_cli/commands/list.py:45` · ✓ Repobility
3. **CRITICAL** `MINED022` — C Strcpy
   `runtime/components/constrained_decoding/llg_constraint_provider.cc:148` · CWE-120 · ✓ Repobility
4. **CRITICAL** `MINED022` — C Strcpy
   `runtime/components/constrained_decoding/llg_constraint.cc:85` · CWE-120 · ✓ Repobility
5. **CRITICAL** `SEC084` — JS: require() with non-literal
   `kotlin/java/com/google/ai/edge/litertlm/Config.kt:89`

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/6eab8516-bf5a-4e2a-804e-19ee40e91ce8/_
Premium account
This scan was submitted by a Enterprise-tier account. Premium accounts have full outreach control â Repobility doesn't pre-fill the 'file as GitHub issue' button for paid users. You can still file the issue manually using the markdown body above (Copy markdown), or contact us if you'd like batch-filing enabled for your account.
Megaproject â high spam risk
Could not determine 'google-ai-edge/LiteRT-LM' 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
121/314 findings (39%) 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.