← Back to scan
File as GitHub Issue repo: oven-sh/bun

Push this scan report to oven-sh/bun

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

package.json `scripts.install` runs network/exec on install: `scripts.install

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 MINED107 [MINED107] Missing import: `struct` used but not imported: The file uses `struct.somethin… misctools/lldb/bun_pretty_printer.py:83
CRIT SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… bench/sourcemap/internal-sourcemap-benc…:28
CRIT MINED116 [MINED116] Workflow uses `secrets.ANTHROPIC_API_KEY` on a `pull_request` trigger: This wo… .github/workflows/claude-find-issues-fo…:45
CRIT MINED116 [MINED116] Workflow uses `secrets.ANTHROPIC_API_KEY` on a `pull_request` trigger: This wo… .github/workflows/claude-find-issues-fo…:35
CRIT MINED120 [MINED120] package.json `scripts.install` runs network/exec on install: `scripts.install:… test/napi/napi-app/package.json:1
HIGH MINED108 [MINED108] `self.elem_size` used but never assigned in __init__: Method `update` of class… misctools/lldb/lldb_pretty_printers.py:111
HIGH MINED108 [MINED108] `self.elem_type` used but never assigned in __init__: Method `update` of class… misctools/lldb/lldb_pretty_printers.py:110
HIGH MINED108 [MINED108] `self.len` used but never assigned in __init__: Method `update` of class `zig_… misctools/lldb/lldb_pretty_printers.py:109
HIGH MINED108 [MINED108] `self.ptr` used but never assigned in __init__: Method `update` of class `zig_… misctools/lldb/lldb_pretty_printers.py:108
HIGH MINED108 [MINED108] `self.elem_size` used but never assigned in __init__: Method `get_child_at_ind… misctools/lldb/bun_pretty_printer.py:39
HIGH MINED108 [MINED108] `self.ptr` used but never assigned in __init__: Method `get_child_at_index` of… misctools/lldb/bun_pretty_printer.py:39
HIGH MINED108 [MINED108] `self.elem_type` used but never assigned in __init__: Method `get_child_at_ind… misctools/lldb/bun_pretty_printer.py:39
HIGH MINED108 [MINED108] `self.len` used but never assigned in __init__: Method `get_child_at_index` of… misctools/lldb/bun_pretty_printer.py:36
HIGH MINED108 [MINED108] `self.len` used but never assigned in __init__: Method `num_children` of class… misctools/lldb/bun_pretty_printer.py:27
HIGH MINED108 [MINED108] `self.ptr` used but never assigned in __init__: Method `update` of class `bun_… misctools/lldb/bun_pretty_printer.py:15
HIGH MINED108 [MINED108] `self.cap` used but never assigned in __init__: Method `update` of class `bun_… misctools/lldb/bun_pretty_printer.py:19
HIGH MINED108 [MINED108] `self.len` used but never assigned in __init__: Method `update` of class `bun_… misctools/lldb/bun_pretty_printer.py:18
HIGH MINED108 [MINED108] `self.elem_type` used but never assigned in __init__: Method `update` of class… misctools/lldb/bun_pretty_printer.py:16
HIGH MINED108 [MINED108] `self.elem_size` used but never assigned in __init__: Method `update` of class… misctools/lldb/bun_pretty_printer.py:16
HIGH MINED108 [MINED108] `self.elem_type` used but never assigned in __init__: Method `update` of class… misctools/lldb/bun_pretty_printer.py:15
HIGH MINED108 [MINED108] `self.cap` used but never assigned in __init__: Method `update` of class `bun_… misctools/lldb/bun_pretty_printer.py:14
HIGH MINED108 [MINED108] `self.len` used but never assigned in __init__: Method `update` of class `bun_… misctools/lldb/bun_pretty_printer.py:13
HIGH MINED108 [MINED108] `self.ptr` used but never assigned in __init__: Method `update` of class `bun_… misctools/lldb/bun_pretty_printer.py:12
HIGH MINED108 [MINED108] `self.header_ptr_type` used but never assigned in __init__: Method `display_hi… misctools/gdb/std_gdb_pretty_printers.py:99
HIGH MINED108 [MINED108] `self.display_hint` used but never assigned in __init__: Method `children` of … misctools/gdb/std_gdb_pretty_printers.py:90
HIGH MINED108 [MINED108] `self.header` used but never assigned in __init__: Method `children` of class … misctools/gdb/std_gdb_pretty_printers.py:87
HIGH MINED108 [MINED108] `self.header` used but never assigned in __init__: Method `to_string` of class… misctools/gdb/std_gdb_pretty_printers.py:79
HIGH MINED108 [MINED108] `self.header_ptr_type` used but never assigned in __init__: Method `header` of… misctools/gdb/std_gdb_pretty_printers.py:74
HIGH MINED108 [MINED108] `self.slice` used but never assigned in __init__: Method `children` of class `… misctools/gdb/std_gdb_pretty_printers.py:53
HIGH MINED108 [MINED108] `self.child_type` used but never assigned in __init__: Method `slice` of class… misctools/gdb/std_gdb_pretty_printers.py:37
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/bun-vscode/src/features/diagno…:23
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). packages/bun-uws/src/WebSocketHandshake…:91
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). packages/bun-usockets/src/crypto/defaul…:16
HIGH MINED012 [MINED012] Curl Pipe Bash: curl ... | sh / bash — runs unverified network code. packages/bun-release/src/npm/install.ts:125
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/bun-vscode/src/features/diagno…:49
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/bun-plugin-svelte/src/index.ts:131
HIGH MINED003 [MINED003] Rust Unwrap In Prod: .unwrap() panics if None/Err. Acceptable in tests; risky … packages/bun-native-plugin-rs/bun-macro…:47
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/bun-debug-adapter-protocol/scr…:11
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… misctools/cold-jsc-start.cpp:167
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… bench/websocket-server/chat-server.bun.…:42
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/bun-error/stack-trace-parser.ts:57
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/bun-error/runtime-error.ts:76
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… bench/snippets/urlpattern.js:43
HIGH MINED014 [MINED014] Disabled Tls Verify: verify=False in requests, rejectUnauthorized:false in nod… bench/snippets/http3-hello.js:49
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/bun-release/scripts/upload-npm…:53
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/bun-release/scripts/upload-ass…:15
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… bench/module-loader/create.js:18
HIGH MINED122 [MINED122] package.json dep `svelte` pulled from URL/Git: `dependencies.svelte` = `git+ss… test/cli/install/migration/complex-work…:1
HIGH MINED122 [MINED122] package.json dep `mkdirp` pulled from URL/Git: `dependencies.mkdirp` = `file:m… test/cli/install/migration/yarn/yarn-lo…:1
HIGH MINED122 [MINED122] package.json dep `tarball` pulled from URL/Git: `dependencies.tarball` = `file… test/cli/install/migration/yarn/yarn-st…:1
HIGH MINED122 [MINED122] package.json dep `symlink` pulled from URL/Git: `dependencies.symlink` = `file… test/cli/install/migration/yarn/yarn-st…:1
HIGH MINED122 [MINED122] package.json dep `remote` pulled from URL/Git: `dependencies.remote` = `https:… test/cli/install/migration/yarn/yarn-st…:1
HIGH MINED122 [MINED122] package.json dep `ghshort` pulled from URL/Git: `dependencies.ghshort` = `gith… test/cli/install/migration/yarn/yarn-st…:1
HIGH MINED122 [MINED122] package.json dep `full-git-url` pulled from URL/Git: `dependencies.full-git-ur… test/cli/install/migration/yarn/yarn-st…:1
HIGH MINED122 [MINED122] package.json dep `eslint-plugin-yarn-internal` pulled from URL/Git: `devDepend… test/cli/install/migration/yarn/yarn-cl…:1
HIGH MINED122 [MINED122] package.json dep `install-test1` pulled from URL/Git: `dependencies.install-te… test/cli/install/migration/complex-work…:1
HIGH MINED122 [MINED122] package.json dep `hello` pulled from URL/Git: `dependencies.hello` = `file:hel… test/cli/install/migration/complex-work…:1
HIGH MINED122 [MINED122] package.json dep `bun-types` pulled from URL/Git: `dependencies.bun-types` = `… test/cli/install/migration/complex-work…:1
HIGH MINED122 [MINED122] package.json dep `bar` pulled from URL/Git: `dependencies.bar` = `https://gith… test/cli/install/migration/complex-work…:1
HIGH MINED122 [MINED122] package.json dep `react` pulled from URL/Git: `dependencies.react` = `file:../… test/package.json:1
HIGH MINED122 [MINED122] package.json dep `bun-plugin-svelte` pulled from URL/Git: `dependencies.bun-pl… test/package.json:1
HIGH MINED122 [MINED122] package.json dep `bun-tracestrings` pulled from URL/Git: `devDependencies.bun-… package.json:1
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_webkit.py:468
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_webkit.py:446
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:486
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:409
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:348
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:315
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:308
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:276
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:267
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:244
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:232
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:209
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:197
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:179
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:121
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:117
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/lldb_pretty_printers.py:136
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/bun_pretty_printer.py:40
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/bun_pretty_printer.py:32
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/bun_pretty_printer.py:17
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/bun_pretty_printer.py:302
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/bun_pretty_printer.py:244
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/bun_pretty_printer.py:164
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… misctools/lldb/bun_pretty_printer.py:50
MED CFG006 [CFG006] Missing .gitignore: No .gitignore file. Risk of committing secrets and build art…
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/bun-error/stack-trace-parser.ts:57
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/bun-error/runtime-error.ts:76
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … bench/snippets/urlpattern.js:39
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… bench/snippets/urlpattern.js:12
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… bench/snippets/buffer-includes.js:2
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. bench/snippets/dns.ts:12
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. bench/module-loader/create.js:10
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. .claude/hooks/post-edit-zig-format.js:43
MED WEB003 Public web service has no security.txt .well-known/security.txt
MED AGT006 React interval is created without an explicit cleanup packages/bun-types/bun.d.ts:7608
MED AGT015 Remote install command pipes network code directly to a shell packages/bun-release/src/npm/install.ts:125
MED AGT015 Remote install command pipes network code directly to a shell README.md:54
MED CORE_LARGE_FILES Average file size is 521 lines (recommend <300)
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… packages/bun-release/scripts/upload-npm…:312
LOW AIC003 Duplicated implementation block across source files packages/bun-uws/src/WebSocketProtocol.h:51
LOW AIC003 Duplicated implementation block across source files packages/bun-native-plugin-rs/src/sys.rs:98
LOW AIC003 Duplicated implementation block across source files packages/bun-native-plugin-rs/headers/b…:1
LOW AIC003 Duplicated implementation block across source files packages/bun-inspector-protocol/src/ins…:84
LOW AIC003 Duplicated implementation block across source files bench/sqlite/deno.js:4
LOW AIC003 Duplicated implementation block across source files bench/react-hello-world/react-hello-wor…:1
LOW AIC003 Duplicated implementation block across source files bench/crypto/asymmetricSign.js:1
LOW WEB005 robots.txt does not advertise a sitemap packages/bun-error/markdown.ts
LOW WEB002 Public web app has no sitemap sitemap.xml
LOW WEB008 Public docs site has no llms.txt llms.txt
LOW WEB011 Public web app has no humans.txt humans.txt
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… packages/bun-uws/src/WebSocketData.h:67
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… packages/bun-uws/src/TopicTree.h:172
INFO MINED075 [MINED075] C Malloc No Check: malloc/calloc/realloc return value used without checking fo… packages/bun-usockets/src/crypto/sni_tr…:145
INFO MINED068 [MINED068] Rust Unsafe Block: unsafe { ... } block. Compiler safety guarantees disabled i… packages/bun-native-plugin-rs/bun-macro…:24
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. packages/bun-plugin-svelte/example/inde…:6
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. packages/bun-inspector-protocol/src/ins…:134
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. packages/bun-inspector-protocol/src/ins…:130
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/bun-release/scripts/upload-s3.…:15
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/bun-error/markdown.ts:71
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/bun-debug-adapter-protocol/src…:42
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/bun-inspector-protocol/src/ins…:175
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/bun-error/sourcemap.ts:12
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/bun-debug-adapter-protocol/scr…:49
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/bun-vscode/src/features/lockfi…:28
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… bench/websocket-server/chat-server.bun.…:52
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … bench/expect-to-equal/index.ts:1
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .claude/hooks/pre-bash-zig-build.js:28
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .claude/hooks/post-edit-zig-format.js:32
Reset to top 5 130 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `oven-sh/bun`

**Score: 72/100 (B)**  ·  130 findings  ·  scanned 2026-06-05 06:54 UTC  ·  151,123 LOC

| Severity | Count |
|---|---|
| CRITICAL | 5 |
| HIGH | 57 |
| MEDIUM | 38 |
| LOW | 12 |

📊 [Full filterable report](https://repobility.com/scan/27aaf1dc-7325-46a0-9235-bbef12ce7b77/)  ·  ![scorecard](https://repobility.com/scan/27aaf1dc-7325-46a0-9235-bbef12ce7b77/report.png?v=1780642440-s2)

### Top findings

1. **CRITICAL** `MINED107` — Missing import: `struct` used but not imported
   `misctools/lldb/bun_pretty_printer.py:83` · ✓ Repobility
2. **CRITICAL** `SEC084` — JS: require() with non-literal
   `bench/sourcemap/internal-sourcemap-bench.ts:28`
3. **CRITICAL** `MINED116` — Workflow uses `secrets.ANTHROPIC_API_KEY` on a `pull_request` trigger
   `.github/workflows/claude-find-issues-for-pr.yml:45` · ✓ Repobility
4. **CRITICAL** `MINED116` — Workflow uses `secrets.ANTHROPIC_API_KEY` on a `pull_request` trigger
   `.github/workflows/claude-find-issues-for-pr.yml:35` · ✓ Repobility
5. **CRITICAL** `MINED120` — package.json `scripts.install` runs network/exec on install: `scripts.install
   `test/napi/napi-app/package.json:1` · ✓ Repobility

---

**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/27aaf1dc-7325-46a0-9235-bbef12ce7b77/_
Already filed
This repo publishes a SECURITY.md policy and the scan contains 13 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 'oven-sh/bun' 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.