← Back to scan
File as GitHub Issue repo: python/cpython

Push this scan report to python/cpython

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.name` 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
CRIT MINED107 [MINED107] Missing import: `platform` used but not imported: The file uses `platform.some… Doc/tools/extensions/availability.py:99
CRIT MINED030 [MINED030] Python Pickle Loads: pickle.loads() can execute arbitrary code via __reduce__. Doc/includes/dbpickle.py:26
HIGH MINED108 [MINED108] `self._add_glossary_link` used but never assigned in __init__: Method `run` of… Doc/tools/extensions/changes.py:111
HIGH MINED108 [MINED108] `self.name` used but never assigned in __init__: Method `run` of class `SoftDe… Doc/tools/extensions/changes.py:103
HIGH MINED108 [MINED108] `self.name` used but never assigned in __init__: Method `run` of class `SoftDe… Doc/tools/extensions/changes.py:102
HIGH MINED108 [MINED108] `self.name` used but never assigned in __init__: Method `run` of class `SoftDe… Doc/tools/extensions/changes.py:98
HIGH MINED108 [MINED108] `self.name` used but never assigned in __init__: Method `run` of class `SoftDe… Doc/tools/extensions/changes.py:95
HIGH MINED108 [MINED108] `self.config` used but never assigned in __init__: Method `run` of class `Depr… Doc/tools/extensions/changes.py:63
HIGH MINED108 [MINED108] `self.name` used but never assigned in __init__: Method `run` of class `Deprec… Doc/tools/extensions/changes.py:76
HIGH MINED108 [MINED108] `self.name` used but never assigned in __init__: Method `run` of class `Deprec… Doc/tools/extensions/changes.py:75
HIGH MINED108 [MINED108] `self.name` used but never assigned in __init__: Method `run` of class `Deprec… Doc/tools/extensions/changes.py:70
HIGH MINED108 [MINED108] `self.name` used but never assigned in __init__: Method `run` of class `Deprec… Doc/tools/extensions/changes.py:69
HIGH MINED108 [MINED108] `self.name` used but never assigned in __init__: Method `run` of class `Deprec… Doc/tools/extensions/changes.py:67
HIGH MINED108 [MINED108] `self.name` used but never assigned in __init__: Method `run` of class `Deprec… Doc/tools/extensions/changes.py:66
HIGH MINED108 [MINED108] `self.arguments` used but never assigned in __init__: Method `run` of class `D… Doc/tools/extensions/changes.py:55
HIGH MINED108 [MINED108] `self.config` used but never assigned in __init__: Method `run` of class `Depr… Doc/tools/extensions/changes.py:53
HIGH MINED108 [MINED108] `self.arguments` used but never assigned in __init__: Method `run` of class `D… Doc/tools/extensions/changes.py:53
HIGH MINED108 [MINED108] `self.arguments` used but never assigned in __init__: Method `run` of class `D… Doc/tools/extensions/changes.py:60
HIGH MINED108 [MINED108] `self.config` used but never assigned in __init__: Method `run` of class `PyVe… Doc/tools/extensions/changes.py:34
HIGH MINED108 [MINED108] `self.arguments` used but never assigned in __init__: Method `run` of class `P… Doc/tools/extensions/changes.py:34
HIGH MINED108 [MINED108] `self.arguments` used but never assigned in __init__: Method `run` of class `P… Doc/tools/extensions/changes.py:33
HIGH MINED108 [MINED108] `self.dst` used but never assigned in __init__: Method `utcoffset` of class `U… Doc/includes/tzinfo_examples.py:131
HIGH MINED108 [MINED108] `self.dst` used but never assigned in __init__: Method `tzname` of class `USTi… Doc/includes/tzinfo_examples.py:125
HIGH MINED108 [MINED108] `self._isdst` used but never assigned in __init__: Method `tzname` of class `L… Doc/includes/tzinfo_examples.py:47
HIGH MINED108 [MINED108] `self._isdst` used but never assigned in __init__: Method `dst` of class `Loca… Doc/includes/tzinfo_examples.py:41
HIGH MINED108 [MINED108] `self._isdst` used but never assigned in __init__: Method `utcoffset` of class… Doc/includes/tzinfo_examples.py:35
HIGH MINED108 [MINED108] `self._callmethod` used but never assigned in __init__: Method `__next__` of c… Doc/includes/mp_newtype.py:26
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… Doc/tools/static/rtd_switcher.js:11
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… Doc/tools/static/changelog_search.js:17
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… Doc/tools/extensions/profiling_trace.py:115
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… Doc/tools/extensions/pyspecific.py:102
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… Doc/includes/email-unpack.py:30
HIGH MINED017 [MINED017] C System Call: system() invokes shell. command injection if any arg is dynamic. Doc/includes/capi-extension/spammodule-…:19
HIGH COMP001 [COMP001] High cognitive complexity: Function `test` has cognitive complexity 28 (SonarSo… Doc/includes/mp_pool.py:41
HIGH MINED126 [MINED126] Workflow container/services image `ghcr.io/python/autoconf:2025.01.02.12581854… .github/workflows/build.yml:58
HIGH CORE_NO_TESTS No test files found
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… Doc/tools/extensions/profiling_trace.py:92
MED CFG006 [CFG006] Missing .gitignore: No .gitignore file. Risk of committing secrets and build art…
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … Doc/tools/extensions/profiling_trace.py:115
LOW COMP001 [COMP001] High cognitive complexity: Function `main` has cognitive complexity 10 (SonarSo… Doc/includes/email-unpack.py:14
LOW COMP001 [COMP001] High cognitive complexity: Function `main` has cognitive complexity 9 (SonarSou… Doc/includes/email-dir.py:16
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. Doc/includes/mp_newtype.py:34
INFO MINED064 [MINED064] Python Input Call: input() blocks for stdin. Inappropriate in services. Doc/includes/email-read-alternative.py:39
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… Doc/includes/mp_newtype.py:35
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… Doc/includes/email-unpack.py:31
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… Doc/includes/email-read-alternative.py:18
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… Include/ceval.h:54
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… Doc/includes/email-alternative.py:20
Reset to top 5 48 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `python/cpython`

**Score: 76/100 (C)**  ·  48 findings  ·  scanned 2026-06-05 08:02 UTC  ·  65,315 LOC

| Severity | Count |
|---|---|
| CRITICAL | 2 |
| HIGH | 34 |
| MEDIUM | 3 |
| LOW | 2 |

📊 [Full filterable report](https://repobility.com/scan/d262652f-dd83-4d12-99fd-73edbc4278ff/)  ·  ![scorecard](https://repobility.com/scan/d262652f-dd83-4d12-99fd-73edbc4278ff/report.png?v=1780646561-s2)

### Top findings

1. **CRITICAL** `MINED107` — Missing import: `platform` used but not imported
   `Doc/tools/extensions/availability.py:99` · ✓ Repobility
2. **CRITICAL** `MINED030` — Python Pickle Loads
   `Doc/includes/dbpickle.py:26` · CWE-502 · ✓ Repobility
3. **HIGH** `MINED108` — `self._add_glossary_link` used but never assigned in __init__
   `Doc/tools/extensions/changes.py:111` · ✓ Repobility
4. **HIGH** `MINED108` — `self.name` used but never assigned in __init__
   `Doc/tools/extensions/changes.py:103` · ✓ Repobility
5. **HIGH** `MINED108` — `self.name` used but never assigned in __init__
   `Doc/tools/extensions/changes.py:102` · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/d262652f-dd83-4d12-99fd-73edbc4278ff/_
Already filed
'python' 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.
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 'python/cpython' 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/52 findings (90%) 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.