← Back to scan
File as GitHub Issue repo: encode/starlette

Push this scan report to encode/starlette

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

Async function without await — fire-and-forget Promise (AI mistake)

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 SEC030 [SEC030] Open Redirect — user-controlled redirect target: Redirect target is taken direct… starlette/middleware/trustedhost.py:57
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… starlette/requests.py:110
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… starlette/middleware/trustedhost.py:55
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… starlette/middleware/httpsredirect.py:12
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … starlette/middleware/cors.py:163
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… starlette/config.py:14
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… starlette/concurrency.py:35
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… starlette/authentication.py:94
HIGH MINED006 [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and Syste… starlette/_utils.py:82
HIGH MINED106 Phantom test coverage: test_client_factory tests/conftest.py:13
HIGH MINED108 `self._perform_cast` used but never assigned in __init__ starlette/config.py:103
HIGH MINED108 `self.get` used but never assigned in __init__ starlette/config.py:92
HIGH MINED108 `self.on_end` used but never assigned in __init__ starlette/formparsers.py:247
HIGH MINED108 `self.on_headers_finished` used but never assigned in __init__ starlette/formparsers.py:246
HIGH MINED108 `self.on_header_end` used but never assigned in __init__ starlette/formparsers.py:245
HIGH MINED108 `self.on_header_value` used but never assigned in __init__ starlette/formparsers.py:244
HIGH MINED108 `self.on_header_field` used but never assigned in __init__ starlette/formparsers.py:243
HIGH MINED108 `self.on_part_end` used but never assigned in __init__ starlette/formparsers.py:242
HIGH MINED108 `self.on_part_data` used but never assigned in __init__ starlette/formparsers.py:241
HIGH MINED108 `self.on_part_begin` used but never assigned in __init__ starlette/formparsers.py:240
HIGH MINED108 `self.on_end` used but never assigned in __init__ starlette/formparsers.py:91
HIGH MINED108 `self.on_field_end` used but never assigned in __init__ starlette/formparsers.py:90
HIGH MINED108 `self.on_field_data` used but never assigned in __init__ starlette/formparsers.py:89
HIGH MINED108 `self.on_field_name` used but never assigned in __init__ starlette/formparsers.py:88
HIGH MINED108 `self.on_field_start` used but never assigned in __init__ starlette/formparsers.py:87
HIGH MINED108 `self.entered` used but never assigned in __init__ starlette/_utils.py:74
HIGH MINED108 `self.entered` used but never assigned in __init__ starlette/_utils.py:71
HIGH MINED108 `self.entered` used but never assigned in __init__ starlette/_utils.py:70
HIGH MINED108 `self.parse_docstring` used but never assigned in __init__ starlette/schemas.py:138
HIGH MINED108 `self.get_endpoints` used but never assigned in __init__ starlette/schemas.py:135
HIGH MINED108 `self.get_schema` used but never assigned in __init__ starlette/schemas.py:124
HIGH MINED108 `self._remove_converter` used but never assigned in __init__ starlette/schemas.py:80
HIGH MINED108 `self._remove_converter` used but never assigned in __init__ starlette/schemas.py:74
HIGH MINED108 `self.get_endpoints` used but never assigned in __init__ starlette/schemas.py:66
HIGH MINED108 `self._remove_converter` used but never assigned in __init__ starlette/schemas.py:57
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… starlette/config.py:113
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… starlette/middleware/base.py:200
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… starlette/convertors.py:13
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… starlette/authentication.py:99
MED MINED111 Bare except continues silently starlette/middleware/base.py:145
MED MINED111 Bare except continues silently starlette/testclient.py:346
MED MINED111 Bare except continues silently starlette/_exception_handler.py:43
MED WEB003 Public web service has no security.txt .well-known/security.txt
LOW COMP001 [COMP001] High cognitive complexity: Function `dispatch` has cognitive complexity 8 (Sona… starlette/endpoints.py:70
LOW COMP001 [COMP001] High cognitive complexity: Function `decode` has cognitive complexity 14 (Sonar… starlette/endpoints.py:91
LOW COMP001 [COMP001] High cognitive complexity: Function `wrapped_app` has cognitive complexity 14 (… starlette/_exception_handler.py:31
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. starlette/config.py:10
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. starlette/concurrency.py:35
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. starlette/authentication.py:94
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… starlette/config.py:11
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… starlette/concurrency.py:36
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… starlette/authentication.py:95
Reset to top 5 52 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `encode/starlette`

**Score: 78/100 (A-)**  ·  76 findings  ·  scanned 2026-05-24 01:21 UTC  ·  17,595 LOC

| Severity | Count |
|---|---|
| CRITICAL | 0 |
| HIGH | 36 |
| MEDIUM | 7 |
| LOW | 3 |

📊 [Full filterable report](https://repobility.com/scan/ccc7a59c-b7cb-442a-a08a-1aa8791f8ad9/)  ·  ![scorecard](https://repobility.com/scan/ccc7a59c-b7cb-442a-a08a-1aa8791f8ad9/report.png?v=1779585687-s2)

### Top findings

1. **HIGH** `SEC030` — Open Redirect — user-controlled redirect target
   `starlette/middleware/trustedhost.py:57` · CWE-601 · A01:2021 Broken Access Control (open redirect)
2. **HIGH** `SEC029` — Server-Side Request Forgery (SSRF) — outbound HTTP from user input
   `starlette/requests.py:110` · A10:2021 SSRF
3. **HIGH** `SEC029` — Server-Side Request Forgery (SSRF) — outbound HTTP from user input
   `starlette/middleware/trustedhost.py:55` · A10:2021 SSRF
4. **HIGH** `SEC029` — Server-Side Request Forgery (SSRF) — outbound HTTP from user input
   `starlette/middleware/httpsredirect.py:12` · A10:2021 SSRF
5. **HIGH** `SEC128` — Async function without await — fire-and-forget Promise (AI mistake)
   `starlette/middleware/cors.py:163`

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/ccc7a59c-b7cb-442a-a08a-1aa8791f8ad9/_
Megaproject â high spam risk
Could not determine 'encode/starlette' 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
27/84 findings (32%) 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.