← Back to scan
File as GitHub Issue repo: prometheus/prometheus

Push this scan report to prometheus/prometheus

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

innerHTML XSS — template literal with server-supplied data

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED013 [MINED013] Password In Url: https://user:password@host — leaks creds via logs, referrer, … scripts/sync_repo_files.sh:86
CRIT MINED116 [MINED116] Workflow uses `secrets.NPM_TOKEN` on a `pull_request` trigger: This workflow t… .github/workflows/ci.yml:391
CRIT MINED116 [MINED116] Workflow uses `secrets.PROMBOT_GITHUB_TOKEN` on a `pull_request` trigger: This… .github/workflows/ci.yml:343
HIGH MINED027 [MINED027] React State Array Mutation: state.X.push/splice/sort followed by setState — Re… web/ui/mantine-ui/src/state/queryPageSl…:115
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… web/ui/react-app/src/pages/graph/GraphH…:124
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… web/ui/react-app/src/pages/flags/Flags.…:60
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… web/ui/mantine-ui/src/promql/serialize.…:38
HIGH SEC100 [SEC100] CORS permissive Access-Control-Allow-Origin: *: Permissive CORS policy (`*` orig… util/httputil/cors.go:41
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). storage/remote/storage.go:18
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). notifier/alertmanagerset.go:17
HIGH MINED016 [MINED016] Go Error Ignored: _, err := fn() with err not checked. Go anti-pattern. discovery/kubernetes/ingress.go:60
HIGH MINED016 [MINED016] Go Error Ignored: _, err := fn() with err not checked. Go anti-pattern. discovery/ionos/server.go:89
HIGH MINED016 [MINED016] Go Error Ignored: _, err := fn() with err not checked. Go anti-pattern. cmd/promtool/query.go:82
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… documentation/examples/custom-sd/adapte…:165
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… discovery/xds/client.go:105
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… cmd/promtool/debug.go:38
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … web/ui/react-app/src/pages/graph/Expres…:220
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … web/ui/mantine-ui/src/pages/query/Expre…:320
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … cmd/promtool/analyze.go:109
HIGH MINED126 [MINED126] Workflow container/services image `quay.io/prometheus/golang-builder` unpinned… .github/workflows/repo_sync.yml:15
HIGH MINED126 [MINED126] Workflow container/services image `quay.io/prometheus/golang-builder:1.26-base… .github/workflows/ci.yml:245
HIGH MINED126 [MINED126] Workflow container/services image `quay.io/prometheus/golang-builder:1.26-base… .github/workflows/ci.yml:157
HIGH MINED126 [MINED126] Workflow container/services image `quay.io/prometheus/golang-builder:1.26-base… .github/workflows/ci.yml:137
HIGH MINED126 [MINED126] Workflow container/services image `quay.io/prometheus/golang-builder:1.26-base… .github/workflows/ci.yml:99
HIGH MINED126 [MINED126] Workflow container/services image `quay.io/prometheus/golang-builder:1.25-base… .github/workflows/ci.yml:84
HIGH MINED126 [MINED126] Workflow container/services image `quay.io/prometheus/golang-builder:1.26-base… .github/workflows/ci.yml:68
HIGH MINED126 [MINED126] Workflow container/services image `quay.io/prometheus/golang-builder:1.26-base… .github/workflows/ci.yml:53
HIGH MINED126 [MINED126] Workflow container/services image `quay.io/prometheus/golang-builder:1.26-base… .github/workflows/ci.yml:36
HIGH MINED126 [MINED126] Workflow container/services image `quay.io/prometheus/golang-builder:1.26-base… .github/workflows/ci.yml:19
HIGH MINED118 [MINED118] Dockerfile FROM `quay.io/prometheus/busybox- (no tag)` not pinned by digest: `… Dockerfile:3
HIGH MINED118 [MINED118] Dockerfile FROM `gcr.io/distroless/static-debian13:nonroot-` not pinned by dig… Dockerfile.distroless:4
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… web/ui/mantine-ui/src/components/RuleDe…:60
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … rules/rule.go:43
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … rules/recording.go:85
MED SEC091 [SEC091] Go: net/http server without timeouts: HTTP server without ReadHeaderTimeout/Read… documentation/examples/remote_storage/r…:280
MED SEC091 [SEC091] Go: net/http server without timeouts: HTTP server without ReadHeaderTimeout/Read… documentation/examples/remote_storage/e…:73
MED SEC089 [SEC089] Go: bind to all interfaces (0.0.0.0): Server binds to all network interfaces — e… util/testutil/port.go:56
MED SEC089 [SEC089] Go: bind to all interfaces (0.0.0.0): Server binds to all network interfaces — e… documentation/examples/remote_storage/e…:73
MED AGT012 Agent control bridge may listen on a network interface without visible auth web/api/v1/testdata/openapi_3.2_golden.…:573
MED AGT012 Agent control bridge may listen on a network interface without visible auth web/api/v1/testdata/openapi_3.1_golden.…:573
MED AGT012 Agent control bridge may listen on a network interface without visible auth discovery/moby/testdata/swarmprom/tasks…:128
LOW ERR003 [ERR003] Ignored Error (Go): Ignoring error return values. model/labels/sharding_stringlabels.go:35
LOW ERR003 [ERR003] Ignored Error (Go): Ignoring error return values. model/labels/sharding_dedupelabels.go:33
LOW ERR003 [ERR003] Ignored Error (Go): Ignoring error return values. model/labels/sharding.go:31
LOW AIC003 Duplicated implementation block across source files tsdb/fileutil/flock_unix.go:1
LOW AIC003 Duplicated implementation block across source files tsdb/fileutil/flock_solaris.go:1
LOW AIC003 Duplicated implementation block across source files rules/manager.go:35
LOW AIC003 Duplicated implementation block across source files prompb/io/prometheus/write/v2/codec.go:62
LOW AIC003 Duplicated implementation block across source files model/textparse/promparse.go:169
LOW AIC003 Duplicated implementation block across source files model/textparse/promlex.l.go:19
LOW AIC003 Duplicated implementation block across source files model/labels/sharding_dedupelabels.go:6
LOW AIC003 Duplicated implementation block across source files model/labels/sharding.go:6
LOW AIC003 Duplicated implementation block across source files model/labels/labels_stringlabels.go:342
LOW AIC003 Duplicated implementation block across source files model/labels/labels_stringlabels.go:33
LOW AIC003 Duplicated implementation block across source files discovery/vultr/vultr.go:40
LOW AIC003 Duplicated implementation block across source files discovery/uyuni/uyuni.go:91
LOW AIC003 Duplicated implementation block across source files discovery/uyuni/uyuni.go:90
LOW AIC003 Duplicated implementation block across source files discovery/scaleway/scaleway.go:174
LOW AIC003 Duplicated implementation block across source files discovery/scaleway/instance.go:59
LOW AIC003 Duplicated implementation block across source files discovery/puppetdb/puppetdb.go:66
LOW AIC003 Duplicated implementation block across source files discovery/puppetdb/puppetdb.go:13
LOW AIC003 Duplicated implementation block across source files discovery/ovhcloud/vps.go:1
LOW AIC003 Duplicated implementation block across source files discovery/nomad/nomad.go:55
LOW AIC003 Duplicated implementation block across source files discovery/moby/dockerswarm.go:89
LOW AIC003 Duplicated implementation block across source files discovery/linode/linode.go:69
LOW AIC003 Duplicated implementation block across source files discovery/kubernetes/service.go:58
LOW AIC003 Duplicated implementation block across source files discovery/kubernetes/service.go:1
LOW AIC003 Duplicated implementation block across source files discovery/kubernetes/pod.go:1
LOW AIC003 Duplicated implementation block across source files discovery/kubernetes/endpointslice.go:22
LOW AIC003 Duplicated implementation block across source files discovery/http/http.go:43
LOW AIC003 Duplicated implementation block across source files discovery/eureka/eureka.go:58
LOW AIC003 Duplicated implementation block across source files discovery/aws/msk.go:71
LOW AIC003 Duplicated implementation block across source files discovery/aws/lightsail.go:15
LOW AIC003 Duplicated implementation block across source files discovery/aws/elasticache.go:19
LOW DKR008 .dockerignore misses sensitive defaults .dockerignore
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. web/ui/react-app/src/pages/graph/TimeIn…:37
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. web/ui/react-app/src/pages/graph/GraphT…:10
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. web/ui/react-app/src/pages/graph/Graph.…:49
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. web/ui/react-app/src/hooks/useFetch.ts:22
INFO MINED058 [MINED058] React Dangerously Set Html: dangerouslySetInnerHTML bypasses Reacts JSX escapi… web/ui/react-app/src/pages/graph/Metric…:49
INFO MINED058 [MINED058] React Dangerously Set Html: dangerouslySetInnerHTML bypasses Reacts JSX escapi… web/ui/react-app/src/pages/flags/Flags.…:108
INFO MINED058 [MINED058] React Dangerously Set Html: dangerouslySetInnerHTML bypasses Reacts JSX escapi… web/ui/mantine-ui/src/pages/query/Metri…:126
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… web/ui/mantine-ui/src/pages/query/Expla…:81
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… web/ui/mantine-ui/src/pages/query/DataT…:90
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… web/ui/mantine-ui/src/components/Notifi…:73
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … web/ui/mantine-ui/src/pages/query/urlSt…:56
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … web/ui/mantine-ui/src/pages/query/Histo…:72
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … web/ui/mantine-ui/src/components/ErrorB…:26
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … web/ui/mantine-ui/src/promql/format.tsx:100
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … web/ui/mantine-ui/src/pages/query/Expla…:33
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … web/ui/mantine-ui/src/api/api.ts:76
INFO MINED055 [MINED055] Npm Install No Lockfile: Production image runs npm install (resolves new versi… scripts/npm-deps.sh:22
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… web/ui/react-app/src/pages/targets/__te…:9
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… documentation/examples/custom-sd/adapte…:165
INFO MINED071 [MINED071] Go Panic Call: panic() crashes the process. Should return error in most cases. discovery/registry.go:64
INFO MINED071 [MINED071] Go Panic Call: panic() crashes the process. Should return error in most cases. discovery/moby/dockerswarm.go:199
INFO MINED071 [MINED071] Go Panic Call: panic() crashes the process. Should return error in most cases. discovery/file/file.go:224
INFO MINED060 [MINED060] Go Context No Cancel: context.Background() at request handler boundary leaks g… cmd/promtool/metrics.go:115
INFO MINED060 [MINED060] Go Context No Cancel: context.Background() at request handler boundary leaks g… cmd/promtool/backfill.go:130
INFO MINED060 [MINED060] Go Context No Cancel: context.Background() at request handler boundary leaks g… cmd/promtool/analyze.go:64
Reset to top 5 100 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `prometheus/prometheus`

**Score: 84/100 (A)**  ·  100 findings  ·  scanned 2026-05-23 23:58 UTC  ·  363,042 LOC

| Severity | Count |
|---|---|
| CRITICAL | 3 |
| HIGH | 28 |
| MEDIUM | 10 |
| LOW | 34 |

📊 [Full filterable report](https://repobility.com/scan/f49f0d4c-44f5-476f-ae97-1d983f63dbf9/)  ·  ![scorecard](https://repobility.com/scan/f49f0d4c-44f5-476f-ae97-1d983f63dbf9/report.png?v=1779580720-s2)

### Top findings

1. **CRITICAL** `MINED013` — Password In Url
   `scripts/sync_repo_files.sh:86` · CWE-200 · ✓ Repobility
2. **CRITICAL** `MINED116` — Workflow uses `secrets.NPM_TOKEN` on a `pull_request` trigger
   `.github/workflows/ci.yml:391` · ✓ Repobility
3. **CRITICAL** `MINED116` — Workflow uses `secrets.PROMBOT_GITHUB_TOKEN` on a `pull_request` trigger
   `.github/workflows/ci.yml:343` · ✓ Repobility
4. **HIGH** `MINED027` — React State Array Mutation
   `web/ui/mantine-ui/src/state/queryPageSlice.ts:115` · CWE-682 · ✓ Repobility
5. **HIGH** `SEC040` — innerHTML XSS — template literal with server-supplied data
   `web/ui/react-app/src/pages/graph/GraphHelpers.ts:124` · CWE-79 · A03:2021 Injection (XSS)

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/f49f0d4c-44f5-476f-ae97-1d983f63dbf9/_
Already filed
'prometheus' is on the known-megaproject org list. These projects use auto-triage bots and established security disclosure channels. Unsolicited automated issues from Repobility would be perceived as AI-generated spam. For security findings, follow the project's SECURITY.md policy. For non-security findings, open a focused PR or community discussion instead.
Already filed
This repo publishes a SECURITY.md policy and the scan contains 10 Critical/High security finding(s). Public issue filing would violate coordinated disclosure. Submit privately via the project's security reporting channel.
Megaproject â high spam risk
Could not determine 'prometheus/prometheus' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.