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

Push this scan report to electron/electron

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

Compose service mounts the Docker socket

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. shell/browser/ui/devtools_ui_theme_data…:203
CRIT MINED022 [MINED022] C Strcpy: strcpy/strcat dont bounds-check; use strncpy or snprintf. shell/browser/ui/devtools_ui_bundle_dat…:32
CRIT MINED022 [MINED022] C Strcpy: strcpy/strcat dont bounds-check; use strncpy or snprintf. shell/browser/relauncher_win.cc:57
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… script/yarn.js:6
CRIT DKC008 Compose service mounts the Docker socket .devcontainer/docker-compose.yml:3
CRIT MINED116 [MINED116] Workflow uses `secrets.CHROMIUM_GIT_COOKIE_WINDOWS_STRING` on a `pull_request`… .github/workflows/build.yml:188
CRIT MINED116 [MINED116] Workflow uses `secrets.CHROMIUM_GIT_COOKIE` on a `pull_request` trigger: This … .github/workflows/build.yml:187
CRIT MINED116 [MINED116] Workflow uses `secrets.PATCH_UP_APP_CREDS` on a `pull_request` trigger: This w… .github/workflows/build.yml:159
CRIT MINED116 [MINED116] Workflow uses `secrets.DD_API_KEY` on a `pull_request` trigger: This workflow … .github/workflows/build.yml:157
CRIT MINED116 [MINED116] Workflow uses `secrets.CHROMIUM_GIT_COOKIE` on a `pull_request` trigger: This … .github/workflows/build.yml:156
CRIT MINED116 [MINED116] Workflow uses `secrets.CHROMIUM_GIT_COOKIE` on a `pull_request` trigger: This … .github/workflows/build.yml:126
CRIT MINED116 [MINED116] Workflow uses `secrets.CHROMIUM_GIT_COOKIE` on a `pull_request` trigger: This … .github/workflows/apply-patches.yml:58
HIGH MINED108 [MINED108] `self.get_for_current_platform` used but never assigned in __init__: Method `r… script/lib/native_tests.py:121
HIGH MINED108 [MINED108] `self.run` used but never assigned in __init__: Method `run_all` of class `Tes… script/lib/native_tests.py:121
HIGH MINED108 [MINED108] `self.__run` used but never assigned in __init__: Method `run` of class `Tests… script/lib/native_tests.py:115
HIGH MINED108 [MINED108] `self.__platform_supports` used but never assigned in __init__: Method `run` o… script/lib/native_tests.py:109
HIGH MINED108 [MINED108] `self.__platform_supports` used but never assigned in __init__: Method `get_fo… script/lib/native_tests.py:93
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … shell/browser/media/media_device_id_sal…:34
HIGH MINED011 [MINED011] Scala Get On Option: Option.get throws NoSuchElementException on None. Use get… shell/browser/osr/osr_host_display_clie…:18
HIGH MINED011 [MINED011] Scala Get On Option: Option.get throws NoSuchElementException on None. Use get… shell/browser/notifications/mac/cocoa_n…:170
HIGH MINED011 [MINED011] Scala Get On Option: Option.get throws NoSuchElementException on None. Use get… shell/browser/api/electron_api_web_cont…:50
HIGH MINED006 [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and Syste… script/verify-mksnapshot.py:82
HIGH MINED006 [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and Syste… script/verify-ffmpeg.py:57
HIGH MINED006 [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and Syste… script/verify-chromedriver.py:29
HIGH MINED034 [MINED034] Python Subprocess Shell True: subprocess(..., shell=True) enables command inje… script/run-clang-format.py:287
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… script/release/prepare-release.ts:36
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… script/patches-mtime-cache.py:138
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… script/gen-libc++-filenames.js:38
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). script/release/uploaders/upload-node-ch…:27
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). script/codesign/gen-trust.ts:11
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… docs/fiddles/native-ui/dialogs/save-dia…:5
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… docs/fiddles/native-ui/dialogs/open-fil…:5
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… docs/fiddles/features/web-serial/render…:9
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… docs/fiddles/features/navigation-histor…:34
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… default_app/main.ts:109
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… default_app/default_app.ts:116
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… script/release/uploaders/upload-index-j…:35
HIGH CORE_NO_TESTS No test files found
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… script/release/uploaders/upload-node-ch…:78
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… script/release/uploaders/upload-symbols…:84
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… script/release/uploaders/upload-index-j…:45
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… script/zip_manifests/check-zip-manifest…:34
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… script/zip_manifests/check-zip-manifest…:27
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… script/lib/native_tests.py:262
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… script/patches-mtime-cache.py:163
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… script/patches-mtime-cache.py:145
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… script/get-git-version.py:31
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… script/apply_all_patches.py:56
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… script/patches-mtime-cache.py:138
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … script/node/generate_node_headers.py:21
MED COMP001 [COMP001] High cognitive complexity: Function `main` has cognitive complexity 16 (SonarSo… script/patches-mtime-cache.py:84
MED WEB003 Public web service has no security.txt .well-known/security.txt
MED WEB012 Service worker is present without a web app manifest manifest.json
MED DKC005 Compose service adds dangerous Linux capabilities .devcontainer/docker-compose.yml:3
MED SEC005 [SEC005] Command Injection Risk: Unsafe shell execution or eval of user input. script/run-clang-format.py:287
LOW SEC124 [SEC124] TOCTOU file access (os.access then open): Check-then-use file pattern (access/ex… script/pgo/download-profiles.py:99
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… script/run-clang-format.py:158
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… script/generate-mas-config.py:11
LOW COMP001 [COMP001] High cognitive complexity: Function `set_mtimes` has cognitive complexity 8 (So… script/patches-mtime-cache.py:67
LOW COMP001 [COMP001] High cognitive complexity: Function `apply_config` has cognitive complexity 9 (… script/apply_all_patches.py:41
LOW AIC003 Duplicated implementation block across source files shell/browser/ui/inspectable_web_conten…:198
LOW AIC003 Duplicated implementation block across source files shell/browser/native_window_views.h:20
LOW AIC003 Duplicated implementation block across source files shell/browser/electron_browser_client.h:104
LOW AIC003 Duplicated implementation block across source files shell/browser/electron_api_sw_ipc_handl…:28
LOW AIC003 Duplicated implementation block across source files lib/sandboxed_renderer/init.ts:9
LOW WEB001 Public web app has no robots.txt robots.txt
LOW WEB002 Public web app has no sitemap sitemap.xml
LOW AIC007 Generated build artifact directory is present at repository root build:1
LOW WEB008 Public docs site has no llms.txt llms.txt
LOW WEB011 Public web app has no humans.txt humans.txt
INFO MINED048 [MINED048] Php Error Suppress: @function() suppresses errors silently. Hides real issues. shell/browser/api/electron_api_web_cont…:82
INFO MINED048 [MINED048] Php Error Suppress: @function() suppresses errors silently. Hides real issues. shell/browser/api/electron_api_power_mo…:33
INFO MINED048 [MINED048] Php Error Suppress: @function() suppresses errors silently. Hides real issues. shell/browser/api/electron_api_desktop_…:11
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… shell/browser/api/electron_api_download…:311
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… shell/browser/api/electron_api_data_pip…:170
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… shell/browser/api/electron_api_browser_…:320
INFO MINED064 [MINED064] Python Input Call: input() blocks for stdin. Inappropriate in services. script/patches-mtime-cache.py:171
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… script/run-clang-format.py:270
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… script/patches-mtime-cache.py:139
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. script/release/github-token.ts:76
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. script/release/get-url-hash.ts:36
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. default_app/main.ts:74
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. default_app/main.ts:202
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… script/actions/screencapture-nag-remove…:40
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… docs/fiddles/features/navigation-histor…:24
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… default_app/main.ts:330
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … shell/browser/api/electron_api_web_cont…:31
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … script/release/version-utils.ts:26
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … default_app/default_app.ts:108
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … docs/fiddles/features/keyboard-shortcut…:9
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … default_app/main.ts:68
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .github/actions/build-electron/download…:14
Reset to top 5 92 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

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

**Score: 78/100 (B-)**  ·  92 findings  ·  scanned 2026-06-05 05:10 UTC  ·  129,491 LOC

| Severity | Count |
|---|---|
| CRITICAL | 12 |
| HIGH | 26 |
| MEDIUM | 17 |
| LOW | 15 |

📊 [Full filterable report](https://repobility.com/scan/2a0b265b-a401-44a3-aadc-b28d2331293f/)  ·  ![scorecard](https://repobility.com/scan/2a0b265b-a401-44a3-aadc-b28d2331293f/report.png?v=1780636257-s2)

### Top findings

1. **CRITICAL** `MINED022` — C Strcpy
   `shell/browser/ui/devtools_ui_theme_data_source.cc:203` · CWE-120 · ✓ Repobility
2. **CRITICAL** `MINED022` — C Strcpy
   `shell/browser/ui/devtools_ui_bundle_data_source.cc:32` · CWE-120 · ✓ Repobility
3. **CRITICAL** `MINED022` — C Strcpy
   `shell/browser/relauncher_win.cc:57` · CWE-120 · ✓ Repobility
4. **CRITICAL** `SEC084` — JS: require() with non-literal
   `script/yarn.js:6`
5. **CRITICAL** `DKC008` — Compose service mounts the Docker socket
   `.devcontainer/docker-compose.yml:3`

---

**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/2a0b265b-a401-44a3-aadc-b28d2331293f/_
Already filed
This repo publishes a SECURITY.md policy and the scan contains 11 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 'electron/electron' 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.