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.
95 of your 119 findings came from Repobility's proprietary detections. ✓ Repobility tags below mark them.

Scan timing: clone 2.52s · analysis 3.58s · 0.9 MB · GitHub API rate-limit (preflight)

TurboGears/tg2

https://github.com/TurboGears/tg2 · scanned 2026-06-05 22:31 UTC (4 days, 8 hours ago) · 10 languages

185 raw signals (113 security + 72 graph) 88th percentile · Python · medium (20-100K LoC) System graph score 91 (lower by 8)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 4 days, 8 hours ago · v2 · 83 actionable findings from 2 signal sources. 65 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Score breakdown â 2026-05-18-v5
Component Sub-score Weight Contribution
structure_score 75.0 0.15 11.25
security_score 97.3 0.25 24.32
testing_score 87.0 0.20 17.40
documentation_score 73.0 0.15 10.95
practices_score 78.0 0.15 11.70
code_quality 76.7 0.10 7.67
Overall 1.00 83.3
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Scan summary Quality grade A- (83/100). Dimensions: security 97, maintainability 75. 113 findings (10 security). 25,022 lines analyzed.

Showing 30 of 83 actionable findings. 148 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

critical Security checks quality Quality conf 1.00 ✓ Repobility [MINED030] Python Pickle Loads: pickle.loads() can execute arbitrary code via __reduce__.
Review and fix per the pattern semantics. See CWE-502 / for context.
tg/request_local.py:122
critical Security checks quality Quality conf 1.00 [SEC081] Python: pickle.loads / marshal.loads on untrusted data: pickle.load(s) and marshal.load(s) execute arbitrary code on untrusted input. Ported from dlint DUO103 / DUO120 (BSD-3).
Use json, msgpack, or protobuf for untrusted data. If pickle is required, sign the payload with HMAC.
tg/request_local.py:122
high Security checks quality Quality conf 1.00 ✓ Repobility Missing import: `mimetypes` used but not imported
The file uses `mimetypes.something(...)` but never imports `mimetypes`. This raises NameError at runtime the first time the line executes.
tg/controllers/dispatcher.py:77
high Security checks quality Quality conf 1.00 ✓ Repobility 25 occurrences `self.default_status` used but never assigned in __init__
Method `configure` of class `TGFlash` reads `self.default_status`, but no assignment to it exists in __init__ (and no class-level fallback). This raises AttributeError the first time the method runs against an instance.
2 files, 25 locations
tg/flash.py:107, 108, 109, 110, 111, 112, 119, 120, +5 more (13 hits)
tg/predicates.py:80, 94, 100, 137, 163, 195, 202, 227, +4 more (12 hits)
medium Security checks security auth conf 0.92 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks but does not define .repobility/access.yml or equivalent authorization documentation.
The repository uses web/API frameworks but does not define .repobility/access.yml or equivalent authorization documentation.
low Security checks quality Error handling conf 1.00 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even in cleanup code, log at DEBUG level.
Log the error: `except Exception: logger.debug('cleanup failed', exc_info=True)`. Or handle specific exception types.
tg/jsonify.py:151
low Security checks security Deserialization conf 1.00 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code.
Use yaml.safe_load() instead of yaml.load(). Avoid pickle for untrusted data.
tg/request_local.py:122
low Security checks quality Error handling conf 0.55 ✓ Repobility 7 occurrences Broad exception handler needs review
This handler catches Exception/BaseException. It is actionable when it swallows errors without logging, re-raising, or returning a structured error. Handlers that intentionally convert exceptions into typed error results should not be treated as high risk.
5 files, 7 locations
tg/decorators/decoration.py:51, 232 (2 hits)
tg/decorators/decorators.py:310, 516 (2 hits)
tg/appwrappers/errorpage.py:75
tg/i18n.py:262
tg/renderers/mako.py:76
Error handlingquality
medium Security checks quality Quality conf 0.78 Public web service has no security.txt
security.txt gives researchers and customers a safe disclosure channel. Public web apps and APIs should publish it under /.well-known/security.txt.
.well-known/security.txt
medium System graph security Coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). Either auth lives in custom code, in a separate service, or is missing.
auth
low Security checks quality Quality conf 0.60 Duplicated implementation block across source files
Duplicate implementation blocks are maintenance debt. Keep them visible, but they are not a high-severity defect unless the duplicated logic is security-sensitive or drifting.
tg/decorators/decorators.py:582 duplicationquality
low Security checks quality Quality conf 0.60 Duplicated implementation block across source files
Duplicate implementation blocks are maintenance debt. Keep them visible, but they are not a high-severity defect unless the duplicated logic is security-sensitive or drifting.
tg/configurator/components/slow_requests.py:54 duplicationquality
low System graph software Dead code candidate conf 1.00 File has no detected symbols: setup.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/test_stack/lib/base.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: tests/test_stack/lib/helpers.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph quality Integrity conf 1.00 12 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: tg/i18n.py:add_fallback, tg/i18n.py:add_fallback This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
12 occurrences
repo-level (12 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: tg/request_local.py:content_type, tg/request_local.py:content_type, tg/request_local.py:content_type This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they'r…
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 9 places
Functions with the same first-5-line body hash: tg/predicates.py:evaluate, tg/predicates.py:evaluate, tg/predicates.py:evaluate, tg/predicates.py:evaluate This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why …
duplicatesduplication
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `test_dedicated_controller_wrapper_old` in tests/test_configuration.py:1199
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph software Dead code conf 1.00 Possibly dead Python function: cached_call_controller
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tg/decorators/decorators.py:815
low System graph software Dead code conf 1.00 Possibly dead Python function: create_func
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tg/caching.py:126
low System graph software Dead code conf 1.00 Possibly dead Python function: dictify
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tg/util/ming.py:25
low System graph software Dead code conf 1.00 Possibly dead Python function: dictify
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tg/util/sqlalchemy.py:44
low System graph software Dead code conf 1.00 Possibly dead Python function: make_base_app
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tg/configuration/app_config.py:182
low System graph software Dead code conf 1.00 Possibly dead Python function: mongo_read_pref
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tg/configurator/components/ming.py:47
low System graph software Dead code conf 1.00 Possibly dead Python function: newfunc
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tg/util/lazystring.py:42
low System graph software Dead code conf 1.00 Possibly dead Python function: run_hook
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tg/decorators/decorators.py:431
low System graph software Dead code conf 1.00 Possibly dead Python function: turbogears_challenge_decider
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
tg/configuration/auth/setup.py:123
low System graph quality Integrity conf 1.00 Stub function `get_user` (body is just `pass`/`return`) — tg/configuration/auth/metadata.py:15
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Complexity conf 1.00 Very large file: tests/test_configuration.py (2187 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
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/53ad27bb-970d-40e5-8f80-52565cc5dc38/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/53ad27bb-970d-40e5-8f80-52565cc5dc38/

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.