← Back to scan
File as GitHub Issue repo: flutter/flutter

Push this scan report to flutter/flutter

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 MINED107 [MINED107] Missing import: `stat` used but not imported: The file uses `stat.something(..… engine/src/flutter/tools/fuchsia/toolch…:40
CRIT MINED022 [MINED022] C Strcpy: strcpy/strcat dont bounds-check; use strncpy or snprintf. engine/src/flutter/impeller/renderer/sh…:16
CRIT MINED005 [MINED005] Lua Loadstring: loadstring/load executes Lua code. Code injection. engine/src/flutter/impeller/renderer/ba…:57
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… dev/integration_tests/display_cutout_ro…:15
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… dev/integration_tests/deferred_componen…:11
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… dev/integration_tests/android_hardware_…:7
HIGH MINED106 [MINED106] Phantom test coverage: test_zip: Test function `test_zip` runs code but contai… engine/src/flutter/tools/font_subset/te…:145
HIGH MINED108 [MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_ComputeDa… engine/src/tools/dart/create_updated_fl…:100
HIGH MINED108 [MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_ComputeDa… engine/src/tools/dart/create_updated_fl…:85
HIGH MINED108 [MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_ComputeDa… engine/src/tools/dart/create_updated_fl…:70
HIGH MINED108 [MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_PrettifyS… engine/src/tools/dart/create_updated_fl…:61
HIGH MINED108 [MINED108] `self.assertRaises` used but never assigned in __init__: Method `test_Prettify… engine/src/tools/dart/create_updated_fl…:22
HIGH MINED011 [MINED011] Scala Get On Option: Option.get throws NoSuchElementException on None. Use get… engine/src/flutter/impeller/playground/…:115
HIGH MINED011 [MINED011] Scala Get On Option: Option.get throws NoSuchElementException on None. Use get… engine/src/flutter/impeller/golden_test…:74
HIGH MINED011 [MINED011] Scala Get On Option: Option.get throws NoSuchElementException on None. Use get… engine/src/flutter/fml/platform/darwin/…:83
HIGH MINED034 [MINED034] Python Subprocess Shell True: subprocess(..., shell=True) enables command inje… engine/src/flutter/ci/scan_deps.py:153
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… engine/src/flutter/ci/scan_deps.py:66
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … engine/src/flutter/flow/layers/platform…:73
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … engine/src/flutter/display_list/skia/dl…:42
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … dev/tools/mega_gallery.dart:91
HIGH MINED029 [MINED029] Kotlin Null Bang: x!! throws NullPointerException if x is null. Bypasses Kotli… dev/benchmarks/platform_channels_benchm…:34
HIGH MINED002 [MINED002] Dart Null Bang: value! throws on null. Use ?. or null check. dev/bots/custom_rules/render_box_intrin…:69
HIGH MINED002 [MINED002] Dart Null Bang: value! throws on null. Use ?. or null check. dev/bots/custom_rules/protect_public_st…:76
HIGH MINED002 [MINED002] Dart Null Bang: value! throws on null. Use ?. or null check. dev/benchmarks/complex_layout/test_driv…:67
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… dev/integration_tests/web_e2e_tests/tes…:148
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… .agents/skills/upgrade-browser/scripts/…:11
HIGH MINED115 [MINED115] Action `dorny/paths-filter` pinned to mutable ref `@v3`: `uses: dorny/paths-fi… .github/workflows/freeze.yml:27
HIGH MINED117 [MINED117] Workflow declares `permissions: write-all`: The job's GITHUB_TOKEN gets EVERY … engine/src/flutter/.github/workflows/en…:11
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… engine/src/flutter/.github/workflows/th…:34
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… engine/src/flutter/tools/fuchsia/with_e…:51
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… engine/src/flutter/testing/benchmark/di…:263
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… engine/src/flutter/testing/run_tests.py:1139
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … engine/src/flutter/ci/scan_deps.py:66
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… engine/src/flutter/impeller/renderer/ba…:163
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… dev/integration_tests/web_e2e_tests/tes…:227
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… dev/automated_tests/flutter_test/print_…:27
MED AIC004 Suspicious implementation file appears unreferenced engine/src/flutter/shell/platform/embed…:1
MED SEC005 [SEC005] Command Injection Risk: Unsafe shell execution or eval of user input. engine/src/flutter/ci/scan_deps.py:153
LOW COMP001 [COMP001] High cognitive complexity: Function `main` has cognitive complexity 11 (SonarSo… engine/src/flutter/impeller/tools/metal…:23
LOW COMP001 [COMP001] High cognitive complexity: Function `extract_deps` has cognitive complexity 8 (… engine/src/flutter/ci/scan_deps.py:54
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:139
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:138
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:137
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:11
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:6
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:5
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:83
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:78
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:77
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:75
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:5
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:71
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:70
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:5
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:40
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:27
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:10
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:94
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:93
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:179
LOW AIC003 Duplicated implementation block across source files dev/integration_tests/android_engine_te…:8
LOW AIC003 Duplicated implementation block across source files dev/devicelab/lib/tasks/web_dev_mode_te…:132
LOW AIC003 Duplicated implementation block across source files dev/devicelab/lib/tasks/native_assets_t…:130
LOW AIC003 Duplicated implementation block across source files dev/devicelab/lib/tasks/android_lifecyc…:109
LOW AIC003 Duplicated implementation block across source files dev/bots/unpublish_package.dart:346
LOW AIC003 Duplicated implementation block across source files dev/bots/unpublish_package.dart:69
LOW AIC003 Duplicated implementation block across source files dev/bots/suite_runners/run_android_prev…:8
LOW AIC003 Duplicated implementation block across source files dev/bots/check_tests_cross_imports.dart:18
LOW AIC003 Duplicated implementation block across source files dev/automated_tests/integration_test/ex…:1
LOW AIC003 Duplicated implementation block across source files dev/a11y_assessments/lib/use_cases/card…:10
LOW WEB005 robots.txt does not advertise a sitemap .agents/skills/analyze-github-flake/SKI…
LOW AIC005 Duplicate top-level symbol appears in a patch-style file engine/src/flutter/lib/ui/semantics/sem…:1
LOW AIC002 Source file name looks like an AI patch artifact engine/src/flutter/shell/platform/embed…:1
LOW AIC002 Source file name looks like an AI patch artifact engine/src/flutter/lib/ui/semantics/sem…:1
LOW AIC002 Source file name looks like an AI patch artifact dev/bots/prepare_package/transactional_…:1
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… engine/src/flutter/impeller/tools/xxd.py:15
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… engine/src/flutter/impeller/tools/metal…:18
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … engine/src/flutter/impeller/renderer/ba…:230
INFO MINED098 [MINED098] Global Scope Pollution: Attaching libraries/objects directly to the global win… dev/integration_tests/ios_host_app/Host…:47
INFO MINED098 [MINED098] Global Scope Pollution: Attaching libraries/objects directly to the global win… dev/integration_tests/ios_add2app_life_…:37
INFO MINED048 [MINED048] Php Error Suppress: @function() suppresses errors silently. Hides real issues. dev/integration_tests/ios_add2app_life_…:18
INFO MINED048 [MINED048] Php Error Suppress: @function() suppresses errors silently. Hides real issues. dev/integration_tests/external_textures…:9
INFO MINED048 [MINED048] Php Error Suppress: @function() suppresses errors silently. Hides real issues. dev/integration_tests/channels/ios/Runn…:9
INFO MINED086 [MINED086] Kotlin Runtime Exception: Throwing bare RuntimeException loses type info. dev/integration_tests/android_hardware_…:89
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… dev/integration_tests/data_asset_app/wi…:70
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… dev/benchmarks/complex_layout/windows/r…:52
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… dev/a11y_assessments/windows/runner/win…:70
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … dev/integration_tests/ios_platform_view…:21
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … dev/docs/assets/snippets.js:91
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .github/scripts/no-response.js:89
INFO MINED046 [MINED046] Dart Print: print() in Flutter goes to console. Use debugPrint / logger. dev/automated_tests/test_smoke_test/fai…:27
INFO MINED046 [MINED046] Dart Print: print() in Flutter goes to console. Use debugPrint / logger. dev/automated_tests/test_smoke_test/cra…:15
INFO MINED046 [MINED046] Dart Print: print() in Flutter goes to console. Use debugPrint / logger. .agents/skills/upgrade-browser/scripts/…:74
Reset to top 5 93 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `flutter/flutter`

**Score: 76/100 (B+)**  ·  114 findings  ·  scanned 2026-06-05 04:37 UTC  ·  1,257,419 LOC

| Severity | Count |
|---|---|
| CRITICAL | 6 |
| HIGH | 23 |
| MEDIUM | 9 |
| LOW | 37 |

📊 [Full filterable report](https://repobility.com/scan/c3e85ec5-2e36-4677-a1e8-7af65f6cee90/)  ·  ![scorecard](https://repobility.com/scan/c3e85ec5-2e36-4677-a1e8-7af65f6cee90/report.png?v=1780634240-s2)

### Top findings

1. **CRITICAL** `MINED107` — Missing import: `stat` used but not imported
   `engine/src/flutter/tools/fuchsia/toolchain/copy.py:40` · ✓ Repobility
2. **CRITICAL** `MINED022` — C Strcpy
   `engine/src/flutter/impeller/renderer/shader_key.cc:16` · CWE-120 · ✓ Repobility
3. **CRITICAL** `MINED005` — Lua Loadstring
   `engine/src/flutter/impeller/renderer/backend/metal/allocator_mtl.mm:57` · CWE-95 · ✓ Repobility
4. **CRITICAL** `SEC084` — JS: require() with non-literal
   `dev/integration_tests/display_cutout_rotation/android/settings.gradle.kts:15`
5. **CRITICAL** `SEC084` — JS: require() with non-literal
   `dev/integration_tests/deferred_components_test/android/settings.gradle.kts:11`

---

**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/c3e85ec5-2e36-4677-a1e8-7af65f6cee90/_
Megaproject â high spam risk
Could not determine 'flutter/flutter' 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.