lightseekorg/tokenspeed
lightseekorg/tokenspeedClick the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.
This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.
Code quality scan: 51 findings (B, 68/100)
Hi @lightseekorg, an automated scan of this repository surfaced **51 code-quality findings** that may be worth a look.
Full details, severity filters, and per-file context are at the link below — feel free to close this issue if it isn't useful to you.
## Full interactive report
**https://repobility.com/scan/36c59998-1773-42d3-8cb0-456402726f35/**

## At a glance
- **Score**: `68/100` • **Grade**: `B`
- **Scanned**: `2026-05-16 22:31 UTC`
- **Lines of code**: 177,981
- **Total findings**: 51
- **Security-tagged**: 4
- **Credential / secret patterns**: 0
## Top issues, with file & line
_These are deterministic rule-based findings — the file paths and line numbers below are real and can be verified in your tree._
1. **[high]** [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTTP request to a user-controlled URL without allowlist validation. Attackers can probe internal services (169.254.169.254 metadata, internal Kubernetes endpoints, file:// URIs), exfiltrate data, or pivot through your network. SSRF is OWASP A10:2021 and a frequent foothold in cloud breaches. — `python/tokenspeed/bench.py:285`
_Validate the URL against an allowlist BEFORE fetching: ALLOWED = {'images.example.com', 'cdn.example.com'} host = urlparse(url).hostname if host not in ALLOWED: abort(400)…_
2. **[high]** [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTTP request to a user-controlled URL without allowlist validation. Attackers can probe internal services (169.254.169.254 metadata, internal Kubernetes endpoints, file:// URIs), exfiltrate data, or pivot through your network. SSRF is OWASP A10:2021 and a frequent foothold in cloud breaches. — `python/tokenspeed/runtime/pd/mini_lb.py:60`
_Validate the URL against an allowlist BEFORE fetching: ALLOWED = {'images.example.com', 'cdn.example.com'} host = urlparse(url).hostname if host not in ALLOWED: abort(400)…_
3. **[high]** [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTTP request to a user-controlled URL without allowlist validation. Attackers can probe internal services (169.254.169.254 metadata, internal Kubernetes endpoints, file:// URIs), exfiltrate data, or pivot through your network. SSRF is OWASP A10:2021 and a frequent foothold in cloud breaches. — `python/tokenspeed/runtime/cache/storage/mooncake_store/mooncake_store.py:288`
_Validate the URL against an allowlist BEFORE fetching: ALLOWED = {'images.example.com', 'cdn.example.com'} host = urlparse(url).hostname if host not in ALLOWED: abort(400)…_
4. **[high]** Docker final stage runs as root — `docker/Dockerfile:4`
_The final runtime stage explicitly uses root. A compromised app process would have root inside the container._
5. **[low]** Duplicated implementation block across source files — `python/tokenspeed/runtime/configs/qwen3_config.py:46`
_Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found i…_
See all 51 findings, with severity filters and AI fix prompts: **https://repobility.com/scan/36c59998-1773-42d3-8cb0-456402726f35/**
---
**What is this?** [Repobility](https://repobility.com) is a research project that scans public repositories with a multi-layer static analyzer (rule-based, no AI hallucinations) and learns code-quality patterns across a broad cross-repo corpus. This is **not a sales pitch** — there's no paywall, no signup required to view the report, and no payment ask. If the findings aren't useful, please close this issue and we won't post again.
**To re-run after fixes land:** paste your repo URL at [repobility.com](https://repobility.com) — fresh scan, free.
_Issue filed via the public Repobility report at https://repobility.com/scan/36c59998-1773-42d3-8cb0-456402726f35/._
The button opens GitHub’s new-issue page in a new tab. You will see the title + body pre-filled — review, edit if you want, then click GitHub’s "Submit new issue" button. Repobility never posts anything on your behalf.