← Back to scan
File as GitHub Issue repo: langgenius/dify

Push this scan report to langgenius/dify

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

`self._convert_user_input_form` used but never assigned in __init__

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: `email` used but not imported: The file uses `email.something(… api/controllers/console/auth/login.py:364
CRIT MINED107 [MINED107] Missing import: `email` used but not imported: The file uses `email.something(… api/controllers/console/auth/email_regi…:155
CRIT MINED107 [MINED107] Missing import: `email` used but not imported: The file uses `email.something(… api/controllers/console/workspace/membe…:85
CRIT MINED107 [MINED107] Missing import: `email` used but not imported: The file uses `email.something(… api/commands/account.py:28
HIGH MINED108 [MINED108] `self._convert_user_input_form` used but never assigned in __init__: Method `_… api/controllers/mcp/mcp.py:157
HIGH MINED108 [MINED108] `self._handle_mcp_request` used but never assigned in __init__: Method `_handl… api/controllers/mcp/mcp.py:135
HIGH MINED108 [MINED108] `self._handle_request` used but never assigned in __init__: Method `_process_m… api/controllers/mcp/mcp.py:112
HIGH MINED108 [MINED108] `self._handle_notification` used but never assigned in __init__: Method `_proc… api/controllers/mcp/mcp.py:110
HIGH MINED108 [MINED108] `self._process_mcp_message` used but never assigned in __init__: Method `post`… api/controllers/mcp/mcp.py:80
HIGH MINED108 [MINED108] `self._get_user_input_form` used but never assigned in __init__: Method `post`… api/controllers/mcp/mcp.py:77
HIGH MINED108 [MINED108] `self._validate_server_status` used but never assigned in __init__: Method `po… api/controllers/mcp/mcp.py:74
HIGH MINED108 [MINED108] `self._get_mcp_server_and_app` used but never assigned in __init__: Method `po… api/controllers/mcp/mcp.py:73
HIGH MINED108 [MINED108] `self._parse_mcp_request` used but never assigned in __init__: Method `post` o… api/controllers/mcp/mcp.py:69
HIGH MINED108 [MINED108] `self._delete_api_key` used but never assigned in __init__: Method `delete` of… api/controllers/console/apikey.py:259
HIGH MINED108 [MINED108] `self._create_api_key` used but never assigned in __init__: Method `post` of c… api/controllers/console/apikey.py:239
HIGH MINED108 [MINED108] `self._get_api_key_list` used but never assigned in __init__: Method `get` of … api/controllers/console/apikey.py:228
HIGH MINED108 [MINED108] `self._delete_api_key` used but never assigned in __init__: Method `delete` of… api/controllers/console/apikey.py:211
HIGH MINED108 [MINED108] `self._create_api_key` used but never assigned in __init__: Method `post` of c… api/controllers/console/apikey.py:191
HIGH MINED108 [MINED108] `self._get_api_key_list` used but never assigned in __init__: Method `get` of … api/controllers/console/apikey.py:180
HIGH MINED108 [MINED108] `self._delete_api_key` used but never assigned in __init__: Method `delete` of… api/controllers/console/apikey.py:133
HIGH MINED108 [MINED108] `self._create_api_key` used but never assigned in __init__: Method `post` of c… api/controllers/console/apikey.py:90
HIGH MINED108 [MINED108] `self._get_api_key_list` used but never assigned in __init__: Method `get` of … api/controllers/console/apikey.py:75
HIGH MINED108 [MINED108] `self._ensure_console_recipient_type` used but never assigned in __init__: Met… api/controllers/console/human_input_for…:118
HIGH MINED108 [MINED108] `self._ensure_console_access` used but never assigned in __init__: Method `pos… api/controllers/console/human_input_for…:117
HIGH MINED108 [MINED108] `self._ensure_console_access` used but never assigned in __init__: Method `get… api/controllers/console/human_input_for…:82
HIGH MINED108 [MINED108] `self._load` used but never assigned in __init__: Method `get` of class `AppDe… api/controllers/openapi/apps.py:100
HIGH MINED108 [MINED108] `self.enter` used but never assigned in __init__: Method `__enter__` of class … api/context/execution_context.py:115
HIGH MINED108 [MINED108] `self.settings_cls` used but never assigned in __init__: Method `__call__` of … api/configs/app_config.py:51
HIGH MINED108 [MINED108] `self.current_state` used but never assigned in __init__: Method `__call__` of… api/configs/app_config.py:34
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… api/controllers/trigger/trigger.py:17
HIGH SEC030 [SEC030] Open Redirect — user-controlled redirect target: Redirect target is taken direct… api/controllers/console/auth/oauth.py:203
HIGH SEC103 [SEC103] LDAP injection — non-constant search filter: User input concatenated into an LDA… api/controllers/common/helpers.py:69
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… api/configs/secret_key.py:25
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). api/controllers/inner_api/wraps.py:4
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). api/configs/remote_settings_sources/nac…:59
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). api/configs/remote_settings_sources/apo…:19
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… api/controllers/common/fields.py:164
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… api/configs/remote_settings_sources/apo…:27
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… api/configs/middleware/cache/redis_pubs…:92
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … api/controllers/common/schema.py:102
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … api/configs/remote_settings_sources/nac…:40
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … api/celery_healthcheck.py:14
HIGH COMP001 [COMP001] High cognitive complexity: Function `before_request` has cognitive complexity 2… api/app_factory.py:60
HIGH SEC020 [SEC020] Secret Printed to Logs: Debug or diagnostic code appears to print a credential-b… api/configs/remote_settings_sources/apo…:32
HIGH MINED112 [MINED112] FastAPI POST /setup has no auth: Handler `setup_system` is registered with rou… api/controllers/console/setup.py:72
HIGH MINED112 [MINED112] FastAPI POST /init has no auth: Handler `validate_init_password` is registered… api/controllers/console/init_validate.py:51
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… api/configs/remote_settings_sources/apo…:27
HIGH CORE_NO_TESTS No test files found
MED MINED109 [MINED109] Mutable default argument in `http_request` (dict): `def http_request(... = []/… api/configs/remote_settings_sources/apo…:24
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/vector.py:319
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/vector.py:127
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/vector.py:391
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/plugin.py:377
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/plugin.py:314
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/plugin.py:250
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/plugin.py:383
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/plugin.py:141
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/plugin.py:99
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/plugin.py:49
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/storage.py:680
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/storage.py:759
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/storage.py:711
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/storage.py:701
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/storage.py:665
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/storage.py:343
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/storage.py:319
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/storage.py:645
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/storage.py:306
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/storage.py:233
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/storage.py:209
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/storage.py:134
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/account.py:123
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/account.py:78
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/commands/account.py:36
MED CFG006 [CFG006] Missing .gitignore: No .gitignore file. Risk of committing secrets and build art…
MED SEC123 [SEC123] Production stack trace / debug output exposed: Debug mode left on in production … api/controllers/trigger/webhook.py:83
MED SEC014 [SEC014] SSL Verification Disabled: SSL certificate verification is disabled, allowing ma… api/configs/remote_settings_sources/apo…:14
MED SEC014 [SEC014] SSL Verification Disabled: SSL certificate verification is disabled, allowing ma… api/configs/middleware/cache/redis_conf…:46
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… api/configs/remote_settings_sources/bas…:11
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… api/configs/app_config.py:29
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED WEB003 Public web service has no security.txt .well-known/security.txt
MED WEB015 Public web app has no Content Security Policy index.html
LOW COMP001 [COMP001] High cognitive complexity: Function `_normalize_dify_agent_error` has cognitive… api/clients/agent_backend/client.py:108
LOW COMP001 [COMP001] High cognitive complexity: Function `initialize_extensions` has cognitive compl… api/app_factory.py:141
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/dataset/seg…:144
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/dataset/rag…:194
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/dataset/err…:1
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/dataset/doc…:224
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/app/workflo…:91
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/app/workflo…:246
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/app/workflo…:245
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/app/file_pr…:119
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/app/error.py:44
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/app/complet…:208
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/app/complet…:126
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/app/complet…:118
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/app/audio.py:66
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/app/audio.py:54
LOW AIC003 Duplicated implementation block across source files api/controllers/service_api/app/app.py:36
LOW AIC003 Duplicated implementation block across source files api/controllers/openapi/app_run.py:55
LOW AIC003 Duplicated implementation block across source files api/controllers/console/explore/workflo…:56
LOW AIC003 Duplicated implementation block across source files api/controllers/console/explore/workflo…:55
LOW AIC003 Duplicated implementation block across source files api/controllers/console/explore/trial.py:280
LOW AIC003 Duplicated implementation block across source files api/controllers/console/explore/trial.py:249
LOW AIC003 Duplicated implementation block across source files api/controllers/console/explore/trial.py:214
LOW AIC003 Duplicated implementation block across source files api/controllers/console/explore/trial.py:159
LOW AIC003 Duplicated implementation block across source files api/controllers/console/explore/message…:136
LOW AIC003 Duplicated implementation block across source files api/controllers/console/explore/complet…:89
LOW AIC003 Duplicated implementation block across source files api/controllers/console/explore/audio.py:56
LOW AIC003 Duplicated implementation block across source files api/controllers/console/explore/audio.py:44
LOW AIC003 Duplicated implementation block across source files api/controllers/console/datasets/rag_pi…:47
LOW AUC005 [AUC005] No authorization-focused tests detected: No test files with common authorization…
LOW WEB001 Public web app has no robots.txt robots.txt
LOW WEB002 Public web app has no sitemap sitemap.xml
LOW WEB011 Public web app has no humans.txt humans.txt
INFO MINED076 [MINED076] Catch And Reraise Noop: except X: raise X — adds no value, hides traceback if … api/controllers/files/tool_files.py:67
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. api/contexts/wrapper.py:4
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. api/configs/extra/__init__.py:7
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… api/configs/observability/__init__.py:8
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… api/configs/extra/__init__.py:14
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… api/configs/app_config.py:30
INFO MINED062 [MINED062] Python Dataclass No Fields: @dataclass over an empty class — unfinished model. api/clients/agent_backend/workspace_fil…:52
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… api/configs/remote_settings_sources/nac…:33
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… api/configs/middleware/vdb/baidu_vector…:11
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… api/app.py:27
Reset to top 5 126 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `langgenius/dify`

**Score: 76/100 (C+)**  ·  126 findings  ·  scanned 2026-06-05 04:47 UTC  ·  55,104 LOC

| Severity | Count |
|---|---|
| CRITICAL | 4 |
| HIGH | 44 |
| MEDIUM | 35 |
| LOW | 33 |

📊 [Full filterable report](https://repobility.com/scan/10335fbd-0c15-4319-9700-6dfe3d09557a/)  ·  ![scorecard](https://repobility.com/scan/10335fbd-0c15-4319-9700-6dfe3d09557a/report.png?v=1780634830-s2)

### Top findings

1. **CRITICAL** `MINED107` — Missing import: `email` used but not imported
   `api/controllers/console/auth/login.py:364` · ✓ Repobility
2. **CRITICAL** `MINED107` — Missing import: `email` used but not imported
   `api/controllers/console/auth/email_register.py:155` · ✓ Repobility
3. **CRITICAL** `MINED107` — Missing import: `email` used but not imported
   `api/controllers/console/workspace/members.py:85` · ✓ Repobility
4. **CRITICAL** `MINED107` — Missing import: `email` used but not imported
   `api/commands/account.py:28` · ✓ Repobility
5. **HIGH** `MINED108` — `self._convert_user_input_form` used but never assigned in __init__
   `api/controllers/mcp/mcp.py:157` · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/10335fbd-0c15-4319-9700-6dfe3d09557a/_
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 'langgenius/dify' 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.