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

Scan timing: clone 2.78s · analysis 6.94s · 2.8 MB · GitHub preflight 434ms

latchbio/latch

https://github.com/latchbio/latch · scanned 2026-06-05 19:37 UTC (4 days, 15 hours ago) · 10 languages

338 raw signals (156 security + 182 graph) 39th percentile · Python · medium (20-100K LoC) System graph score 70 (lower by 22)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 4 days, 15 hours ago · v2 · 179 actionable findings from 2 signal sources. 66 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Score breakdown â 2026-05-18-v5
Component Sub-score Weight Contribution
structure_score 85.0 0.15 12.75
security_score 17.6 0.25 4.40
testing_score 12.0 0.20 2.40
documentation_score 86.0 0.15 12.90
practices_score 74.0 0.15 11.10
code_quality 52.9 0.10 5.29
Overall 1.00 48.8
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Scan summary Quality grade D+ (49/100). Dimensions: security 18, maintainability 85. 156 findings (51 security). 31,409 lines analyzed.

Showing 145 of 179 actionable findings. 245 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

high Security checks quality Quality conf 1.00 ✓ Repobility 3 occurrences Missing import: `queue` used but not imported
The file uses `queue.something(...)` but never imports `queue`. This raises NameError at runtime the first time the line executes.
3 files, 3 locations
src/latch_cli/centromere/ast_parsing.py:92
src/latch_cli/nextflow/parse_schema.py:439
src/latch_cli/services/k8s/develop.py:199
low Security checks quality Quality conf 1.00 ✓ Repobility [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and SystemExit from working.
Review and fix per the pattern semantics. See CWE-705 / for context.
src/latch_cli/services/preview.py:206
low Security checks quality Quality conf 1.00 ✓ Repobility [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and SystemExit from working.
Review and fix per the pattern semantics. See CWE-705 / for context.
src/latch_cli/menus.py:317
high Security checks quality Quality conf 1.00 ✓ Repobility [MINED021] Path Traversal Os Join: os.path.join(user_dir, filename) where filename can contain "../" — directory escape.
Review and fix per the pattern semantics. See CWE-22 / A01:2021 for context.
src/latch_cli/centromere/utils.py:139
high Security checks security path traversal conf 0.80 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file path without sanitization. Allows reading arbitrary files.
Use os.path.realpath() and verify the path starts with your expected base directory. Use secure_filename() for uploads.
src/latch_cli/services/launch/launch.py:45
high Security checks software File upload conf 1.00 [SEC032] Unrestricted File Upload — no extension/MIME validation: File upload accepts the user's filename without validating extension, content-type, or magic bytes. Attackers upload `.php`, `.jsp`, or executable files to a web-served directory, then visit the URL to trigger RCE. CWE-434. Examples: Apache Struts (CVE-2017-9805), countless WordPress plugin RCEs.
Validate THREE things server-side: 1. Extension allowlist: ALLOWED = {'.png', '.jpg', '.pdf'} ext = Path(file.filename).suffix.lower() if ext not in ALLOWED: abort(400) 2. Magic-byte check (don't trust the extension): import magic mime = magic.from_buffer(file…
src/latch_cli/exceptions/traceback.py:24
high Security checks security Crypto conf 1.00 [SEC113] SSH host-key verification disabled (MITM): Accepting any SSH host key on first connect lets an active MITM impersonate the server. Common in `paramiko.AutoAddPolicy()`.
Python: load `~/.ssh/known_hosts` and use `paramiko.RejectPolicy()`. Go: implement a `ssh.HostKeyCallback` that compares against a known fingerprint. Java JSch: load known_hosts via `jsch.setKnownHosts(...)`.
src/latch_cli/services/k8s/develop.py:154
high Security checks quality Quality conf 1.00 ✓ Repobility 25 occurrences `self.load` used but never assigned in __init__
Method `list_registry_projects` of class `Account` reads `self.load`, but no assignment to it exists in __init__ (and no class-level fallback). This raises AttributeError the first time the method runs against an instance.
4 files, 25 locations
src/latch/registry/table.py:183, 212, 240, 257, 361, 369, 401 (7 hits)
src/latch_sdk_config/user.py:29, 38, 51, 59, 80, 91, 95 (7 hits)
src/latch_cli/tinyrequests.py:28, 54, 55, 57, 59 (6 hits)
src/latch/account.py:173, 201, 334, 336, 366 (5 hits)
high Security checks software dependencies conf 0.88 asyncssh: PYSEC-2023-237
An issue in AsyncSSH v2.14.0 and earlier allows attackers to control the extension info message (RFC 8308) via a man-in-the-middle attack.
uv.lock
high Security checks software dependencies conf 0.88 asyncssh: PYSEC-2023-239
An issue in AsyncSSH v2.14.0 and earlier allows attackers to control the remote end of an SSH client session via packet injection/removal and shell emulation.
uv.lock
high Security checks software dependencies conf 0.88 cryptography: GHSA-r6ph-v2qm-q3c2
cryptography Vulnerable to a Subgroup Attack Due to Missing Subgroup Validation for SECT Curves
uv.lock
high Security checks software dependencies conf 0.88 cryptography: PYSEC-2026-35
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Prior to version 46.0.6, DNS name constraints were only validated against SANs within child certificates, and not the "peer name" presented during each validation. Consequently, cryptography woul…
uv.lock
high Security checks software dependencies conf 0.88 cryptography: PYSEC-2026-36
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. From 45.0.0 to before 46.0.7, if a non-contiguous buffer was passed to APIs which accepted Python buffers (e.g. Hash.update()), this could lead to buffer overflows. This vulnerability is fixed in…
uv.lock
high Security checks cicd CI/CD security conf 0.92 Dockerfile copies the entire context without .dockerignore
COPY . or ADD . sends the full build context to Docker. Without .dockerignore this can include secrets, git history, and local artifacts.
src/latch_cli/services/init/example_snakemake/Dockerfile:19 CI/CD securitycontainers
high Security checks cicd CI/CD security conf 0.92 Dockerfile copies the entire context without .dockerignore
COPY . or ADD . sends the full build context to Docker. Without .dockerignore this can include secrets, git history, and local artifacts.
src/latch_cli/services/init/example_nfcore/Dockerfile:14 CI/CD securitycontainers
high Security checks software dependencies conf 0.90 ✓ Repobility 3 occurrences Dockerfile FROM `alpine:3.12` not pinned by digest
`FROM alpine:3.12` resolves the tag at build time. The registry CAN re-push a different image for the same tag, so every build is potentially different. Production images should pin to `image@sha256:...` for reproducibility + supply-chain integrity.
3 files, 3 locations
Dockerfile.docs:1
src/latch_cli/services/init/example_nfcore/Dockerfile:2
src/latch_cli/services/init/example_snakemake/Dockerfile:1
high Security checks cicd CI/CD security conf 0.92 Dockerfile pipes a remote script into a shell
Piping downloaded code directly into a shell bypasses checksum verification and makes builds dependent on mutable remote content.
src/latch_cli/services/init/example_nfcore/Dockerfile:10 CI/CD securitycontainers
high Security checks software dependencies conf 0.88 gitpython: GHSA-2mqj-m65w-jghx
Untrusted search path under some conditions on Windows allows arbitrary code execution
uv.lock
high Security checks software dependencies conf 0.88 gitpython: GHSA-7545-fcxq-7j24
GitPython reference APIs has a path traversal vulnerability that allows arbitrary file write and delete outside the repository
uv.lock
high Security checks software dependencies conf 0.88 gitpython: GHSA-mv93-w799-cj2w
GitPython: Newline injection in config_writer() section parameter bypasses CVE-2026-42215 patch, enabling RCE via core.hooksPath
uv.lock
high Security checks software dependencies conf 0.88 gitpython: GHSA-v87r-6q3f-2j67
GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath
uv.lock
high Security checks software dependencies conf 0.88 gitpython: GHSA-x2qx-6953-8485
GitPython: Unsafe option check validates multi_options before shlex.split transformation
uv.lock
high Security checks software dependencies conf 0.88 gitpython: PYSEC-2024-4
GitPython is a python library used to interact with Git repositories. There is an incomplete fix for CVE-2023-40590. On Windows, GitPython uses an untrusted search path if it uses a shell to run `git`, as well as when it runs `bash.exe` to interpret hooks. If either of those features are used on Wi…
uv.lock
high Security checks software dependencies conf 0.88 jaraco-context: GHSA-58pv-8j8x-9vj2
jaraco.context Has a Path Traversal Vulnerability
uv.lock
high Security checks software dependencies conf 0.88 orjson: PYSEC-2026-107
The orjson.dumps function in orjson thru 3.11.4 does not limit recursion for deeply nested JSON documents.
uv.lock
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_data
Test function `test_data` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
src/latch_cli/main.py:1703
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_data_ls
Test function `test_data_ls` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
src/latch_cli/main.py:1749
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_data_remove
Test function `test_data_remove` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
src/latch_cli/main.py:1735
high Security checks quality Quality conf 1.00 ✓ Repobility Phantom test coverage: test_data_upload
Test function `test_data_upload` runs code but contains no assert / expect / should call — it passes regardless of behaviour. Adds line coverage without verifying anything.
src/latch_cli/main.py:1720
high Security checks software dependencies conf 0.88 protobuf: GHSA-7gcm-g887-7qv7
protobuf affected by a JSON recursion depth bypass
uv.lock
high Security checks software dependencies conf 0.88 protobuf: GHSA-8qvm-5x2c-j2w7
protobuf-python has a potential Denial of Service issue
uv.lock
high Security checks software dependencies conf 0.88 py: PYSEC-2022-42969
The py library through 1.11.0 for Python allows remote attackers to conduct a ReDoS (Regular expression Denial of Service) attack via a Subversion repository with crafted info data, because the InfoSvnCommand argument is mishandled.
uv.lock
high Security checks software dependencies conf 0.88 pyasn1: GHSA-63vm-454h-vhhq
pyasn1 has a DoS vulnerability in decoder
uv.lock
high Security checks software dependencies conf 0.88 pyasn1: GHSA-jr27-m4p2-rc6r
Denial of Service in pyasn1 via Unbounded Recursion
uv.lock
high Security checks software dependencies conf 0.88 pyjwt: PYSEC-2025-183
pyjwt v2.10.1 was discovered to contain weak encryption. NOTE: this is disputed by the Supplier because the key length is chosen by the application that uses the library (admittedly, library users may benefit from a minimum value and a mechanism for opting in to strict enforcement).
uv.lock
high Security checks software dependencies conf 0.88 pyjwt: PYSEC-2026-120
PyJWT is a JSON Web Token implementation in Python. Prior to 2.12.0, PyJWT does not validate the crit (Critical) Header Parameter defined in RFC 7515 §4.1.11. When a JWS token contains a crit array listing extensions that PyJWT does not understand, the library accepts the token instead of rejecting…
uv.lock
high Security checks software dependencies conf 0.88 pyjwt: PYSEC-2026-175
PyJWT is a JSON Web Token implementation in Python. Prior to 2.13.0, PyJWKClient passes its uri argument directly to urllib.request.urlopen() which uses Python stdlib's default OpenerDirector registering HTTPHandler, HTTPSHandler, FTPHandler, FileHandler, and DataHandler. There is currently no docu…
uv.lock
high Security checks software dependencies conf 0.88 pyjwt: PYSEC-2026-176
PyJWT is a JSON Web Token implementation in Python. From 2.9.0 to 2.12.1, there is a verifier-side algorithm allow-list bypass when jwt.decode() or jwt.decode_complete() are called with a PyJWK key. The token header alg is checked against the caller-supplied algorithms allow-list, but signature ver…
uv.lock
high Security checks software dependencies conf 0.88 pyjwt: PYSEC-2026-177
PyJWT is a JSON Web Token implementation in Python. Prior to 2.13.0, PyJWKClient.get_signing_key() forces a fresh HTTP request to the JWKS endpoint for every JWT with an unknown kid value, with no rate limiting. Since kid comes from the unverified token header, an attacker can trigger unlimited out…
uv.lock
high Security checks software dependencies conf 0.88 pyjwt: PYSEC-2026-178
PyJWT is a JSON Web Token implementation in Python. From 2.8.0 to 2.12.1, when verifying detached JWS tokens using the unencoded-payload option ("b64": false, RFC 7797), PyJWT performs Base64URL decoding of the compact-serialization payload segment before enforcing the detached-payload rules. For b…
uv.lock
high Security checks software dependencies conf 0.88 pyjwt: PYSEC-2026-179
PyJWT is a JSON Web Token implementation in Python. Prior to 2.13.0, when the verifier is decoding JSON Web Tokens, while supporting both asymmetric and HMAC algorithms, the library does not validate use of JSON Web Keys in HMAC algorithm, allowing attacker to use the issuer public key as the secre…
uv.lock
high Security checks software dependencies conf 0.88 urllib3: GHSA-2xpw-w6gg-jr37
urllib3 streaming API improperly handles highly compressed data
uv.lock
high Security checks software dependencies conf 0.88 urllib3: GHSA-38jv-5279-wg99
Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API)
uv.lock
high Security checks software dependencies conf 0.88 urllib3: GHSA-gm62-xv2j-4w53
urllib3 allows an unbounded number of links in the decompression chain
uv.lock
high Security checks software dependencies conf 0.88 urllib3: PYSEC-2026-141
urllib3 is an HTTP client library for Python. From 1.23 to before 2.7.0, cross-origin redirects followed from the low-level API via ProxyManager.connection_from_url().urlopen(..., assert_same_host=False) still forward these sensitive headers. This vulnerability is fixed in 2.7.0.
uv.lock
high Security checks software dependencies conf 0.88 wheel: GHSA-8rrh-rw8j-w5fx
Wheel Affected by Arbitrary File Permission Modification via Path Traversal in wheel unpack
uv.lock
high System graph security Secrets conf 1.00 .env file present in repo: src/latch_cli/services/init/assemble_and_sort/.env
A raw .env file is in the working tree. Verify it isn't committed and that secrets are in a vault.
Config
high System graph hardware Supply chain conf 1.00 Dockerfile pipes a remote installer into a shell
Executing downloaded code during image build gives the remote endpoint build-time code execution. Prefer pinned packages or verify downloaded installers by checksum/signature.
src/latch_cli/services/init/example_nfcore/Dockerfile:10 containersRemote installer
high System graph security security conf 1.00 Insecure pattern 'exec_used' in src/latch_cli/services/launch/launch.py:49
Found a known-risky pattern (exec_used). Review and replace if possible.
src/latch_cli/services/launch/launch.py:49 Exec used
medium Security checks security auth conf 0.92 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks but does not define .repobility/access.yml or equivalent authorization documentation.
The repository uses web/API frameworks but does not define .repobility/access.yml or equivalent authorization documentation.
high Security checks security auth conf 0.74 [AUC002] Low visible authorization coverage in route inventory: Only 12.5% of discovered routes show nearby authentication, authorization, middleware, or public-route evidence.
Only 12.5% of discovered routes show nearby authentication, authorization, middleware, or public-route evidence.
low Security checks quality Error handling conf 1.00 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even in cleanup code, log at DEBUG level.
Log the error: `except Exception: logger.debug('cleanup failed', exc_info=True)`. Or handle specific exception types.
src/latch_cli/services/login.py:109
medium Security checks software dependencies conf 0.88 asyncssh: GHSA-hfmc-7525-mj55
AsyncSSH vulnerable to Prefix Truncation Attack (a.k.a. Terrapin Attack) against ChaCha20-Poly1305 and Encrypt-then-MAC
uv.lock
low Security checks quality Error handling conf 0.55 ✓ Repobility 7 occurrences Broad exception handler needs review
This handler catches Exception/BaseException. It is actionable when it swallows errors without logging, re-raising, or returning a structured error. Handlers that intentionally convert exceptions into typed error results should not be treated as high risk.
7 files, 7 locations
src/latch_cli/centromere/ctx.py:167
src/latch_cli/main.py:1678
src/latch_cli/nextflow/config.py:38
src/latch_cli/services/launch/type_converter.py:340
src/latch_cli/services/local_dev_old.py:423
src/latch_cli/utils/__init__.py:259
src/latch_sdk_gql/execute.py:55
Error handlingquality
medium Security checks software dependencies conf 0.88 diskcache: GHSA-w8v5-vhqr-4h9v
DiskCache has unsafe pickle deserialization
uv.lock
medium Security checks cicd CI/CD security conf 0.90 Docker build context has no .dockerignore
Without .dockerignore, build context can include source history, local env files, dependencies, and generated artifacts.
.dockerignore CI/CD securitycontainers
high Security checks cicd CI/CD security conf 0.82 3 occurrences Docker final stage has no non-root USER
Docker images run as root unless the image or Dockerfile switches to a non-root user.
3 files, 3 locations
Dockerfile.docs:1
src/latch_cli/services/init/example_nfcore/Dockerfile:2
src/latch_cli/services/init/example_snakemake/Dockerfile:1
CI/CD securitycontainers
medium Security checks software dependencies conf 0.88 idna: GHSA-65pc-fj4g-8rjx
Internationalized Domain Names in Applications (IDNA): Specially crafted inputs to idna.encode() can bypass CVE-2024-3651 fix
uv.lock
medium Security checks software dependencies conf 0.88 marshmallow: GHSA-428g-f7cq-pgp5
Marshmallow has DoS in Schema.load(many)
uv.lock
medium Security checks quality Quality conf 1.00 ✓ Repobility Mutable default argument in `deseq2_wf` (list)
`def deseq2_wf(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutating it in one call mutates it for every future call too.
src/latch/verified/deseq2.py:16
medium Security checks quality Quality conf 1.00 ✓ Repobility 6 occurrences Mutable default argument in `transform_types_in_variable_map` (dict)
`def transform_types_in_variable_map(... = []/{}/set())` — Python's default value is constructed ONCE at function definition time and shared across all calls. Mutating it in one call mutates it for every future call too.
2 files, 6 locations
src/latch_cli/tinyrequests.py:70, 117, 154, 176, 198 (5 hits)
src/latch_cli/snakemake/workflow.py:269
medium Security checks software dependencies conf 0.88 pynacl: GHSA-mrfv-m5wm-5w6w
libsodium has Incomplete List of Disallowed Inputs
uv.lock
medium Security checks software dependencies conf 0.88 pytest: GHSA-6w46-j5rx-g56g
pytest has vulnerable tmpdir handling
uv.lock
medium Security checks software dependencies conf 0.88 requests: GHSA-gc5v-m9x4-r6x2
Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function
uv.lock
medium Security checks software dependencies conf 0.88 urllib3: GHSA-pq67-6m6q-mj2v
urllib3 redirects are not disabled when retries are disabled on PoolManager instantiation
uv.lock
medium System graph hardware Security conf 1.00 Dockerfile runs as root: src/latch_cli/services/init/example_nfcore/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph hardware Security conf 1.00 Dockerfile runs as root: src/latch_cli/services/init/example_snakemake/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph security security conf 1.00 Insecure pattern 'subprocess_shell_true' in src/latch_cli/services/init/assemble_and_sort/assemble.py:36
Found a known-risky pattern (subprocess_shell_true). Review and replace if possible.
src/latch_cli/services/init/assemble_and_sort/assemble.py:36 Subprocess shell true
medium System graph security security conf 1.00 Insecure pattern 'subprocess_shell_true' in src/latch_cli/services/init/assemble_and_sort/sort.py:29
Found a known-risky pattern (subprocess_shell_true). Review and replace if possible.
src/latch_cli/services/init/assemble_and_sort/sort.py:29 Subprocess shell true
medium System graph security security conf 1.00 Insecure pattern 'subprocess_shell_true' in src/latch_cli/services/init/init.py:106
Found a known-risky pattern (subprocess_shell_true). Review and replace if possible.
src/latch_cli/services/init/init.py:106 Subprocess shell true
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/latch/functions/messages.py:56
`requests.post(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/latch_cli/centromere/ctx.py:348
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/latch_cli/nextflow/forch_register.py:162
`requests.put(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/latch_cli/nextflow/workflow.py:59
`requests.post(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/latch_cli/services/get.py:51
`requests.post(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/latch_cli/services/init/assemble_and_sort/assemble.py:36
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/latch_cli/services/init/assemble_and_sort/sort.py:29
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/latch_cli/services/init/example_conda/conda_task.py:12
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/latch_cli/services/init/example_r/r_task.py:13
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/latch_cli/services/init/init.py:86
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/latch_cli/services/register/utils.py:206
`requests.post(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/latch_cli/snakemake/workflow.py:758
`requests.post(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/latch_cli/utils/__init__.py:250
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Tests conf 1.00 Very low test-to-source ratio
9 test file(s) for 169 source file(s) (ratio 0.05). Consider adding integration or unit tests for critical paths.
Coverage
low Security checks security auth conf 0.76 [AUC005] No authorization-focused tests detected: No test files with common authorization, ownership, 403, admin, or super_admin assertions were found.
No test files with common authorization, ownership, 403, admin, or super_admin assertions were found.
low Security checks cicd CI/CD security conf 0.72 Dockerfile installs recommended OS packages
Installing recommended packages often pulls in unnecessary runtime surface area.
src/latch_cli/services/init/example_nfcore/Dockerfile:7 CI/CD securitycontainers
high Security checks cicd CI/CD security conf 0.72 Dockerfile keeps pip download cache
Pip's package cache increases image size and can preserve unnecessary artifacts.
src/latch_cli/services/init/example_snakemake/Dockerfile:16 CI/CD securitycontainers
high Security checks cicd CI/CD security conf 0.72 Dockerfile keeps pip download cache
Pip's package cache increases image size and can preserve unnecessary artifacts.
src/latch_cli/services/init/example_nfcore/Dockerfile:3 CI/CD securitycontainers
low Security checks cicd CI/CD security conf 0.74 Dockerfile leaves apt package indexes in the image layer
Package indexes increase image size and can expose stale metadata in the final image layer.
src/latch_cli/services/init/example_nfcore/Dockerfile:7 CI/CD securitycontainers
low Security checks quality Quality conf 0.64 Duplicate top-level symbol appears in a patch-style file
A generated replacement file defining the same public function or class name as another module can mean the new logic is not actually wired into the running code.
src/latch_cli/services/local_dev_old.py:1
low Security checks quality Quality conf 0.60 5 occurrences Duplicated implementation block across source files
Duplicate implementation blocks are maintenance debt. Keep them visible, but they are not a high-severity defect unless the duplicated logic is security-sensitive or drifting.
5 files, 5 locations
src/latch/registry/project.py:194
src/latch/registry/table.py:158
src/latch_cli/services/init/example_r/__init__.py:7
src/latch_cli/services/k8s/execute.py:32
src/latch_cli/services/preview.py:86
duplicationquality
low Security checks software dependencies conf 0.88 paramiko: GHSA-r374-rxx8-8654
Paramiko rsakey.py allows the SHA-1 algorithm
uv.lock
low Security checks software dependencies conf 0.88 pygments: GHSA-5239-wwwm-4pmq
Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
uv.lock
high Security checks quality Quality conf 0.62 Source file name looks like an AI patch artifact
Files named as final, fixed, copy, new, or backup are often temporary patch artifacts. They may be legitimate, but they deserve review before becoming production surface area.
src/latch_cli/services/local_dev_old.py:1
high Security checks quality Quality conf 0.62 Source file name looks like an AI patch artifact
Files named as final, fixed, copy, new, or backup are often temporary patch artifacts. They may be legitimate, but they deserve review before becoming production surface area.
src/latch/ldata/_transfer/remote_copy.py:1
low System graph hardware Coverage conf 1.00 Containers defined but no K8s/orchestration manifest found
Repo has Dockerfiles/compose but no Kubernetes/Nomad manifests. If the target deployment is K8s, the manifests may live in a separate ops repo.
Deployment
low System graph hardware Supply chain conf 1.00 Docker base image is tag-pinned but not digest-pinned: 812206152185.dkr.ecr.us-west-2.amazonaws.com/latch-base:fe0b-main
Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter.
src/latch_cli/services/init/example_snakemake/Dockerfile:1 containersPinned dependencies
low System graph hardware Supply chain conf 1.00 Docker base image is tag-pinned but not digest-pinned: 812206152185.dkr.ecr.us-west-2.amazonaws.com/latch-base:fe0b-main
Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter.
src/latch_cli/services/init/example_nfcore/Dockerfile:2 containersPinned dependencies
low System graph software Dead code candidate conf 1.00 File has no detected symbols: docs/source/conf.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: src/latch/resources/map_tasks.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: src/latch/types/json.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: src/latch_cli/exceptions/cache.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: src/latch_cli/services/init/example_snakemake/latch_metadata.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: src/latch_cli/services/init/example_snakemake/scripts/plot-quals.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: src/latch_cli/services/register/constants.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph software Dead code candidate conf 1.00 File has no detected symbols: src/latch_cli/services/stop_pod.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 10 places
Functions with the same first-5-line body hash: src/latch/idl/core/condition.py:to_idl, src/latch/idl/core/condition.py:to_idl, src/latch/idl/core/condition.py:to_idl, src/latch/idl/core/condition.py:to_idl This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://…
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 11 places
Functions with the same first-5-line body hash: src/latch/idl/admin/common.py:to_idl, src/latch/idl/admin/common.py:to_idl, src/latch/idl/admin/common.py:to_idl, src/latch/idl/admin/common.py:to_idl This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai…
duplicatesduplication
low System graph quality Integrity conf 1.00 4 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/latch_sdk_config/user.py:token_path, src/latch_sdk_config/user.py:token This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
4 occurrences
repo-level (4 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 2 occurrences Near-duplicate function bodies in 22 places
Functions with the same first-5-line body hash: src/latch/idl/core/workflow.py:to_idl, src/latch/idl/core/workflow.py:to_idl, src/latch/idl/core/workflow.py:to_idl, src/latch/idl/core/workflow.py:to_idl This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.h…
2 occurrences
repo-level (2 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 26 places
Functions with the same first-5-line body hash: src/latch/idl/core/types.py:to_idl, src/latch/idl/core/types.py:to_idl, src/latch/idl/core/types.py:to_idl, src/latch/idl/core/types.py:to_idl This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hy…
duplicatesduplication
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: src/latch/account.py:list_registry_projects, src/latch/account.py:list_registry_projects, src/latch/account.py:list_registry_projects This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). C…
3 occurrences
repo-level (3 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 4 places
Functions with the same first-5-line body hash: src/latch/types/plots.py:asdict, src/latch/types/plots.py:asdict, src/latch/types/plots.py:asdict, src/latch/types/plots.py:asdict This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Cons…
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 48 places
Functions with the same first-5-line body hash: src/latch/idl/core/literals.py:to_idl, src/latch/idl/core/literals.py:to_idl, src/latch/idl/core/literals.py:to_idl, src/latch/idl/core/literals.py:to_idl This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.h…
duplicatesduplication
low System graph quality Integrity conf 1.00 2 occurrences Near-duplicate function bodies in 5 places
Functions with the same first-5-line body hash: src/latch/types/metadata.py:dict, src/latch/types/metadata.py:dict, src/latch/types/metadata.py:dict, src/latch/types/metadata.py:dict This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). …
2 occurrences
repo-level (2 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 6 places
Functions with the same first-5-line body hash: src/latch/idl/core/execution.py:to_idl, src/latch/idl/core/execution.py:to_idl, src/latch/idl/core/execution.py:to_idl, src/latch/idl/core/execution.py:to_idl This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://…
duplicatesduplication
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 7 places
Functions with the same first-5-line body hash: src/latch/idl/admin/schedule.py:to_idl, src/latch/idl/admin/schedule.py:to_idl, src/latch/idl/admin/schedule.py:to_idl, src/latch/idl/admin/schedule.py:to_idl This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://…
3 occurrences
repo-level (3 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `launch_v2` in src/latch_cli/services/launch/launch.py:16
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `local_dev_old` in src/latch_cli/main.py:545
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `remote_copy` in src/latch/ldata/_transfer/remote_copy.py:12
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `remote_copy` in src/latch/ldata/path.py:29
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `remote_copy` in src/latch_cli/services/cp/main.py:9
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph software Dead code conf 1.00 Possibly dead Python function: add_execution_results
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/executions.py:110
low System graph software Dead code conf 1.00 Possibly dead Python function: combine
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/functions/operators.py:142
low System graph software Dead code conf 1.00 Possibly dead Python function: create_conditional_section
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/resources/conditional.py:4
low System graph software Dead code conf 1.00 Possibly dead Python function: decorator
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/resources/workflow.py:57
low System graph software Dead code conf 1.00 Possibly dead Python function: default_samplesheet_constructor
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/types/metadata.py:569
low System graph software Dead code conf 1.00 Possibly dead Python function: delete_registry_project
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/account.py:280
low System graph software Dead code conf 1.00 Possibly dead Python function: file_glob
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/types/glob.py:8
low System graph software Dead code conf 1.00 Possibly dead Python function: filter_func
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/functions/operators.py:134
low System graph software Dead code conf 1.00 Possibly dead Python function: group_tuple
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/functions/operators.py:79
low System graph software Dead code conf 1.00 Possibly dead Python function: inner_join
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/functions/operators.py:56
low System graph software Dead code conf 1.00 Possibly dead Python function: latch_filter
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/functions/operators.py:117
low System graph software Dead code conf 1.00 Possibly dead Python function: left_join
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/functions/operators.py:34
low System graph software Dead code conf 1.00 Possibly dead Python function: outer_join
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/functions/operators.py:65
low System graph software Dead code conf 1.00 Possibly dead Python function: pre_execute
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/resources/dynamic.py:127
low System graph software Dead code conf 1.00 Possibly dead Python function: rename_current_execution
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/executions.py:82
low System graph software Dead code conf 1.00 Possibly dead Python function: report_nextflow_used_storage
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/executions.py:143
low System graph software Dead code conf 1.00 Possibly dead Python function: right_join
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/functions/operators.py:45
low System graph software Dead code conf 1.00 Possibly dead Python function: upsert_registry_project
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/account.py:239
low System graph software Dead code conf 1.00 Possibly dead Python function: workflow_reference
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/latch/resources/reference_workflow.py:6
low System graph quality Integrity conf 1.00 Stub function `_relaunch_modal` (body is just `pass`/`return`) — src/latch_cli/services/get_executions.py:467
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Integrity conf 1.00 Stub function `empty_generator` (body is just `pass`/`return`) — src/latch_cli/snakemake/single_task_snakemake.py:234
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Integrity conf 1.00 Stub function `get_container` (body is just `pass`/`return`) — src/latch_cli/snakemake/workflow.py:1340
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Complexity conf 1.00 Very large file: src/latch_cli/snakemake/workflow.py (1793 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
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/b86e022c-e18c-4345-8a54-afd7dc1b481d/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/b86e022c-e18c-4345-8a54-afd7dc1b481d/

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.