← Back to scan
File as GitHub Issue repo: earendil-works/pi

Push this scan report to earendil-works/pi

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: new RegExp() 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 MINED035 [MINED035] Js New Function: new Function(...) compiles strings to functions. packages/coding-agent/examples/extensio…:65
CRIT MINED019 [MINED019] Ssti Jinja From String: jinja2.Environment().from_string(user_input) — full RC… packages/agent/src/harness/prompt-templ…:85
CRIT GHSA-5xrq-8626-4rwp vitest: GHSA-5xrq-8626-4rwp package-lock.json
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/tui/src/word-navigation.ts:50
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/coding-agent/src/utils/ansi.ts:41
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/coding-agent/src/modes/interac…:52
HIGH MINED031 [MINED031] React Direct State Mutation: this.state.X = Y mutates without setState. React … packages/coding-agent/examples/extensio…:81
HIGH MINED027 [MINED027] React State Array Mutation: state.X.push/splice/sort followed by setState — Re… packages/coding-agent/examples/extensio…:136
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). packages/coding-agent/examples/extensio…:133
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/ai/src/providers/openai-respon…:222
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/ai/src/providers/cloudflare.ts:24
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/ai/src/providers/azure-openai-…:170
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/coding-agent/examples/extensio…:134
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/coding-agent/examples/extensio…:45
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/agent/src/harness/utils/shell-…:106
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/agent/src/harness/session/memo…:16
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/agent/src/harness/session/memo…:32
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/agent/src/harness/session/json…:23
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/ai/src/cli.ts:80
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/ai/scripts/generate-image-mode…:103
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/agent/src/harness/compaction/u…:117
HIGH MINED115 Action `actions/github-script` pinned to mutable ref `@v7` .github/workflows/pr-gate.yml:16
HIGH MINED115 Action `actions/github-script` pinned to mutable ref `@v7` .github/workflows/issue-gate.yml:15
HIGH MINED115 Action `actions/github-script` pinned to mutable ref `@v7` .github/workflows/openclaw-gate.yml:18
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v4` .github/workflows/ci.yml:21
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v4` .github/workflows/ci.yml:18
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v4` .github/workflows/npm-audit.yml:19
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v4` .github/workflows/npm-audit.yml:16
HIGH MINED115 Action `actions/github-script` pinned to mutable ref `@v7` .github/workflows/approve-contributor.y…:149
HIGH MINED115 Action `actions/github-script` pinned to mutable ref `@v7` .github/workflows/approve-contributor.y…:22
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v4` .github/workflows/approve-contributor.y…:16
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… packages/coding-agent/src/core/export-h…:296
HIGH JRN004 Consent is collected in UI without visible backend audit persistence packages/ai/src/providers/amazon-bedroc…:83
MED SEC087 [SEC087] JS: weak Math.random for crypto: Math.random() is not cryptographically secure; … packages/coding-agent/src/utils/tools-m…:275
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. packages/agent/src/proxy.ts:143
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/coding-agent/examples/extensio…:13
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/agent/src/harness/utils/shell-…:106
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … .pi/extensions/prompt-url-widget.ts:43
MED DEPCUR-NPM npm package `https-proxy-agent` is 2 major version(s) behind (7.0.6 -> 9.0.0) packages/ai/package.json
MED DEPCUR-NPM npm package `http-proxy-agent` is 2 major version(s) behind (7.0.2 -> 9.0.0) packages/ai/package.json
MED DEPCUR-NPM npm package `@google/genai` is 1 major version(s) behind (1.52.0 -> 2.8.0) packages/ai/package.json
MED DEPCUR-NPM npm package `@xterm/headless` is 1 major version(s) behind (5.5.0 -> 6.0.0) packages/tui/package.json
MED DEPCUR-NPM npm package `marked` is 3 major version(s) behind (15.0.12 -> 18.0.5) packages/tui/package.json
MED DEPCUR-NPM npm package `@vitest/coverage-v8` is 1 major version(s) behind (3.2.4 -> 4.1.8) packages/agent/package.json
MED DEPCUR-NPM npm package `@types/diff` is 1 major version(s) behind (7.0.2 -> 8.0.0) packages/coding-agent/package.json
MED DEPCUR-NPM npm package `undici` is 2 major version(s) behind (6.26.0 -> 8.3.0) packages/coding-agent/package.json
MED DEPCUR-NPM npm package `hosted-git-info` is 1 major version(s) behind (9.0.3 -> 10.1.1) packages/coding-agent/package.json
MED DEPCUR-NPM npm package `highlight.js` is 1 major version(s) behind (10.7.3 -> 11.11.1) packages/coding-agent/package.json
MED DEPCUR-NPM npm package `diff` is 1 major version(s) behind (8.0.4 -> 9.0.0) packages/coding-agent/package.json
MED AGT007 localStorage write failures are swallowed silently packages/coding-agent/src/core/export-h…:1706
MED AGT014 Codex auth.json is read or copied without visible secret-file hardening packages/coding-agent/examples/extensio…:31
MED AGT016 Codex session log reader may expose prompts or tool-call content packages/coding-agent/src/core/agent-se…:1804
MED AGT015 Remote install command pipes network code directly to a shell packages/coding-agent/docs/index.md:18
LOW DEPCUR-NPM npm package `@anthropic-ai/sdk` is minor version(s) behind (0.91.1 -> 0.100.1) packages/coding-agent/examples/extensio…
LOW DEPCUR-NPM npm package `typebox` is minor version(s) behind (1.1.38 -> 1.2.1) packages/ai/package.json
LOW DEPCUR-NPM npm package `@aws-sdk/client-bedrock-runtime` is minor version(s) behind (3.1048.0 -> 3.1… packages/ai/package.json
LOW DEPCUR-NPM npm package `@anthropic-ai/sdk` is minor version(s) behind (0.91.1 -> 0.100.1) packages/ai/package.json
LOW DEPCUR-NPM npm package `typebox` is minor version(s) behind (1.1.38 -> 1.2.1) packages/agent/package.json
LOW DEPCUR-NPM npm package `typebox` is minor version(s) behind (1.1.38 -> 1.2.1) packages/coding-agent/package.json
LOW DEPCUR-NPM npm package `@biomejs/biome` is minor version(s) behind (2.3.5 -> 2.4.16) package.json
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/modes/interac…:63
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/modes/interac…:12
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/modes/interac…:10
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/index.ts:65
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/core/trust-ma…:55
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/core/tools/tr…:1
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/core/tools/ls…:49
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/core/skills.ts:256
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/core/skills.ts:15
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/core/model-re…:787
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/core/model-re…:188
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/core/messages…:3
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/core/compacti…:3
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/core/compacti…:27
LOW AIC003 Duplicated implementation block across source files packages/coding-agent/src/core/compacti…:81
LOW AIC003 Duplicated implementation block across source files packages/ai/src/utils/oauth/openai-code…:60
LOW AIC003 Duplicated implementation block across source files packages/ai/src/providers/register-buil…:129
LOW AIC003 Duplicated implementation block across source files packages/ai/src/providers/register-buil…:127
LOW AIC003 Duplicated implementation block across source files packages/ai/src/providers/openai-respon…:78
LOW AIC003 Duplicated implementation block across source files packages/ai/src/providers/openai-respon…:76
LOW AIC003 Duplicated implementation block across source files packages/ai/src/providers/mistral.ts:110
LOW AIC003 Duplicated implementation block across source files packages/ai/src/providers/mistral.ts:108
LOW AIC003 Duplicated implementation block across source files packages/ai/src/providers/google.ts:56
LOW AIC003 Duplicated implementation block across source files packages/ai/src/providers/google.ts:54
LOW AIC003 Duplicated implementation block across source files packages/ai/src/providers/google.ts:20
LOW AIC003 Duplicated implementation block across source files packages/ai/src/providers/google-vertex…:70
LOW AIC003 Duplicated implementation block across source files packages/ai/src/providers/google-vertex…:68
LOW AIC003 Duplicated implementation block across source files packages/ai/src/providers/azure-openai-…:74
LOW AIC003 Duplicated implementation block across source files packages/agent/src/harness/skills.ts:251
LOW AIC003 Duplicated implementation block across source files packages/agent/src/harness/session/memo…:9
LOW WEB005 robots.txt does not advertise a sitemap packages/ai/CHANGELOG.md
LOW AIC002 Source file name looks like an AI patch artifact packages/coding-agent/src/utils/windows…:1
INFO MINED055 [MINED055] Npm Install No Lockfile: Production image runs npm install (resolves new versi… scripts/build-binaries.sh:98
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/coding-agent/src/utils/git.ts:138
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. packages/coding-agent/src/core/export-h…:66
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. packages/coding-agent/examples/extensio…:72
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. packages/coding-agent/examples/extensio…:119
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/ai/src/utils/typebox-helpers.ts:20
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/ai/src/utils/event-stream.ts:46
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/agent/src/proxy.ts:323
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … packages/ai/src/cli.ts:31
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … packages/ai/scripts/generate-image-mode…:31
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … packages/agent/src/proxy.ts:363
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/agent/src/harness/session/sess…:223
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/agent/src/harness/session/json…:118
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/agent/src/harness/compaction/u…:26
INFO DEPCUR-NPM npm package `@anthropic-ai/sandbox-runtime` is patch version(s) behind (0.0.26 -> 0.0.54) packages/coding-agent/examples/extensio…
INFO DEPCUR-NPM npm package `@mistralai/mistralai` is patch version(s) behind (2.2.1 -> 2.2.5) packages/ai/package.json
INFO DEPCUR-NPM npm package `@smithy/node-http-handler` is patch version(s) behind (4.7.3 -> 4.7.7) packages/ai/package.json
INFO DEPCUR-NPM npm package `tsx` is patch version(s) behind (4.22.1 -> 4.22.4) package.json
INFO DEPCUR-NPM npm package `@anthropic-ai/sandbox-runtime` is patch version(s) behind (0.0.26 -> 0.0.54) package.json
Reset to top 5 111 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `earendil-works/pi`

**Score: 74/100 (B+)**  ·  111 findings  ·  scanned 2026-06-05 09:45 UTC  ·  193,066 LOC

| Severity | Count |
|---|---|
| CRITICAL | 3 |
| HIGH | 30 |
| MEDIUM | 20 |
| LOW | 39 |

📊 [Full filterable report](https://repobility.com/scan/6e92d278-8528-4308-bc39-5eac0ee1c20e/)  ·  ![scorecard](https://repobility.com/scan/6e92d278-8528-4308-bc39-5eac0ee1c20e/report.png?v=1780652745-s2)

### Top findings

1. **CRITICAL** `MINED035` — Js New Function
   `packages/coding-agent/examples/extensions/doom-overlay/doom-engine.ts:65` · CWE-95 · ✓ Repobility
2. **CRITICAL** `MINED019` — Ssti Jinja From String
   `packages/agent/src/harness/prompt-templates.ts:85` · CWE-94 · ✓ Repobility
3. **CRITICAL** `GHSA-5xrq-8626-4rwp` — vitest: GHSA-5xrq-8626-4rwp
   `package-lock.json`
4. **HIGH** `SEC083` — JS: new RegExp() with non-literal
   `packages/tui/src/word-navigation.ts:50`
5. **HIGH** `SEC083` — JS: new RegExp() with non-literal
   `packages/coding-agent/src/utils/ansi.ts:41`

---

**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/6e92d278-8528-4308-bc39-5eac0ee1c20e/_
Already filed
This repo publishes a SECURITY.md policy and the scan contains 16 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 'earendil-works/pi' 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.