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.

pallets/flask

https://github.com/pallets/flask.git · scanned 2026-05-16 15:07 UTC (1 day, 3 hours ago) · 10 languages

74 findings (3 legacy + 71 scanner) 95th percentile · Python · small (2-20K LoC) Scanner says 68 (higher by 20)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 1 day, 8 hours ago · v1 · 74 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
Severity distribution — click a segment to filter
Active filters: source: scanner × excluding tests × Reset all
Severity: Critical 0 High 3 Medium 6 Low 61 Source: Legacy 3 9-layer 71 Crowd 0 Layer: Quality 26 Security 7 Software 25 Frontend 1 Cicd 1 Api 14
Scan summary Repository scanned at 67.6/100 with 88.9% coverage. It contains 1513 nodes across 14 cross-layer flows, written primarily in mixed languages. Engine surfaced 71 findings — concentrated in software (25), quality (25), api (14). Risk profile is high: 0 critical, 3 high, 3 medium. Recommended next step: open the software layer findings first — that's where the highest-impact wins live.

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

high 9-layer security auth conf 1.00 Flask mutation route `<anonymous>` without `@login_required` — src/flask/sansio/app.py:626
Flask route declares POST/PUT/DELETE/PATCH methods without an auth decorator. Add `@login_required` (Flask-Login) or equivalent.
src/flask/sansio/app.py:626 authowaspauth.flask.unauth_route
high 9-layer security owasp conf 1.00 Insecure pattern 'eval_used' in src/flask/cli.py:1023
Found a known-risky pattern (eval_used). Review and replace if possible.
src/flask/cli.py:1023 owaspeval_used
high 9-layer security owasp conf 1.00 Insecure pattern 'exec_used' in src/flask/config.py:209
Found a known-risky pattern (exec_used). Review and replace if possible.
src/flask/config.py:209 owaspexec_used
medium 9-layer security auth conf 1.00 Django CBV `MethodView` lacks `LoginRequiredMixin` — src/flask/views.py:138
Class-based view defines mutating methods (post/put/delete) without inheriting `LoginRequiredMixin`. If auth is enforced via `dispatch()` override or middleware, dismiss this finding.
src/flask/views.py:138 authauth.django.unauth_view
medium 9-layer cicd supply-chain conf 1.00 GitHub Actions workflow grants broad write permissions
CI tokens with write permissions increase blast radius when an action, dependency, or PR workflow is compromised. Prefer job-level least-privilege permissions.
.github/workflows/publish.yaml supply-chaingithub-actionsleast-privilege
medium 9-layer 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.
coverageauth
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: examples/celery/make_celery.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: src/flask/__main__.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: src/flask/signals.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: src/flask/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: tests/test_apps/cliapp/app.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: tests/test_apps/cliapp/importerrorapp.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: tests/test_apps/cliapp/inner1/inner2/flask.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: tests/test_apps/cliapp/multiapp.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: tests/test_apps/helloworld/wsgi.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: examples/tutorial/flaskr/auth.py:login_required, examples/tutorial/flaskr/auth.py:login 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/wrappers.py:max_content_length, src/flask/wrappers.py:max_content_length 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/wrappers.py:max_form_memory_size, src/flask/wrappers.py:max_form_memory_size 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/wrappers.py:max_form_parts, src/flask/wrappers.py:max_form_parts 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/views.py:dispatch_request, src/flask/views.py:dispatch_request 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/views.py:view, src/flask/views.py:view 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/ctx.py:pop, src/flask/ctx.py:pop 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/ctx.py:copy_current_request_context, src/flask/ctx.py:copy 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/ctx.py:has_request_context, src/flask/ctx.py:has_request 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/app.py:wrapper, src/flask/app.py:wrapper 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/app.py:get_send_file_max_age, src/flask/blueprints.py:get_send_file_max_age 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/app.py:send_static_file, src/flask/blueprints.py:send_static_file 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/cli.py:decorator, src/flask/cli.py:decorator 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/cli.py:convert, src/flask/cli.py:convert 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/sessions.py:permanent, src/flask/sessions.py:permanent 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/sessions.py:open_session, src/flask/sessions.py:open_session 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/sessions.py:save_session, src/flask/sessions.py:save_session 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/flask/json/__init__.py:dumps, src/flask/json/__init__.py:dump 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: src/flask/cli.py:locate_app, src/flask/cli.py:locate_app, src/flask/cli.py:locate_app 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.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: src/flask/helpers.py:stream_with_context, src/flask/helpers.py:stream_with_context, src/flask/helpers.py:stream_with_context This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidat…
integrityduplicatedry
low 9-layer software dead-code conf 1.00 Possibly dead Python function: close_db
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
examples/tutorial/flaskr/db.py:23 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: from_blueprint
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flask/sansio/blueprints.py:664 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: github_link
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/conf.py:72 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: has_app_context
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flask/ctx.py:235 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: login_required
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
examples/tutorial/flaskr/auth.py:19 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: open_instance_resource
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flask/app.py:447 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: register_template_filter
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flask/sansio/blueprints.py:492 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: register_template_global
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flask/sansio/blueprints.py:608 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: register_template_test
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flask/sansio/blueprints.py:550 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: select_jinja_autoescape
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flask/sansio/app.py:533 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: setup
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/conf.py:100 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: setupmethod
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flask/sansio/scaffold.py:42 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: wrapper
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flask/ctx.py:201 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: wrapper
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flask/app.py:98 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: wrapper
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flask/sansio/blueprints.py:240 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: wrapper_func
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flask/sansio/scaffold.py:45 dead-code
low 9-layer api wiring conf 1.00 Unused endpoint: ANY /
`examples/celery/src/task_app/__init__.py` declares `ANY /` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
wiringunused-endpoint
low 9-layer api wiring conf 1.00 Unused endpoint: ANY /<any(xhr, jquery, fetch):js>
`examples/javascript/js_example/views.py` declares `ANY /<any(xhr, jquery, fetch):js>` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who cons…
wiringunused-endpoint
low 9-layer api wiring conf 1.00 Unused endpoint: ANY /<int:id>/delete
`examples/tutorial/flaskr/blog.py` declares `ANY /<int:id>/delete` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
wiringunused-endpoint
low 9-layer api wiring conf 1.00 Unused endpoint: ANY /<int:id>/update
`examples/tutorial/flaskr/blog.py` declares `ANY /<int:id>/update` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
wiringunused-endpoint
low 9-layer api wiring conf 1.00 Unused endpoint: ANY /add
`examples/javascript/js_example/views.py` declares `ANY /add` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
wiringunused-endpoint
low 9-layer api wiring conf 1.00 Unused endpoint: ANY /create
`examples/tutorial/flaskr/blog.py` declares `ANY /create` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
wiringunused-endpoint
low 9-layer api wiring conf 1.00 Unused endpoint: ANY /hello
`examples/tutorial/flaskr/__init__.py` declares `ANY /hello` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
wiringunused-endpoint
low 9-layer api wiring conf 1.00 Unused endpoint: ANY /login
`examples/tutorial/flaskr/auth.py` declares `ANY /login` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
wiringunused-endpoint
low 9-layer api wiring conf 1.00 Unused endpoint: ANY /logout
`examples/tutorial/flaskr/auth.py` declares `ANY /logout` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
wiringunused-endpoint
low 9-layer api wiring conf 1.00 Unused endpoint: ANY /register
`examples/tutorial/flaskr/auth.py` declares `ANY /register` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
wiringunused-endpoint
low 9-layer api wiring conf 1.00 Unused endpoint: GET /result/<id>
`examples/celery/src/task_app/views.py` declares `GET /result/<id>` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
wiringunused-endpoint
low 9-layer api wiring conf 1.00 Unused endpoint: POST /add
`examples/celery/src/task_app/views.py` declares `POST /add` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
wiringunused-endpoint
low 9-layer api wiring conf 1.00 Unused endpoint: POST /block
`examples/celery/src/task_app/views.py` declares `POST /block` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
wiringunused-endpoint
low 9-layer api wiring conf 1.00 Unused endpoint: POST /process
`examples/celery/src/task_app/views.py` declares `POST /process` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
wiringunused-endpoint
low 9-layer quality complexity conf 1.00 Very large file: src/flask/app.py (1625 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: tests/test_basic.py (1970 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
info 9-layer quality integrity conf 1.00 Commented-code block (5 lines) in src/flask/app.py:346
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (5 lines) in src/flask/views.py:124
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (6 lines) in src/flask/typing.py:73
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer frontend coverage conf 1.00 No frontend routes/components detected
No React/Vue/Next routes were found. This is fine for backend-only repos.
coverage
{# ── 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/6d775c59-9374-4383-9b10-add804ee2792/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/6d775c59-9374-4383-9b10-add804ee2792/

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.