https://github.com/tinygrad/tinygrad ·
lang: python ·
LOC: ·
source: user_submitted
| Rule | Severity | Count |
|---|---|---|
MINED115 GitHub Action pinned to mutable ref (not 40-char SHA) |
high | 25 |
MINED106 Phantom test coverage (assertion-free test) |
high | 25 |
MINED107 Missing Python import (NameError at runtime) |
critical | 25 |
MINED108 self.attribute used but never assigned in __init__ |
high | 25 |
MINED111 Bare except continues silently |
medium | 25 |
MINED109 Mutable default argument |
medium | 20 |
AIC003 Duplicated implementation block across source files |
low | 13 |
MINED112 FastAPI POST/PUT/DELETE/PATCH endpoint without auth |
high | 5 |
MINED030 Python Pickle Loads |
critical | 4 |
SEC007 Unsafe Deserialization |
medium | 4 |
COMP001
[COMP001] High cognitive complexity: Function `load_yfinance_data` has cognitive complexity 9 (SonarSource scale). Cognitive complexity measures how hard the function is for a human to understand — nested branches, boolean chains, and recursion all weigh in. Breakdown: except=1, for=1, if=2, nested_bonus=3, or=2.
examples/anthropic_challenge.py:89
· conf 0.95
[COMP001] High cognitive complexity: Function `render` has cognitive complexity 32 (SonarSource scale). Cognitive complexity measures how hard the function is for a human to understand — nested branc…
MINED001
Bare Except Pass
CWE-755
examples/gpt2.py:254
· conf 1.00
[MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows everything including KeyboardInterrupt and bugs.
MINED001
Bare Except Pass
CWE-755
examples/qwq.py:114
· conf 1.00
[MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows everything including KeyboardInterrupt and bugs.
MINED001
Bare Except Pass
CWE-755
extra/thunder/tiny/visualize_tile.py:123
· conf 1.00
[MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows everything including KeyboardInterrupt and bugs.
MINED004
Weak Crypto
CWE-327
extra/datasets/wikipedia_download.py:30
· conf 1.00
[MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums).
MINED004
Weak Crypto
CWE-327
extra/hevc/decode.py:53
· conf 1.00
[MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums).
MINED004
Weak Crypto
CWE-327
extra/usbgpu/patch.py:16
· conf 1.00
[MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums).
MINED006
Overcatch Baseexception
CWE-705
extra/hcqfuzz/fuzzer.py:28
· conf 1.00
[MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and SystemExit from working.
MINED027
React State Array Mutation
CWE-682
examples/tinychat/index.js:44
· conf 1.00
[MINED027] React State Array Mutation: state.X.push/splice/sort followed by setState — React skips re-render on mutated reference.
MINED036
Python Os System Call
CWE-78
extra/hcq/hcq_smi.py:15
· conf 1.00
[MINED036] Python Os System Call: os.system() invokes shell with no escaping.
MINED036
Python Os System Call
CWE-78
extra/sqtt/install_rocprof_decoder.py:21
· conf 1.00
[MINED036] Python Os System Call: os.system() invokes shell with no escaping.
MINED036
Python Os System Call
CWE-78
extra/usbgpu/patch.py:44
· conf 1.00
[MINED036] Python Os System Call: os.system() invokes shell with no escaping.
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
extra/archprobe.py:33
· conf 1.00
[MINED106] Phantom test coverage: test_warp_size: Test function `test_warp_size` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage withou…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
extra/archprobe.py:57
· conf 1.00
[MINED106] Phantom test coverage: test_reg_count: Test function `test_reg_count` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage withou…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
extra/archprobe.py:82
· conf 1.00
[MINED106] Phantom test coverage: test_memory_latency: Test function `test_memory_latency` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line cover…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
extra/archprobe.py:88
· conf 1.00
[MINED106] Phantom test coverage: test_cacheline_size: Test function `test_cacheline_size` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line cover…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
extra/archprobe.py:107
· conf 1.00
[MINED106] Phantom test coverage: test_read_bandwidth: Test function `test_read_bandwidth` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line cover…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
extra/archprobe.py:135
· conf 1.00
[MINED106] Phantom test coverage: test_gflops: Test function `test_gflops` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without veri…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_custom_kernel.py:105
· conf 1.00
[MINED106] Phantom test coverage: test_empty: Test function `test_empty` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verify…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_custom_kernel.py:215
· conf 1.00
[MINED106] Phantom test coverage: test_gemm_backward_custom: Test function `test_gemm_backward_custom` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Add…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_custom_kernel.py:351
· conf 1.00
[MINED106] Phantom test coverage: test_custom_kernel_sched_copy: Test function `test_custom_kernel_sched_copy` runs code but contains no assert / expect / should call — it passes regardless of behavi…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_interop.py:19
· conf 1.00
[MINED106] Phantom test coverage: test_torch_interop: Test function `test_torch_interop` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverag…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_interop.py:38
· conf 1.00
[MINED106] Phantom test coverage: test_torch_interop_write: Test function `test_torch_interop_write` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds …
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_kernel_cache.py:7
· conf 1.00
[MINED106] Phantom test coverage: test_kernel_cache_in_action: Test function `test_kernel_cache_in_action` runs code but contains no assert / expect / should call — it passes regardless of behaviour.…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_setitem.py:7
· conf 1.00
[MINED106] Phantom test coverage: test_simple_setitem: Test function `test_simple_setitem` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line cover…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_setitem.py:40
· conf 1.00
[MINED106] Phantom test coverage: test_setitem_fancy_on_unrealized_view: Test function `test_setitem_fancy_on_unrealized_view` runs code but contains no assert / expect / should call — it passes rega…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_setitem.py:61
· conf 1.00
[MINED106] Phantom test coverage: test_setitem_chained_indexing: Test function `test_setitem_chained_indexing` runs code but contains no assert / expect / should call — it passes regardless of behavi…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_setitem.py:87
· conf 1.00
[MINED106] Phantom test coverage: test_setitem_inplace_operator: Test function `test_setitem_inplace_operator` runs code but contains no assert / expect / should call — it passes regardless of behavi…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_setitem.py:113
· conf 1.00
[MINED106] Phantom test coverage: test_setitem_consecutive_inplace_operator: Test function `test_setitem_consecutive_inplace_operator` runs code but contains no assert / expect / should call — it pas…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_tensor_variable.py:139
· conf 1.00
[MINED106] Phantom test coverage: test_symbolic_var_sum: Test function `test_symbolic_var_sum` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line c…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_tensor_variable.py:144
· conf 1.00
[MINED106] Phantom test coverage: test_symbolic_var_sum_alt_name: Test function `test_symbolic_var_sum_alt_name` runs code but contains no assert / expect / should call — it passes regardless of beha…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_tensor_variable.py:146
· conf 1.00
[MINED106] Phantom test coverage: test_symbolic_triu: Test function `test_symbolic_triu` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverag…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/backend/test_tensor_variable.py:155
· conf 1.00
[MINED106] Phantom test coverage: test_symbolic_tril: Test function `test_symbolic_tril` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverag…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/test_tiny.py:92
· conf 1.00
[MINED106] Phantom test coverage: test_beam: Test function `test_beam` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifyin…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/test_tiny.py:134
· conf 1.00
[MINED106] Phantom test coverage: test_mnist_backward: Test function `test_mnist_backward` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line cover…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/test_tiny.py:150
· conf 1.00
[MINED106] Phantom test coverage: test_image: Test function `test_image` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verify…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
test/test_tiny.py:153
· conf 1.00
[MINED106] Phantom test coverage: test_beam_image: Test function `test_beam_image` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage with…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:159
· conf 1.00
[MINED108] `self._apply_uop` used but never assigned in __init__: Method `alu` of class `Tensor` reads `self._apply_uop`, but no assignment to it exists in __init__ (and no class-level fallback). Thi…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:182
· conf 1.00
[MINED108] `self.device` used but never assigned in __init__: Method `__repr__` of class `Tensor` reads `self.device`, but no assignment to it exists in __init__ (and no class-level fallback). This r…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:190
· conf 1.00
[MINED108] `self.shape` used but never assigned in __init__: Method `__len__` of class `Tensor` reads `self.shape`, but no assignment to it exists in __init__ (and no class-level fallback). This rais…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:191
· conf 1.00
[MINED108] `self.shape` used but never assigned in __init__: Method `__len__` of class `Tensor` reads `self.shape`, but no assignment to it exists in __init__ (and no class-level fallback). This rais…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:206
· conf 1.00
[MINED108] `self.dtype` used but never assigned in __init__: Method `as_param` of class `Tensor` reads `self.dtype`, but no assignment to it exists in __init__ (and no class-level fallback). This rai…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:206
· conf 1.00
[MINED108] `self.device` used but never assigned in __init__: Method `as_param` of class `Tensor` reads `self.device`, but no assignment to it exists in __init__ (and no class-level fallback). This r…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:208
· conf 1.00
[MINED108] `self.shape` used but never assigned in __init__: Method `as_param` of class `Tensor` reads `self.shape`, but no assignment to it exists in __init__ (and no class-level fallback). This rai…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:208
· conf 1.00
[MINED108] `self.device` used but never assigned in __init__: Method `as_param` of class `Tensor` reads `self.device`, but no assignment to it exists in __init__ (and no class-level fallback). This r…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:208
· conf 1.00
[MINED108] `self.dtype` used but never assigned in __init__: Method `as_param` of class `Tensor` reads `self.dtype`, but no assignment to it exists in __init__ (and no class-level fallback). This rai…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:236
· conf 1.00
[MINED108] `self.linear_with_vars` used but never assigned in __init__: Method `schedule_linear` of class `Tensor` reads `self.linear_with_vars`, but no assignment to it exists in __init__ (and no cl…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:252
· conf 1.00
[MINED108] `self.shape` used but never assigned in __init__: Method `replace` of class `Tensor` reads `self.shape`, but no assignment to it exists in __init__ (and no class-level fallback). This rais…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:257
· conf 1.00
[MINED108] `self.device` used but never assigned in __init__: Method `assign` of class `Tensor` reads `self.device`, but no assignment to it exists in __init__ (and no class-level fallback). This rai…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:258
· conf 1.00
[MINED108] `self.dtype` used but never assigned in __init__: Method `assign` of class `Tensor` reads `self.dtype`, but no assignment to it exists in __init__ (and no class-level fallback). This raise…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:258
· conf 1.00
[MINED108] `self.device` used but never assigned in __init__: Method `assign` of class `Tensor` reads `self.device`, but no assignment to it exists in __init__ (and no class-level fallback). This rai…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:261
· conf 1.00
[MINED108] `self.shape` used but never assigned in __init__: Method `assign` of class `Tensor` reads `self.shape`, but no assignment to it exists in __init__ (and no class-level fallback). This raise…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:262
· conf 1.00
[MINED108] `self.shape` used but never assigned in __init__: Method `assign` of class `Tensor` reads `self.shape`, but no assignment to it exists in __init__ (and no class-level fallback). This raise…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:263
· conf 1.00
[MINED108] `self.device` used but never assigned in __init__: Method `assign` of class `Tensor` reads `self.device`, but no assignment to it exists in __init__ (and no class-level fallback). This rai…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:264
· conf 1.00
[MINED108] `self.device` used but never assigned in __init__: Method `assign` of class `Tensor` reads `self.device`, but no assignment to it exists in __init__ (and no class-level fallback). This rai…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:265
· conf 1.00
[MINED108] `self.dtype` used but never assigned in __init__: Method `assign` of class `Tensor` reads `self.dtype`, but no assignment to it exists in __init__ (and no class-level fallback). This raise…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:266
· conf 1.00
[MINED108] `self.device` used but never assigned in __init__: Method `assign` of class `Tensor` reads `self.device`, but no assignment to it exists in __init__ (and no class-level fallback). This rai…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:271
· conf 1.00
[MINED108] `self._buffer` used but never assigned in __init__: Method `assign` of class `Tensor` reads `self._buffer`, but no assignment to it exists in __init__ (and no class-level fallback). This r…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:291
· conf 1.00
[MINED108] `self.dtype` used but never assigned in __init__: Method `_buffer` of class `Tensor` reads `self.dtype`, but no assignment to it exists in __init__ (and no class-level fallback). This rais…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:291
· conf 1.00
[MINED108] `self.cast` used but never assigned in __init__: Method `_buffer` of class `Tensor` reads `self.cast`, but no assignment to it exists in __init__ (and no class-level fallback). This raises…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:292
· conf 1.00
[MINED108] `self.device` used but never assigned in __init__: Method `_buffer` of class `Tensor` reads `self.device`, but no assignment to it exists in __init__ (and no class-level fallback). This ra…
MINED108
self.attribute used but never assigned in __init__
CWE-476
tinygrad/tensor.py:294
· conf 1.00
[MINED108] `self._buffer` used but never assigned in __init__: Method `_data` of class `Tensor` reads `self._buffer`, but no assignment to it exists in __init__ (and no class-level fallback). This ra…
MINED112
FastAPI POST/PUT/DELETE/PATCH endpoint without auth
CWE-306CWE-862
examples/llama3.py:360
· conf 0.80
[MINED112] FastAPI POST /v1/internal/token-count has no auth: Handler `token_count` is registered with router/app.post(...) but no Depends/Security parameter is declared and no auth marker appears in…
MINED112
FastAPI POST/PUT/DELETE/PATCH endpoint without auth
CWE-306CWE-862
examples/llama3.py:364
· conf 0.80
[MINED112] FastAPI POST /v1/token/encode has no auth: Handler `token_encode` is registered with router/app.post(...) but no Depends/Security parameter is declared and no auth marker appears in the fu…
MINED112
FastAPI POST/PUT/DELETE/PATCH endpoint without auth
CWE-306CWE-862
examples/llama3.py:369
· conf 0.80
[MINED112] FastAPI POST /v1/completions has no auth: Handler `completions` is registered with router/app.post(...) but no Depends/Security parameter is declared and no auth marker appears in the func…
MINED112
FastAPI POST/PUT/DELETE/PATCH endpoint without auth
CWE-306CWE-862
examples/llama3.py:397
· conf 0.80
[MINED112] FastAPI POST /v1/chat/token/encode has no auth: Handler `chat_token_encode` is registered with router/app.post(...) but no Depends/Security parameter is declared and no auth marker appears…
MINED112
FastAPI POST/PUT/DELETE/PATCH endpoint without auth
CWE-306CWE-862
examples/llama3.py:408
· conf 0.80
[MINED112] FastAPI POST /v1/chat/completions has no auth: Handler `chat_completions` is registered with router/app.post(...) but no Depends/Security parameter is declared and no auth marker appears i…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test.yml:30
· conf 0.90
[MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout@v6` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-a…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test.yml:78
· conf 0.90
[MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout@v6` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-a…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test.yml:114
· conf 0.90
[MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout@v6` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-a…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test.yml:136
· conf 0.90
[MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout@v6` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-a…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test.yml:195
· conf 0.90
[MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout@v6` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-a…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test.yml:226
· conf 0.90
[MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout@v6` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-a…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test.yml:257
· conf 0.90
[MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout@v6` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-a…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test.yml:299
· conf 0.90
[MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout@v6` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-a…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test.yml:315
· conf 0.90
[MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout@v6` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-a…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test.yml:336
· conf 0.90
[MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout@v6` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-a…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test.yml:356
· conf 0.90
[MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout@v6` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-a…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test.yml:370
· conf 0.90
[MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v7`: `uses: actions/upload-artifact@v7` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that…
AGT015
Remote install command pipes network code directly to a shell
docs/tinygpu.md:22
· conf 0.70
Remote install command pipes network code directly to a shell
COMP001
[COMP001] High cognitive complexity: Function `load_yfinance_data` has cognitive complexity 9 (SonarSource scale). Cognitive complexity measures how hard the function is for a human to understand — nested branches, boolean chains, and recursion all weigh in. Breakdown: except=1, for=1, if=2, nested_bonus=3, or=2.
examples/gpt2.py:184
· conf 0.95
[COMP001] High cognitive complexity: Function `generate` has cognitive complexity 17 (SonarSource scale). Cognitive complexity measures how hard the function is for a human to understand — nested bra…
CORE_LARGE_FILES
Average file size is 1080 lines (recommend <300)
Average file size is 560 lines (recommend <300)
DKR001
Docker final stage has no non-root USER
extra/dsp/Dockerfile:2
· conf 0.82
Docker final stage has no non-root USER
DKR007
Docker build context has no .dockerignore
.dockerignore
· conf 0.90
Docker build context has no .dockerignore
ERR001
[ERR001] Silent Exception Swallowing (and 2 more): Same pattern found in 2 additional files. Review if needed.
extra/thunder/tiny/visualize_tile.py:123
· conf 1.00
[ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even in cleanup code, log at DEBUG level.
MINED109
Mutable default argument
CWE-1023
examples/sdxl.py:81
· conf 1.00
[MINED109] Mutable default argument in `__call__` (list): `def __call__(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutat…
MINED109
Mutable default argument
CWE-1023
extra/export_model.py:61
· conf 1.00
[MINED109] Mutable default argument in `export_model_clang` (dict): `def export_model_clang(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared acr…
MINED109
Mutable default argument
CWE-1023
extra/export_model.py:115
· conf 1.00
[MINED109] Mutable default argument in `export_model_webgpu` (dict): `def export_model_webgpu(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared a…
MINED109
Mutable default argument
CWE-1023
extra/models/convnext.py:20
· conf 1.00
[MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutat…
MINED109
Mutable default argument
CWE-1023
extra/models/retinanet.py:201
· conf 1.00
[MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutat…
MINED109
Mutable default argument
CWE-1023
extra/onnx_helpers.py:9
· conf 1.00
[MINED109] Mutable default argument in `get_example_inputs` (dict): `def get_example_inputs(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared acr…
MINED109
Mutable default argument
CWE-1023
extra/thneed.py:19
· conf 1.00
[MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutat…
MINED109
Mutable default argument
CWE-1023
extra/thneed.py:19
· conf 1.00
[MINED109] Mutable default argument in `__init__` (dict): `def __init__(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutat…
MINED109
Mutable default argument
CWE-1023
extra/torch_backend/backend.py:316
· conf 1.00
[MINED109] Mutable default argument in `avg_pool` (list): `def avg_pool(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutat…
MINED109
Mutable default argument
CWE-1023
test/backend/test_linearizer.py:429
· conf 1.00
[MINED109] Mutable default argument in `_helper_linearizer_opt_ast` (list): `def _helper_linearizer_opt_ast(... = []/{}/set())` — Python's default value is constructed ONCE at function definition tim…
MINED109
Mutable default argument
CWE-1023
test/backend/test_opt_gemm.py:19
· conf 1.00
[MINED109] Mutable default argument in `_test_gemm_unrolled_permute_l` (list): `def _test_gemm_unrolled_permute_l(... = []/{}/set())` — Python's default value is constructed ONCE at function definiti…
MINED109
Mutable default argument
CWE-1023
test/external/external_test_optim.py:48
· conf 1.00
[MINED109] Mutable default argument in `step` (dict): `def step(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutating it i…
MINED109
Mutable default argument
CWE-1023
test/external/external_test_optim.py:63
· conf 1.00
[MINED109] Mutable default argument in `step_tf` (dict): `def step_tf(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutatin…
MINED109
Mutable default argument
CWE-1023
test/null/test_transcendental_helpers.py:92
· conf 1.00
[MINED109] Mutable default argument in `_test_vectorized` (list): `def _test_vectorized(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across …
MINED109
Mutable default argument
CWE-1023
tinygrad/helpers.py:450
· conf 1.00
[MINED109] Mutable default argument in `fetch` (dict): `def fetch(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutating it…
MINED109
Mutable default argument
CWE-1023
tinygrad/runtime/ops_cl.py:41
· conf 1.00
[MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutat…
MINED109
Mutable default argument
CWE-1023
tinygrad/runtime/ops_qcom.py:230
· conf 1.00
[MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutat…
MINED109
Mutable default argument
CWE-1023
tinygrad/runtime/support/compiler_cuda.py:61
· conf 1.00
[MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutat…
MINED109
Mutable default argument
CWE-1023
tinygrad/runtime/support/c.py:93
· conf 1.00
[MINED109] Mutable default argument in `findlib` (list): `def findlib(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutatin…
MINED109
Mutable default argument
CWE-1023
tinygrad/runtime/support/c.py:115
· conf 1.00
[MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutat…
MINED111
Bare except continues silently
examples/vgg7.py:19
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
examples/vgg7.py:138
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
examples/vgg7.py:160
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
examples/yolov3.py:125
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
examples/yolov3.py:218
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
examples/yolov3.py:244
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
examples/yolov3.py:292
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
extra/weekly_commits_table.py:15
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
extra/weekly_commits_table.py:25
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
test/amd/test_roundtrip.py:152
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
test/amd/test_sqttmap.py:29
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
test/backend/test_asm_gemm.py:227
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
test/backend/test_profiler.py:100
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
test/backend/test_profiler.py:115
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
test/backend/test_profiler.py:127
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
test/backend/test_profiler.py:152
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
test/helpers.py:107
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
test/null/test_device.py:74
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
test/null/test_device.py:86
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
test/null/test_device.py:101
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
test/null/test_device.py:117
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
tinygrad/device.py:363
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
tinygrad/device.py:370
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
tinygrad/device.py:373
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
MINED111
Bare except continues silently
tinygrad/helpers.py:146
· conf 1.00
[MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that runs code without re-raising or logging the exception. Hides real failures and makes bugs hard to diagnose.
SEC005
Command Injection Risk
extra/hcq/hcq_smi.py:15
· conf 0.50
[SEC005] Command Injection Risk: Unsafe shell execution or eval of user input.
SEC005
Command Injection Risk
extra/sqtt/install_rocprof_decoder.py:21
· conf 0.50
[SEC005] Command Injection Risk: Unsafe shell execution or eval of user input.
SEC005
Command Injection Risk
extra/usbgpu/patch.py:44
· conf 0.50
[SEC005] Command Injection Risk: Unsafe shell execution or eval of user input.
SEC007
Unsafe Deserialization
examples/openpilot/compile3.py:139
· conf 1.00
[SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code.
SEC007
Unsafe Deserialization
examples/openpilot/load_pickle.py:10
· conf 1.00
[SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code.
SEC007
Unsafe Deserialization
extra/datasets/__init__.py:39
· conf 1.00
[SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code.
SEC011
Unsafe PyTorch Model Loading
extra/models/rnnt.py:68
· conf 1.00
[SEC011] Unsafe PyTorch Model Loading: torch.load() uses pickle internally and can execute arbitrary code from untrusted model files.
SEC011
Unsafe PyTorch Model Loading
extra/models/unet3d.py:51
· conf 1.00
[SEC011] Unsafe PyTorch Model Loading: torch.load() uses pickle internally and can execute arbitrary code from untrusted model files.
SEC012
ZipSlip — Archive Path Traversal
extra/datasets/wikipedia_download.py:17
· conf 1.00
[SEC012] ZipSlip — Archive Path Traversal: Archive extraction without path validation allows writing files outside the target directory.
SEC045
eval()/exec() on stored or user-supplied data
examples/anthropic_challenge.py:185
· conf 1.00
[SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even admin-stored data — is a lateral-movement vector after any one credential compromise. Sandboxes (__builtins__ …
SEC045
eval()/exec() on stored or user-supplied data
tinygrad/runtime/ops_cpu.py:59
· conf 1.00
[SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even admin-stored data — is a lateral-movement vector after any one credential compromise. Sandboxes (__builtins__ …
SEC045
eval()/exec() on stored or user-supplied data
tinygrad/uop/upat.py:167
· conf 1.00
[SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even admin-stored data — is a lateral-movement vector after any one credential compromise. Sandboxes (__builtins__ …
SEC123
Production stack trace / debug output exposed
examples/yolov8-onnx.py:13
· conf 1.00
[SEC123] Production stack trace / debug output exposed: Debug mode left on in production exposes stack traces, environment variables, framework internals — sometimes triggers RCE (Django debug page w…
SEC127
AI agent stub — TODO: implement / pass placeholder body
extra/hcqfuzz/spec.py:4
· conf 1.00
[SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as TODO/pass/raise NotImplementedError after an AI scaffolding pass. The route appears to exist (and may even pass…
SEC127
AI agent stub — TODO: implement / pass placeholder body
tinygrad/mixin/reduce.py:11
· conf 1.00
[SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as TODO/pass/raise NotImplementedError after an AI scaffolding pass. The route appears to exist (and may even pass…
AIC003
Duplicated implementation block across source files
extra/amdpci/headers/discovery.h:236
· conf 0.86
Duplicated implementation block across source files
AIC003
Duplicated implementation block across source files
extra/dsp/run_3.py:5
· conf 0.86
Duplicated implementation block across source files
AIC003
Duplicated implementation block across source files
extra/dsp/run_3.py:32
· conf 0.86
Duplicated implementation block across source files
AIC003
Duplicated implementation block across source files
extra/dsp/run.py:40
· conf 0.86
Duplicated implementation block across source files
AIC003
Duplicated implementation block across source files
extra/gemm/amd_seb/kernel4_gmem_df.cpp:12
· conf 0.86
Duplicated implementation block across source files
AIC003
Duplicated implementation block across source files
extra/gemm/amd_seb/kernel5_lds_optim.cpp:12
· conf 0.86
Duplicated implementation block across source files
AIC003
Duplicated implementation block across source files
extra/gemm/amd_seb/kernel5_lds_optim.cpp:51
· conf 0.86
Duplicated implementation block across source files
AIC003
Duplicated implementation block across source files
extra/nv_gpu_driver/clcec0qmd.h:2
· conf 0.86
Duplicated implementation block across source files
AIC003
Duplicated implementation block across source files
extra/thunder/amd/gemm_bf16_atb.cpp:1
· conf 0.86
Duplicated implementation block across source files
AIC003
Duplicated implementation block across source files
extra/torch_hook/hook_cuda.py:20
· conf 0.86
Duplicated implementation block across source files
AIC003
Duplicated implementation block across source files
test/external/external_metal_compile_fail.py:11
· conf 0.86
Duplicated implementation block across source files
AIC003
Duplicated implementation block across source files
test/external/mlperf_bert/preprocessing/create_pretraining_data.py:168
· conf 0.86
Duplicated implementation block across source files
AIC003
Duplicated implementation block across source files
tinygrad/runtime/ops_amd.py:76
· conf 0.86
Duplicated implementation block across source files
COMP001
[COMP001] High cognitive complexity: Function `load_yfinance_data` has cognitive complexity 9 (SonarSource scale). Cognitive complexity measures how hard the function is for a human to understand — nested branches, boolean chains, and recursion all weigh in. Breakdown: except=1, for=1, if=2, nested_bonus=3, or=2.
examples/gpt2.py:80
· conf 0.95
[COMP001] High cognitive complexity: Function `forward` has cognitive complexity 11 (SonarSource scale). Cognitive complexity measures how hard the function is for a human to understand — nested bran…
DKR010
Dockerfile leaves apt package indexes in the image layer
extra/dsp/Dockerfile:5
· conf 0.74
Dockerfile leaves apt package indexes in the image layer
DKR011
Dockerfile installs recommended OS packages
extra/dsp/Dockerfile:5
· conf 0.72
Dockerfile installs recommended OS packages
DKR011
Dockerfile installs recommended OS packages
extra/dsp/Dockerfile:25
· conf 0.72
Dockerfile installs recommended OS packages
SEC132
String concat where the language has interpolation (AI style drift)
examples/vgg7.py:93
· conf 1.00
[SEC132] String concat where the language has interpolation (AI style drift): String built by concatenation where the language has cleaner interpolation (Python f-strings since 3.6, JS template liter…
COMP001
[COMP001] High cognitive complexity: Function `load_yfinance_data` has cognitive complexity 9 (SonarSource scale). Cognitive complexity measures how hard the function is for a human to understand — nested branches, boolean chains, and recursion all weigh in. Breakdown: except=1, for=1, if=2, nested_bonus=3, or=2.
· conf 0.20
[COMP001] High cognitive complexity (and 118 more): Same pattern found in 118 additional files. Review if needed.
MINED004
Weak Crypto
CWE-327
· conf 0.20
[MINED004] Weak Crypto (and 3 more): Same pattern found in 3 additional files. Review if needed.
MINED005
Lua Loadstring
CWE-95
· conf 0.20
[MINED005] Lua Loadstring (and 15 more): Same pattern found in 15 additional files. Review if needed.
MINED030
Python Pickle Loads
CWE-502
· conf 0.20
[MINED030] Python Pickle Loads (and 5 more): Same pattern found in 5 additional files. Review if needed.
MINED042
Cpp New Without Delete
CWE-401
extra/torch_backend/wrapped_tensor.cpp:110
· conf 1.00
[MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak risk.
MINED042
Cpp New Without Delete
CWE-401
extra/usbgpu/tbgpu/installer/TinyGPUDriverExtension/TinyGPUDriver.cpp:20
· conf 1.00
[MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak risk.
MINED043
Http Not Https
CWE-319
extra/datasets/__init__.py:8
· conf 1.00
[MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle credentials or data.
MINED043
Http Not Https
CWE-319
tinygrad/nn/datasets.py:5
· conf 1.00
[MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle credentials or data.
MINED045
Ts Non Null Assertion
CWE-476
extra/thunder/amd/include/ops/warp/register/vec/conversions.cuh:33
· conf 1.00
[MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError if wrong.
MINED049
Print Pii
CWE-532
examples/llm.c/train_gpt2.py:149
· conf 1.00
[MINED049] Print Pii: Logging password/token/email/ssn directly to stdout.
MINED049
Print Pii
CWE-532
examples/olmoe.py:86
· conf 1.00
[MINED049] Print Pii: Logging password/token/email/ssn directly to stdout.
MINED049
Print Pii
CWE-532
extra/datasets/squad.py:147
· conf 1.00
[MINED049] Print Pii: Logging password/token/email/ssn directly to stdout.
MINED050
Stub Only Function
CWE-1188
· conf 0.20
[MINED050] Stub Only Function (and 18 more): Same pattern found in 18 additional files. Review if needed.
MINED050
Stub Only Function
CWE-1188
examples/anthropic_challenge.py:139
· conf 1.00
[MINED050] Stub Only Function: Function declared but body is just pass, return None, raise NotImplementedError, or TODO comment.
MINED050
Stub Only Function
CWE-1188
examples/gpt2.py:255
· conf 1.00
[MINED050] Stub Only Function: Function declared but body is just pass, return None, raise NotImplementedError, or TODO comment.
MINED050
Stub Only Function
CWE-1188
examples/qwq.py:115
· conf 1.00
[MINED050] Stub Only Function: Function declared but body is just pass, return None, raise NotImplementedError, or TODO comment.
MINED055
Npm Install No Lockfile
CWE-1357
examples/mlperf/training_submission_v5.0/tinycorp/benchmarks/stable_diffusion/implementations/tinybox_8xMI300X/dev_run.sh:23
· conf 1.00
[MINED055] Npm Install No Lockfile: Production image runs npm install (resolves new versions on every build) instead of npm ci.
MINED055
Npm Install No Lockfile
CWE-1357
examples/tinychat/tinychat-browser/make_tiktoken_js.sh:4
· conf 1.00
[MINED055] Npm Install No Lockfile: Production image runs npm install (resolves new versions on every build) instead of npm ci.
MINED057
Todo Bomb
extra/huggingface_onnx/huggingface_manager.py:32
· conf 1.00
[MINED057] Todo Bomb: Code path with a TODO/FIXME/HACK comment that gates correctness — left for later but never resolved.
MINED064
Python Input Call
examples/compile_tensorflow.py:17
· conf 1.00
[MINED064] Python Input Call: input() blocks for stdin. Inappropriate in services.
MINED067
Python Requests No Timeout
CWE-400
examples/webgpu/stable_diffusion/compile.py:75
· conf 1.00
[MINED067] Python Requests No Timeout: requests.get/post/etc. without timeout= can hang forever.
MINED067
Python Requests No Timeout
CWE-400
extra/huggingface_onnx/huggingface_manager.py:96
· conf 1.00
[MINED067] Python Requests No Timeout: requests.get/post/etc. without timeout= can hang forever.
MINED069
Debug True Prod
CWE-489
examples/yolov8-onnx.py:13
· conf 1.00
[MINED069] Debug True Prod: Django/Flask DEBUG=True or app.debug=True in non-test files.
MINED077
Python Open No Context
CWE-772
examples/vgg7.py:15
· conf 1.00
[MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles.
MINED077
Python Open No Context
CWE-772
extra/dsp/snpe_logs/parse.py:1
· conf 1.00
[MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles.
MINED077
Python Open No Context
CWE-772
extra/hcqfuzz/tools.py:74
· conf 1.00
[MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles.
MINED079
Off By One Slice
CWE-193
tinygrad/runtime/graph/metal.py:102
· conf 1.00
[MINED079] Off By One Slice: range(len(x)+1), arr[i+1:i+n+1], or while i<=len(arr) — off-by-one risk.
MINED079
Off By One Slice
CWE-193
tinygrad/runtime/ops_null.py:38
· conf 1.00
[MINED079] Off By One Slice: range(len(x)+1), arr[i+1:i+n+1], or while i<=len(arr) — off-by-one risk.
SEC007
Unsafe Deserialization
· conf 0.20
[SEC007] Unsafe Deserialization (and 5 more): Same pattern found in 5 additional files. Review if needed.
SEC013
Path Traversal — User Input in File Path
· conf 0.20
[SEC013] Path Traversal — User Input in File Path (and 2 more): Same pattern found in 2 additional files. Review if needed.
SEC020
Secret Printed to Logs
· conf 0.20
[SEC020] Secret Printed to Logs (and 2 more): Same pattern found in 2 additional files. Review if needed.
SEC020
Secret Printed to Logs
examples/olmoe.py:86
· conf 0.15
[SEC020] Secret Printed to Logs: Debug or diagnostic code appears to print a credential-bearing value. This is a frequent AI-assisted coding failure: the helper exposes the exact value needed for tro…
SEC020
Secret Printed to Logs
extra/datasets/squad.py:147
· conf 0.15
[SEC020] Secret Printed to Logs: Debug or diagnostic code appears to print a credential-bearing value. This is a frequent AI-assisted coding failure: the helper exposes the exact value needed for tro…
SEC029
Server-Side Request Forgery (SSRF) — outbound HTTP from user input
· conf 0.20
[SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input (and 2 more): Same pattern found in 2 additional files. Review if needed.
SEC045
eval()/exec() on stored or user-supplied data
· conf 0.20
[SEC045] eval()/exec() on stored or user-supplied data (and 3 more): Same pattern found in 3 additional files. Review if needed.
SEC081
Python: pickle.loads / marshal.loads on untrusted data
· conf 0.20
[SEC081] Python: pickle.loads / marshal.loads on untrusted data (and 5 more): Same pattern found in 5 additional files. Review if needed.
SEC128
Async function without await — fire-and-forget Promise (AI mistake)
· conf 0.20
[SEC128] Async function without await — fire-and-forget Promise (AI mistake) (and 4 more): Same pattern found in 4 additional files. Review if needed.
Reading from rp.scan + rp.finding + rp.rule (unified schema, R78 series). Legacy data path unchanged. Compare with /scan/7d580067-aa8f-412a-bfac-13e7cd18ddf3/.