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

Push this scan report to prisma/prisma

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

JS: require() with non-literal

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 MINED024 [MINED024] Js Eval Usage: eval() executes arbitrary code. Code injection risk. packages/internals/src/get-generators/u…:84
CRIT MINED024 [MINED024] Js Eval Usage: eval() executes arbitrary code. Code injection risk. packages/cli/src/bin.ts:207
CRIT MINED024 [MINED024] Js Eval Usage: eval() executes arbitrary code. Code injection risk. packages/cli/src/Generate.ts:36
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… packages/cli/src/utils/test-handlePanic…:20
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… packages/cli/src/Generate.ts:359
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… helpers/compile/plugins/resolvePathsPlu…:32
CRIT MINED013 [MINED013] Password In Url: https://user:password@host — leaks creds via logs, referrer, … .github/workflows/scripts/setup-postgre…:24
CRIT DKC007 Compose service contains a literal secret environment value docker/docker-compose.yml:149
CRIT DKC007 Compose service contains a literal secret environment value docker/docker-compose.yml:133
CRIT DKC007 Compose service contains a literal secret environment value docker/docker-compose.yml:116
CRIT DKC007 Compose service contains a literal secret environment value docker/docker-compose.yml:99
CRIT DKC007 Compose service contains a literal secret environment value docker/docker-compose.yml:51
CRIT DKC007 Compose service contains a literal secret environment value docker/docker-compose.yml:28
CRIT DKC007 Compose service contains a literal secret environment value docker/docker-compose.yml:5
CRIT MINED116 [MINED116] Workflow uses `secrets.CODSPEED_TOKEN` on a `pull_request` trigger: This workf… .github/workflows/benchmark.yml:88
CRIT MINED116 [MINED116] Workflow uses `secrets.BOT_TOKEN` on a `pull_request` trigger: This workflow t… .github/workflows/test.yml:95
HIGH MINED032 [MINED032] Ts Nocheck Comment: // @ts-nocheck silences all type checking for entire file. packages/client-generator-ts/src/utils/…:9
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/get-platform/src/test-utils/je…:39
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/client/src/runtime/utils/creat…:132
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/cli/src/utils/prompt/utils/dee…:42
HIGH SEC100 [SEC100] CORS permissive Access-Control-Allow-Origin: *: Permissive CORS policy (`*` orig… packages/cli/src/studio-server.ts:47
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/cli/src/SubCommand.ts:125
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/adapter-planetscale/src/planet…:205
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/adapter-mariadb/src/mariadb.ts:227
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/adapter-d1/src/d1-worker.ts:172
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/adapter-better-sqlite3/src/bet…:186
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… helpers/compile/plugins/replaceWithPlug…:31
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/fetch-engine/src/getHash.ts:11
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/cli/src/studio-server.ts:42
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … eslint-local-rules/valid-exported-types…:26
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/cli/src/platform/_lib/help.ts:12
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/cli/scripts/preinstall.ts:39
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… eslint-local-rules/valid-exported-types…:24
HIGH MINED115 [MINED115] Action `peter-evans/create-pull-request` pinned to mutable ref `@v8`: `uses: p… .github/workflows/update-engines-versio…:163
HIGH MINED115 [MINED115] Action `juliangruber/approve-pull-request-action` pinned to mutable ref `@v2`:… .github/workflows/update-engines-versio…:149
HIGH MINED115 [MINED115] Action `peter-evans/create-pull-request` pinned to mutable ref `@v8`: `uses: p… .github/workflows/update-engines-versio…:115
HIGH MINED115 [MINED115] Action `actions/github-script` pinned to mutable ref `@v8`: `uses: actions/git… .github/workflows/update-engines-versio…:102
HIGH MINED115 [MINED115] Action `nick-fields/retry` pinned to mutable ref `@v3`: `uses: nick-fields/ret… .github/workflows/update-engines-versio…:92
HIGH MINED115 [MINED115] Action `nick-fields/retry` pinned to mutable ref `@v3`: `uses: nick-fields/ret… .github/workflows/update-engines-versio…:83
HIGH MINED115 [MINED115] Action `nick-fields/retry` pinned to mutable ref `@v3`: `uses: nick-fields/ret… .github/workflows/update-engines-versio…:74
HIGH MINED115 [MINED115] Action `nick-fields/retry` pinned to mutable ref `@v3`: `uses: nick-fields/ret… .github/workflows/update-engines-versio…:65
HIGH MINED115 [MINED115] Action `actions/setup-node` pinned to mutable ref `@v6`: `uses: actions/setup-… .github/workflows/update-engines-versio…:33
HIGH MINED115 [MINED115] Action `pnpm/action-setup` pinned to mutable ref `@v4.0.0`: `uses: pnpm/action… .github/workflows/update-engines-versio…:31
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/update-engines-versio…:29
HIGH MINED115 [MINED115] Action `actions/setup-node` pinned to mutable ref `@v6`: `uses: actions/setup-… .github/workflows/auto-close-github-dis…:26
HIGH MINED115 [MINED115] Action `pnpm/action-setup` pinned to mutable ref `@v4`: `uses: pnpm/action-set… .github/workflows/auto-close-github-dis…:21
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/auto-close-github-dis…:18
HIGH MINED115 [MINED115] Action `github/codeql-action/analyze` pinned to mutable ref `@v3`: `uses: gith… .github/workflows/codeql-analysis.yml:47
HIGH MINED115 [MINED115] Action `github/codeql-action/init` pinned to mutable ref `@v3`: `uses: github/… .github/workflows/codeql-analysis.yml:38
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/codeql-analysis.yml:34
HIGH MINED115 [MINED115] Action `peter-evans/create-or-update-comment` pinned to mutable ref `@v5`: `us… .github/workflows/test.yml:134
HIGH MINED115 [MINED115] Action `peter-evans/create-or-update-comment` pinned to mutable ref `@v5`: `us… .github/workflows/test.yml:117
HIGH MINED115 [MINED115] Action `peter-evans/find-comment` pinned to mutable ref `@v4`: `uses: peter-ev… .github/workflows/test.yml:110
HIGH MINED115 [MINED115] Action `benc-uk/workflow-dispatch` pinned to mutable ref `@v1`: `uses: benc-uk… .github/workflows/test.yml:92
HIGH MINED115 [MINED115] Action `peter-evans/find-comment` pinned to mutable ref `@v4`: `uses: peter-ev… .github/workflows/test.yml:68
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:48
HIGH MINED115 [MINED115] Action `andresz1/size-limit-action` pinned to mutable ref `@v1`: `uses: andres… .github/workflows/bundle-size.yml:38
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/bundle-size.yml:30
HIGH MINED122 [MINED122] package.json dep `db` pulled from URL/Git: `dependencies.db` = `link:./node_mo… sandbox/d1/package.json:1
HIGH MINED118 [MINED118] Dockerfile FROM `alpine:latest` not pinned by digest: `FROM alpine:latest` res… docker/planetscale_proxy/Dockerfile:5
HIGH MINED118 [MINED118] Dockerfile FROM `ghcr.io/mattrobenolt/ps-http-sim:v0.0.11` not pinned by diges… docker/planetscale_proxy/Dockerfile:1
HIGH DKC013 Database service has no persistent data volume docker/docker-compose.yml:163
HIGH DKC013 Database service has no persistent data volume docker/docker-compose.yml:149
HIGH DKC013 Database service has no persistent data volume docker/docker-compose.yml:133
HIGH DKC013 Database service has no persistent data volume docker/docker-compose.yml:116
HIGH DKC013 Database service has no persistent data volume docker/docker-compose.yml:99
HIGH DKC013 Database service has no persistent data volume docker/docker-compose.yml:80
HIGH DKC013 Database service has no persistent data volume docker/docker-compose.yml:51
HIGH DKC011 Database service publishes a host port docker/docker-compose.yml:163
HIGH DKC011 Database service publishes a host port docker/docker-compose.yml:149
HIGH DKC011 Database service publishes a host port docker/docker-compose.yml:133
HIGH DKC011 Database service publishes a host port docker/docker-compose.yml:116
HIGH DKC011 Database service publishes a host port docker/docker-compose.yml:99
HIGH DKC011 Database service publishes a host port docker/docker-compose.yml:80
HIGH DKC011 Database service publishes a host port docker/docker-compose.yml:51
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… packages/client/src/runtime/highlight/l…:22
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… packages/type-benchmark-tests/basic/bas…:115
MED SEC125 [SEC125] AI placeholder credential left in source (your-api-key-here style): AI coding as… packages/cli/src/postgres/link/Link.ts:155
MED SEC125 [SEC125] AI placeholder credential left in source (your-api-key-here style): AI coding as… packages/cli/src/postgres/PostgresComma…:29
MED SEC136 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all excepti… packages/fetch-engine/src/utils.ts:27
MED SEC136 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all excepti… packages/client/src/runtime/utils/Sourc…:23
MED SEC136 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all excepti… packages/cli/src/Generate.ts:363
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/adapter-d1/src/d1-worker.ts:172
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/adapter-better-sqlite3/src/bet…:186
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … helpers/compile/plugins/replaceWithPlug…:31
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. packages/cli/src/utils/printUpdateMessa…:33
MED DKR003 Compose service `neon_wsproxy` image uses the latest tag docker/docker-compose.yml:226
MED DKR003 Dockerfile base image uses the latest tag docker/planetscale_proxy/Dockerfile:5
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED DKC016 App service does not wait for database health docker/docker-compose.yml:244
MED DKR018 Database dump or local database file is included in Docker build context .dockerignore
MED DKR001 Docker final stage has no non-root USER docker/postgres_ext/Dockerfile:2
MED DKR001 Docker final stage has no non-root USER docker/planetscale_proxy/Dockerfile:5
MED DKR001 Docker final stage has no non-root USER docker/mongodb_replica/Dockerfile:3
MED DKC013 Database service has no persistent data volume docker/docker-compose.yml:183
MED DKC013 Database service has no persistent data volume docker/docker-compose.yml:5
MED AGT015 Remote install command pipes network code directly to a shell CONTRIBUTING.md:35
LOW AIC003 Duplicated implementation block across source files packages/client-generator-ts/src/TSClie…:20
LOW AIC003 Duplicated implementation block across source files packages/client-generator-ts/src/TSClie…:2
LOW AIC003 Duplicated implementation block across source files packages/client-generator-ts/src/TSClie…:13
LOW AIC003 Duplicated implementation block across source files packages/client-generator-ts/src/TSClie…:18
LOW AIC003 Duplicated implementation block across source files packages/client-generator-ts/src/TSClie…:11
LOW AIC003 Duplicated implementation block across source files packages/client-generator-ts/src/TSClie…:11
LOW AIC003 Duplicated implementation block across source files packages/client-generator-ts/src/TSClie…:9
LOW AIC003 Duplicated implementation block across source files packages/client-generator-ts/src/Generi…:1
LOW AIC003 Duplicated implementation block across source files packages/client-engine-runtime/bench/sa…:53
LOW AIC003 Duplicated implementation block across source files packages/cli/src/Validate.ts:50
LOW AIC003 Duplicated implementation block across source files packages/bundle-size/da-workers-libsql/…:2
LOW AIC003 Duplicated implementation block across source files packages/adapter-ppg/src/errors.ts:3
LOW AIC003 Duplicated implementation block across source files packages/adapter-ppg/src/conversion.ts:121
LOW AIC003 Duplicated implementation block across source files packages/adapter-planetscale/src/planet…:2
LOW AIC003 Duplicated implementation block across source files packages/adapter-planetscale/src/errors…:92
LOW AIC003 Duplicated implementation block across source files packages/adapter-planetscale/src/conver…:129
LOW AIC003 Duplicated implementation block across source files packages/adapter-planetscale/src/conver…:127
LOW AIC003 Duplicated implementation block across source files packages/adapter-pg/src/pg.ts:30
LOW AIC003 Duplicated implementation block across source files packages/adapter-pg/src/errors.ts:44
LOW AIC003 Duplicated implementation block across source files packages/adapter-pg/src/conversion.ts:341
LOW AIC003 Duplicated implementation block across source files packages/adapter-pg/src/conversion.ts:10
LOW AIC003 Duplicated implementation block across source files packages/adapter-neon/src/conversion.ts:333
LOW AIC003 Duplicated implementation block across source files packages/adapter-mssql/src/mssql.ts:1
LOW AIC003 Duplicated implementation block across source files packages/adapter-mssql/src/conversion.ts:99
LOW AIC003 Duplicated implementation block across source files packages/adapter-libsql/src/libsql.ts:7
LOW AIC003 Duplicated implementation block across source files packages/adapter-libsql/src/errors.ts:53
LOW AIC003 Duplicated implementation block across source files packages/adapter-libsql/src/conversion.…:119
LOW AIC003 Duplicated implementation block across source files packages/adapter-libsql/src/conversion.…:6
LOW AIC003 Duplicated implementation block across source files packages/adapter-d1/src/d1-worker.ts:77
LOW AIC003 Duplicated implementation block across source files packages/adapter-d1/src/conversion.ts:54
LOW DKR011 Dockerfile installs recommended OS packages docker/postgres_ext/Dockerfile:8
LOW DKR008 .dockerignore misses sensitive defaults .dockerignore
LOW AIC009 Multiple AI-agent scaffold marker files are present AGENTS.md:1
LOW DKC010 Compose service lacks no-new-privileges hardening docker/docker-compose.yml:244
LOW DKC010 Compose service lacks no-new-privileges hardening docker/docker-compose.yml:226
LOW DKC010 Compose service lacks no-new-privileges hardening docker/docker-compose.yml:206
LOW DKC010 Compose service lacks no-new-privileges hardening docker/docker-compose.yml:149
LOW DKC010 Compose service lacks no-new-privileges hardening docker/docker-compose.yml:66
LOW DKC010 Compose service lacks no-new-privileges hardening docker/docker-compose.yml:28
LOW DKC006 Compose service does not declare a runtime user docker/docker-compose.yml:244
LOW DKC006 Compose service does not declare a runtime user docker/docker-compose.yml:226
LOW DKC006 Compose service does not declare a runtime user docker/docker-compose.yml:206
LOW DKC006 Compose service does not declare a runtime user docker/docker-compose.yml:183
LOW DKC006 Compose service does not declare a runtime user docker/docker-compose.yml:149
LOW DKC006 Compose service does not declare a runtime user docker/docker-compose.yml:66
LOW DKC006 Compose service does not declare a runtime user docker/docker-compose.yml:28
LOW DKC006 Compose service does not declare a runtime user docker/docker-compose.yml:5
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/fetch-engine/src/getProxyAgent…:99
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/cli/src/studio-server.ts:62
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/cli/src/management-api/auth.ts:36
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/client-engine-runtime/src/inte…:91
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/adapter-planetscale/src/planet…:240
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … helpers/blaze/omit.ts:13
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. helpers/blaze/pick.ts:29
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. helpers/blaze/omit.ts:29
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. helpers/blaze/map.ts:41
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. helpers/blaze/get.ts:4
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. helpers/blaze/flatten.ts:20
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. helpers/blaze/concat.ts:17
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … helpers/compile/build.ts:149
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .github/workflows/scripts/detect-jobs-t…:9
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .github/workflows/scripts/auto-close-gi…:7
Reset to top 5 159 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

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

**Score: 70/100 (A-)**  ·  189 findings  ·  scanned 2026-05-31 01:26 UTC  ·  214,029 LOC

| Severity | Count |
|---|---|
| CRITICAL | 16 |
| HIGH | 60 |
| MEDIUM | 21 |
| LOW | 47 |

📊 [Full filterable report](https://repobility.com/scan/a0302965-5ed4-4eba-a4e9-ef700afaebd1/)  ·  ![scorecard](https://repobility.com/scan/a0302965-5ed4-4eba-a4e9-ef700afaebd1/report.png?v=1780190782-s2)

### Top findings

1. **CRITICAL** `MINED024` — Js Eval Usage
   `packages/internals/src/get-generators/utils/getBinaryPathsByVersion.ts:84` · CWE-95 · ✓ Repobility
2. **CRITICAL** `MINED024` — Js Eval Usage
   `packages/cli/src/bin.ts:207` · CWE-95 · ✓ Repobility
3. **CRITICAL** `MINED024` — Js Eval Usage
   `packages/cli/src/Generate.ts:36` · CWE-95 · ✓ Repobility
4. **CRITICAL** `SEC084` — JS: require() with non-literal
   `packages/cli/src/utils/test-handlePanic.ts:20`
5. **CRITICAL** `SEC084` — JS: require() with non-literal
   `packages/cli/src/Generate.ts:359`

---

**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/a0302965-5ed4-4eba-a4e9-ef700afaebd1/_
Megaproject â high spam risk
Could not determine 'prisma/prisma' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.
Already filed
66/217 findings (30%) on this scan are already flagged as test-file, won't-fix, or suppressed. The scan is too noisy to file as a single issue. Curate down to specific actionable findings, or address the FP source first.

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

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