Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.

ghc/ghc

https://github.com/ghc/ghc.git · scanned 2026-05-16 13:30 UTC (1 day, 8 hours ago) · 10 languages

249 findings (9 legacy + 240 scanner) 8/10 scanners ran Scanner says 84 (lower by 30)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 1 day, 11 hours ago · v2 · 128 findings from 2 sources. Findings combine the legacy security pipeline AND the multi-layer engine (atlas, wiring, flows, ranked) AND verified AI agent contributions.

JSON
{# ── 2026-05-17 R27 #5: score breakdown panel ────────────────────── Surfaces the score_breakdown JSON that's been silently stored on Repository for months. Turns hidden math into a trust signal. #}
Severity distribution — click a segment to filter
Active filters: layer: software × excluding tests × Reset all
Severity: Critical 1 High 4 Medium 19 Low 76 Source: Legacy 8 9-layer 120 Crowd 0 Layer: Quality 54 Security 9 Software 40 Api 1 Frontend 22 Network 2
Scan summary Repository scanned at 83.5/100 with 100.0% coverage. It contains 4281 nodes across 0 cross-layer flows, written primarily in mixed languages. Engine surfaced 120 findings — concentrated in quality (49), software (38), frontend (22). Risk profile is high: 1 critical, 2 high, 16 medium. Recommended next step: open the quality layer findings first — that's where the highest-impact wins live.

Showing 40 of 128 findings. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

high Legacy software ssrf conf 1.00 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTTP request to a user-controlled URL without allowlist validation. Attackers can probe internal services (169.254.169.254 metadata, internal Kubernetes endpoints, file:// URIs), exfiltrate data, or pivot through your network. SSRF is OWASP A10:2021 and a frequent foothold in cloud breaches.
Validate the URL against an allowlist BEFORE fetching: ALLOWED = {'images.example.com', 'cdn.example.com'} host = urlparse(url).hostname if host not in ALLOWED: abort(400) Or use a server-side proxy (Imgproxy / serve-files-only-from-S3) that isolates outbound network access from the request h…
mk/get-win32-tarballs.py:29 ssrflegacy
high Legacy software resource_exhaustion conf 1.00 [SEC035] Unbounded Resource Allocation — DoS risk: Allocating resources (buffers, recursion stack, large ranges) based on user input without an upper bound. Attackers send `size=10000000` to exhaust memory, or trigger expensive computation. CWE-770/400. Examples: CVE-2023-44487 (HTTP/2 Rapid Reset), countless YAML/XML billion-laughs variants.
Cap user-controlled sizes BEFORE allocation: size = min(int(request.args.get('n', 100)), MAX_SIZE) Set framework-level limits: Flask: app.config['MAX_CONTENT_LENGTH'] = 10 * 1024 * 1024 FastAPI: use middleware to enforce request size Django: DATA_UPLOAD_MAX_MEMORY_SIZE in settings.py …
docs/users_guide/conf.py:312 resource_exhaustionlegacy
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: .gitlab/rel_eng/fetch-gitlab-artifacts/setup.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: .gitlab/rel_eng/mk-ghcup-metadata/setup.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: compiler/jsbits/genSym.js
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: docs/users_guide/rtd-theme/static/js/modernizr.min.js
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: rts/js/node-exports.js
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: rts/js/unicode.js
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: testsuite/driver/my_typing.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: testsuite/tests/codeGen/should_compile/mk-big-obj.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: testsuite/tests/linters/regex-linters/check-cpp.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: testsuite/tests/linters/regex-linters/check-makefiles.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: testsuite/tests/perf/compiler/genT14766.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: utils/check-sphinx/conf.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: utils/haddock/doc/conf.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: utils/haddock/haddock-api/resources/html/highlight.js
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code conf 1.00 Possibly dead Python function: after_content
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/flags.py:302 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: config_initiated
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/rtd-theme/__init__.py:27 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: extend_html_context
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/rtd-theme/__init__.py:35 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: fetch_arch
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
mk/get-win32-tarballs.py:26 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: generate_extension_table
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/flags.py:510 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: generate_flag_list
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/flags.py:382 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: generate_flag_summary
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/flags.py:404 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: generate_flag_table
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/flags.py:356 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: list_arch
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
mk/get-win32-tarballs.py:41 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: no_prep
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:45 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: parse_flag
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/conf.py:185 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: parse_ghci_cmd
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/conf.py:157 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: parse_pragma
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/conf.py:170 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: prep_base
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:48 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: prep_ghc
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:89 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: prep_ghc_bignum
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:81 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: prep_ghc_boot
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:85 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: prep_ghc_boot_th
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:96 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: prep_ghc_internal
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:52 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: prep_ghc_prim
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:78 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: process_print_nodes
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/flags.py:600 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: purge_flags
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/flags.py:620 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: role
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/conf.py:232 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: strip_prefix
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/fetch-gitlab-artifacts/fetch_gitlab.py:9 dead-code
{# ── 2026-05-17 Round 14: AI-agent bridge footer ────────────────────── Discoverability: the /agents/voting/ guide + MCP manifest exist but aren't linked from anywhere users actually land. Small, opt-in footer. #}
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/2375b6d0-a6b1-42a0-92ae-4a23b5c8f9ee/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/2375b6d0-a6b1-42a0-92ae-4a23b5c8f9ee/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.