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

Scan timing: clone 20.75s · analysis 7.55s · 33.5 MB · GitHub preflight 1043ms

tiangolo/fastapi

https://github.com/tiangolo/fastapi.git · scanned 2026-05-19 15:32 UTC (2 weeks, 2 days ago) · 10 languages

675 findings (191 legacy + 484 scanner) 10/12 scanners ran 86th percentile · Python · large (100-500K LoC) Scanner says 70 (higher by 15)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 2 weeks, 2 days ago · v2 · 433 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
Score breakdown â 2026-05-18-v5
Component Sub-score Weight Contribution
structure_score 60.0 0.15 9.00
security_score 100.0 0.25 25.00
testing_score 100.0 0.20 20.00
documentation_score 75.0 0.15 11.25
practices_score 81.0 0.15 12.15
code_quality 80.0 0.10 8.00
Overall 1.00 85.4
security_score may be inflated — optional security scanners were skipped on this fast scan
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all

Bug-class explainers. Each card groups findings of the same shape — these are the patterns most likely to ship to prod and reappear in future scans unless you systematically fix the cause, not just the instance.

Fragile runtime 161 findings
What it is: Code that runs but breaks under predictable input — division by zero, missing keys, unbounded loops, off-by-one slicing.
Why it matters: Reaches production undetected because happy-path tests pass. First user with a weird input crashes the request.
How AI causes it: AI loves writing the happy path; doesn't probe edge cases unless explicitly asked.
Fix approach: Add property-based tests. Wrap external inputs with explicit validators. Use the framework's typed deserializer (Pydantic, attrs).
12 matching findings on this repo
  • medium [MINED109] Mutable default argument in `validate` (dict): `def validate(... = [… fastapi/_compat/v2.py:173
  • medium [MINED109] Mutable default argument in `read_items` (list): `def read_items(...… docs_src/query_params_str_validations/tutorial012…:9
  • medium [MINED109] Mutable default argument in `read_items` (list): `def read_items(...… docs_src/query_params_str_validations/tutorial013…:9
  • medium [MINED111] Bare except continues silently: Bare `except:` (or `except Exception… tests/test_ws_router.py:245
  • medium [MINED111] Bare except continues silently: Bare `except:` (or `except Exception… fastapi/concurrency.py:30
  • medium [MINED111] Bare except continues silently: Bare `except:` (or `except Exception… fastapi/encoders.py:346
  • medium [MINED111] Bare except continues silently: Bare `except:` (or `except Exception… fastapi/routing.py:270
  • medium Public web service has no security.txt .well-known/security.txt
  • medium Public web app has no Content Security Policy index.html
  • medium React interval is created without an explicit cleanup docs/en/docs/js/custom.js:139
  • medium [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: L… docs_src/security/tutorial002_py310.py:19
  • medium [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: L… docs_src/security/tutorial002_an_py310.py:21
View all fragile runtime findings →
Legacy markers 7 findings
What it is: TODO, FIXME, XXX, HACK comments. Often indicate a known-broken path the author meant to fix.
Why it matters: Each marker is an unfinished thought. Production code shouldn't ship with debt that's documented but not tracked.
How AI causes it: AI mirrors the style of the codebase, so existing TODOs propagate into new code.
Fix approach: Convert each into a ticket. Delete the comment when the ticket lands. Use a pre-commit hook to block new TODOs without an issue link.
7 matching findings on this repo
  • low Legacy-named symbol `test_upload_file_invalid_pydantic_v2` in tests/test_datast…
  • low Legacy-named symbol `test_discriminator_pydantic_v2` in tests/test_union_body_d…
  • low Legacy-named symbol `model_copy` in docs_src/body_updates/tutorial002_py310.py:…
  • low Legacy-named symbol `annotation_is_pydantic_v1` in fastapi/utils.py:14
  • low Legacy-named symbol `annotation_is_pydantic_v1` in fastapi/_compat/__init__.py:2
  • low Legacy-named symbol `annotation_is_pydantic_v1` in fastapi/_compat/shared.py:202
  • low Legacy-named symbol `typing_deprecated` in fastapi/openapi/models.py:14
View all legacy markers findings →
Commented-out code 6 findings
What it is: Lines of source that were intentionally disabled but never deleted.
Why it matters: Git already remembers history — commented code rots, becomes wrong, and adds noise to diffs.
How AI causes it: AI sometimes comments out broken code instead of fixing it. Reviewers approve out of inertia.
Fix approach: Delete. Trust `git log`. If you really need to remember, save it in a notes file under `docs/`.
6 matching findings on this repo
  • info Commented-code block (5 lines) in tests/test_schema_extra_examples.py:54
  • info Commented-code block (5 lines) in scripts/docs.py:170
  • info Commented-code block (19 lines) in fastapi/applications.py:1040
  • info Commented-code block (7 lines) in fastapi/routing.py:538
  • info Commented-code block (6 lines) in fastapi/concurrency.py:21
  • info Commented-code block (5 lines) in fastapi/_compat/v2.py:226
View all commented-out code findings →
Config drift 8 findings
What it is: Settings duplicated across env files, Docker compose, K8s, and code defaults, all with slightly different values.
Why it matters: Production behaviour depends on whichever copy your loader reads first. Subtle bugs in staging that don't reproduce in dev.
How AI causes it: AI writes new config from memory rather than reading the existing source.
Fix approach: Pick one source of truth (env vars + a settings module). Have every other place import from there. Lint for duplicates in CI.
8 matching findings on this repo
  • high FastAPI POST `create_item` without auth dependency — docs_src/path_operation_co… docs_src/path_operation_configuration/tutorial002…:15
  • high FastAPI POST `create_item` without auth dependency — docs_src/path_operation_co… docs_src/path_operation_configuration/tutorial004…:15
  • high FastAPI POST `create_item` without auth dependency — docs_src/path_operation_co… docs_src/path_operation_configuration/tutorial005…:15
  • high FastAPI POST `create_item` without auth dependency — docs_src/path_operation_co… docs_src/path_operation_configuration/tutorial001…:15
  • high FastAPI POST `create_item` without auth dependency — docs_src/path_operation_co… docs_src/path_operation_configuration/tutorial003…:15
  • high FastAPI POST `create_item` without auth dependency — docs_src/path_operation_ad… docs_src/path_operation_advanced_configuration/tu…:15
  • high FastAPI POST `create_item` without auth dependency — docs_src/path_operation_ad… docs_src/path_operation_advanced_configuration/tu…:13
  • high FastAPI POST `<anonymous>` without auth dependency — docs_src/path_operation_ad… docs_src/path_operation_advanced_configuration/tu…:17
View all config drift findings →
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/3698120a-e08b-4304-8dd1-f2dcb9f557ea/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/3698120a-e08b-4304-8dd1-f2dcb9f557ea/

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.