← Back to scan
File as GitHub Issue repo: pallets/flask

Push this scan report to pallets/flask

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.endpoint` 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
HIGH MINED108 `self.from_pyfile` used but never assigned in __init__ src/flask/config.py:124
HIGH MINED108 `self.files` used but never assigned in __init__ src/flask/wrappers.py:206
HIGH MINED108 `self.mimetype` used but never assigned in __init__ src/flask/wrappers.py:205
HIGH MINED108 `self.blueprint` used but never assigned in __init__ src/flask/wrappers.py:190
HIGH MINED108 `self.endpoint` used but never assigned in __init__ src/flask/wrappers.py:173
HIGH MINED108 `self._copy_environ` used but never assigned in __init__ src/flask/testing.py:220
HIGH MINED108 `self._copy_environ` used but never assigned in __init__ src/flask/testing.py:225
HIGH MINED108 `self._copy_environ` used but never assigned in __init__ src/flask/testing.py:216
HIGH MINED108 `self._request_from_builder_args` used but never assigned in __init__ src/flask/testing.py:228
HIGH MINED108 `self._copy_environ` used but never assigned in __init__ src/flask/testing.py:196
HIGH MINED108 `self._update_cookies_from_response` used but never assigned in __init__ src/flask/testing.py:179
HIGH MINED108 `self._add_cookies_to_wsgi` used but never assigned in __init__ src/flask/testing.py:162
HIGH MINED108 `self._cookies` used but never assigned in __init__ src/flask/testing.py:155
HIGH MINED108 `self.run` used but never assigned in __init__ examples/celery/src/task_app/__init__.py:33
HIGH MINED106 Phantom test coverage: test_apps tests/conftest.py:72
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). src/flask/sessions.py:277
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… src/flask/config.py:209
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… src/flask/cli.py:1036
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … src/flask/config.py:316
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … src/flask/app.py:495
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … examples/tutorial/flaskr/__init__.py:21
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… examples/javascript/js_example/views.py:14
HIGH MINED112 FastAPI POST /process has no auth examples/celery/src/task_app/views.py:36
HIGH MINED112 FastAPI POST /block has no auth examples/celery/src/task_app/views.py:30
HIGH MINED112 FastAPI POST /add has no auth examples/celery/src/task_app/views.py:22
MED MINED111 Bare except continues silently src/flask/cli.py:650
MED MINED111 Bare except continues silently src/flask/cli.py:956
MED MINED111 Bare except continues silently src/flask/app.py:1598
MED MINED111 Bare except continues silently src/flask/app.py:1017
MED SEC015 [SEC015] Insecure Randomness for Security: Weak PRNG used in security-sensitive context. … src/flask/sessions.py:150
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… src/flask/sansio/scaffold.py:220
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… src/flask/sansio/app.py:476
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … src/flask/config.py:209
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … src/flask/cli.py:1023
MED SEC123 [SEC123] Production stack trace / debug output exposed: Debug mode left on in production … src/flask/config.py:65
MED SEC123 [SEC123] Production stack trace / debug output exposed: Debug mode left on in production … src/flask/app.py:663
MED COMP001 [COMP001] High cognitive complexity: Function `find_app_by_string` has cognitive complexi… src/flask/cli.py:120
MED COMP001 [COMP001] High cognitive complexity: Function `find_best_app` has cognitive complexity 18… src/flask/cli.py:41
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 AUC002 [AUC002] Low visible authorization coverage in route inventory: Only 20.0% of discovered …
LOW COMP001 [COMP001] High cognitive complexity: Function `register` has cognitive complexity 10 (Son… examples/tutorial/flaskr/auth.py:47
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. src/flask/sessions.py:112
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… src/flask/config.py:331
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… src/flask/ctx.py:186
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… src/flask/config.py:165
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… src/flask/cli.py:1037
INFO MINED069 [MINED069] Debug True Prod: Django/Flask DEBUG=True or app.debug=True in non-test files. src/flask/config.py:65
INFO MINED069 [MINED069] Debug True Prod: Django/Flask DEBUG=True or app.debug=True in non-test files. src/flask/app.py:663
INFO MINED055 [MINED055] Npm Install No Lockfile: Production image runs npm install (resolves new versi… .devcontainer/on-create-command.sh:5
Reset to top 5 50 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `pallets/flask`

**Score: 80/100 (A-)**  ·  88 findings  ·  scanned 2026-05-19 19:33 UTC  ·  18,337 LOC

| Severity | Count |
|---|---|
| CRITICAL | 0 |
| HIGH | 25 |
| MEDIUM | 16 |
| LOW | 1 |

📊 [Full filterable report](https://repobility.com/scan/236d5297-cc82-4271-839f-d82abeafbe5c/)  ·  ![scorecard](https://repobility.com/scan/236d5297-cc82-4271-839f-d82abeafbe5c/report.png?v=1779219233-s2)

### Top findings

1. **HIGH** `MINED108` — `self.from_pyfile` used but never assigned in __init__
   `src/flask/config.py:124` · ✓ Repobility
2. **HIGH** `MINED108` — `self.files` used but never assigned in __init__
   `src/flask/wrappers.py:206` · ✓ Repobility
3. **HIGH** `MINED108` — `self.mimetype` used but never assigned in __init__
   `src/flask/wrappers.py:205` · ✓ Repobility
4. **HIGH** `MINED108` — `self.blueprint` used but never assigned in __init__
   `src/flask/wrappers.py:190` · ✓ Repobility
5. **HIGH** `MINED108` — `self.endpoint` used but never assigned in __init__
   `src/flask/wrappers.py:173` · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/236d5297-cc82-4271-839f-d82abeafbe5c/_
Already filed
'pallets' is on the known-megaproject org list. These projects use auto-triage bots and established security disclosure channels. Unsolicited automated issues from Repobility would be perceived as AI-generated spam. For security findings, follow the project's SECURITY.md policy. For non-security findings, open a focused PR or community discussion instead.
Megaproject â high spam risk
Could not determine 'pallets/flask' 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.
Already filed
47/92 findings (51%) on this scan are already flagged as test-file, won't-fix, or suppressed. The scan is too noisy to file as a single issue. Curate down to specific actionable findings, or address the FP source first.

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.