← Back to scan
File as GitHub Issue repo: psf/requests

Push this scan report to psf/requests

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

Bare Except Pass

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 Missing import: `string` used but not imported src/requests/_internal_utils.py:34
CRIT private-key Identified a Private Key, which may compromise cryptographic security and sensitive data … tests/certs/expired/server/server.key:1
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … src/requests/structures.py:57
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… src/requests/exceptions.py:118
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… src/requests/compat.py:45
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… src/requests/__init__.py:146
HIGH SEC078 [SEC078] Python: requests without timeout: requests.get/post without a timeout will hang … src/requests/__init__.py:14
HIGH MINED131 pre-commit hook `https://github.com/astral-sh/ruff-pre-commit` pinned to mutable rev `v0.… .pre-commit-config.yaml:15
HIGH MINED131 pre-commit hook `https://github.com/pre-commit/pre-commit-hooks` pinned to mutable rev `v… .pre-commit-config.yaml:4
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED DEPCUR-PY Python package `Sphinx` is 2 major version(s) behind (7.2.6 -> 9.1.0) docs/requirements.txt:3
MED MINED124 requirements.txt: `wheel` has no version pin requirements-dev.txt:7
MED MINED124 requirements.txt: `trustme` has no version pin requirements-dev.txt:6
MED MINED124 requirements.txt: `pytest-cov` has no version pin requirements-dev.txt:3
LOW COMP001 [COMP001] High cognitive complexity: Function `dispatch_hook` has cognitive complexity 9 … src/requests/hooks.py:32
INFO MINED067 [MINED067] Python Requests No Timeout: requests.get/post/etc. without timeout= can hang f… src/requests/__init__.py:14
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… src/requests/compat.py:46
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… src/requests/__init__.py:147
Reset to top 5 18 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `psf/requests`

**Score: 85/100 (B+)**  ·  68 findings  ·  scanned 2026-06-04 21:59 UTC  ·  12,000 LOC

| Severity | Count |
|---|---|
| CRITICAL | 2 |
| HIGH | 7 |
| MEDIUM | 5 |
| LOW | 1 |

📊 [Full filterable report](https://repobility.com/scan/d07accb3-f6af-4be2-b7e0-b8d9dfd2387d/)  ·  ![scorecard](https://repobility.com/scan/d07accb3-f6af-4be2-b7e0-b8d9dfd2387d/report.png?v=1780610385-s2)

### Top findings

1. **CRITICAL** `MINED107` — Missing import: `string` used but not imported
   `src/requests/_internal_utils.py:34` · ✓ Repobility
2. **CRITICAL** `private-key` — Identified a Private Key, which may compromise cryptographic security and sensitive data e
   `tests/certs/expired/server/server.key:1`
3. **HIGH** `SEC128` — Async function without await — fire-and-forget Promise (AI mistake)
   `src/requests/structures.py:57`
4. **HIGH** `SEC029` — Server-Side Request Forgery (SSRF) — outbound HTTP from user input
   `src/requests/exceptions.py:118` · A10:2021 SSRF
5. **HIGH** `MINED001` — Bare Except Pass
   `src/requests/compat.py:45` · CWE-755 · ✓ Repobility

---

**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/d07accb3-f6af-4be2-b7e0-b8d9dfd2387d/_
Already filed
This repo publishes a SECURITY.md policy and the scan contains 3 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 'psf/requests' 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
55/68 findings (81%) 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.