Bun is a free program that runs JavaScript and TypeScript, made as a drop-in replacement for Node.js. Install it and bun run index.ts runs a TypeScript file straight away, with no compile step or config. The same bun command also installs npm packages (bun install), runs your package.json scripts (bun run dev), runs tests (bun test) and bundles code for the browser (bun build), so one tool covers what usually takes Node, npm, a bundler and a test framework.
It earns its place because it starts quickly and installs packages quickly, and most Node.js apps and npm packages work in it unchanged, since it reads package.json and node_modules the same way. It adds built-ins of its own, such as a web server (Bun.serve), SQLite, Postgres and S3 clients, a shell for scripts and a password hasher, so small projects need fewer dependencies. bunx runs a package without installing it, like npx. Unlike npm, bun install does not run the install scripts of packages you have not trusted.
Bun's own code is MIT-licensed; it builds in WebKit's JavaScriptCore engine, which is LGPL-2. Jarred Sumner started it in 2021, and Oven, the company behind it, was bought by Anthropic in December 2025; the same team still develops it in public, and the README says it is now written in Rust. It has about 97,100 stars and over 900 contributors. Version 1.4.5 came out on 19 November 2026.
- Repository: github.com/oven-sh/bun
- Licence: custom (Other)
- Language: Rust. Stars: 97.1K. Forks: 5,231. Last push: Nov 30, 2026.
- Scan: safe, Nov 30, 2026, commit 0e3ac64
Who it is for
JavaScript and TypeScript developers who want faster installs and tests, people tired of setting up TypeScript for Node, and anyone writing quick scripts or small servers. It runs on macOS, Linux and Windows; some Node.js APIs and native addons still behave differently, so test an existing app before you switch.
Getting started
1. Install on macOS or Linux (the script adds ~/.bun/bin to your shell profile)
curl -fsSL https://bun.com/install | bash2. Or on Windows, in PowerShell
powershell -c "irm bun.sh/install.ps1 | iex"3. Or with npm, if you already have Node.js
npm install -g bun4. Start a new project with a package.json and an index.ts
mkdir my-app && cd my-app
bun init5. Run a TypeScript file directly
bun run index.ts6. In an existing Node.js project: install packages and run its tests
bun install
bun testThe install script downloads the bun program from the project's GitHub releases into ~/.bun/bin and adds that folder to your PATH in your zsh, bash or fish config, with no sudo. bun install skips the install scripts of dependencies unless they are on its built-in list of known packages or you add them to trustedDependencies in package.json. Our scan covers the source code, not the prebuilt binaries or the npm packages you install with it.
Safety scan
We cloned oven-sh/bun at commit 0e3ac64 on Nov 30, 2026 and ran the checks described on the GitHub Tools page: credential patterns, decode-and-execute code, install-time scripts, committed binaries, risky CI workflows, every host the code talks to, known vulnerabilities in pinned dependencies, and project hygiene. A person read every hit. This is what we found.
- 28 secret hits and 13 binary files across about 101,000 files and 7.3 million lines of TypeScript, Rust and JavaScript, much of it tests. All 28 are test fixtures: 27 private keys used by TLS and crypto tests in test/, and a made-up AWS key, AKIAOTHERACCOUNT0001, in the S3 test server. The binaries are test data and old bun.lockb lockfiles, plus src/runtime/cli/typescript_libs.bin, a packed copy of TypeScript's own type files that bun check uses.
- 74 pattern hits. 57 are very long lines: 55 in test programs and fixtures, a minified copy of Node's acorn-walk for the REPL, and a compressed JSON sample in a profiling script. 3 are the official install command, printed by bun upgrade, the npm wrapper and the release script. The 13 persistence hits are Bun.cron, an API that adds a crontab entry or a macOS LaunchAgent only when your own code calls it, plus its tests, its type docs and a setup script for the project's Mac build machines; 1 is a test string of control characters.
- src/runtime/cli/install.sh, the script behind curl -fsSL https://bun.com/install | bash, downloads the release zip from GitHub, unzips it into ~/.bun/bin and adds a PATH line to your zsh, bash or fish config, with no sudo; install.ps1 does the same on Windows. The 21 Rust build scripts only wire in generated code, and none runs a command or downloads anything.
- 860 advisories across about 4,500 packages in 92 lockfiles, 76 critical, but none in what you install. All 76 critical and 367 of the 369 high sit in test/cli/install/migration: old package-lock.json and yarn.lock files that Bun's tests read to check it can convert other lockfiles, and nothing installs them. Bun's own Cargo.lock has 7: 2 high in quick-xml, used only by a parser benchmark, a moderate crash in bcrypt's verify on a malformed hash, and 4 unrated notices.
- Bun uploads crash reports to bun.report on macOS and Windows: a short code with Bun's version, platform, the kind of command and where in Bun's own native code it crashed, with none of your source code. DO_NOT_TRACK=1 or telemetry = false in bunfig.toml turns it off (src/crash_handler/lib.rs), and the docs say Bun collects no other telemetry yet but plans to. It also contacts the npm registry when you install packages and GitHub when you run bun upgrade. 22 workflows; the 4 on pull_request_target only call the GitHub API and never check out pull request code. All 16 third-party actions are pinned to a commit. A security policy and Dependabot are present; no CodeQL or OpenSSF Scorecard result.
What the scanner counted
| Check | Result |
|---|---|
| Secrets | 28 candidates found and read; see the notes above. |
| Suspicious code | 74 pattern hits found and read; every one is listed under the raw findings. |
| Install-time code | 7 npm lifecycle scripts. 21 Cargo build scripts. 10 installer scripts (one edits your shell profile) |
| Committed binaries | 13 executable or compiled objects committed; listed under the raw findings. |
| CI workflows | 22 workflows. 4 use pull_request_target, none check out the pull request head. 0 of 16 third-party actions pinned to a tag rather than a commit. |
| Network hosts | 40 distinct hosts referenced from source; most often github.com, drafts.csswg.org, api.github.com, bun.com. 19 URLs to a bare IP address, listed under the raw findings. |
| Known vulnerabilities | 860 advisories across 4,487 pinned packages: 76 critical, 369 high, 322 moderate, 80 low, 13 unrated. Cargo.lock: 326 packages, 7 advisories; bench/ffi/src/Cargo.lock: 23 packages, 0 advisories; packages/bun-native-plugin-rs/Cargo.lock: 27 packages, 1 advisories; scripts/verify-baseline-static/Cargo.lock: 22 packages, 0 advisories; test/aot/backend/rivals/go/go.mod: 6 packages, 2 advisories; test/aot/backend/rivals/rust/Cargo.lock: 161 packages, 3 advisories; test/aot/backend/tracker/rivals/go/go.mod: 6 packages, 2 advisories; test/aot/backend/tracker/rivals/rust/Cargo.lock: 123 packages, 1 advisories; test/cli/install/migration/contoso-test/package-lock.json: 3,046 packages, 539 advisories; test/cli/install/migration/npm-arborist/audit-fix-old-tap/package-lock.json: 571 packages, 108 advisories; test/cli/install/migration/npm-arborist/audit-omit/package-lock.json: 751 packages, 105 advisories; test/cli/install/migration/npm-arborist/bundle-metadep-duplication--x/package-lock.json: 3 packages, 0 advisories; test/cli/install/migration/npm-arborist/carbonium/package-lock.json: 126 packages, 32 advisories; test/cli/install/migration/npm-arborist/dedupe-lockfile/package-lock.json: 3 packages, 0 advisories; test/cli/install/migration/npm-arborist/dep-installed-without-bin-link/package-lock.json: 2 packages, 1 advisories; test/cli/install/migration/npm-arborist/dep-missing-resolved/package-lock.json: 233 packages, 46 advisories; test/cli/install/migration/npm-arborist/edit-package-json--changed/package-lock.json: 7 packages, 1 advisories; test/cli/install/migration/npm-arborist/edit-package-json--ok/package-lock.json: 7 packages, 1 advisories; test/cli/install/migration/npm-arborist/edit-package-json--removed/package-lock.json: 7 packages, 1 advisories; test/cli/install/migration/npm-arborist/engine-specification/package-lock.json: 2 packages, 4 advisories; test/cli/install/migration/npm-arborist/external-link--root/root/package-lock.json: 6 packages, 0 advisories; test/cli/install/migration/npm-arborist/flow-outdated/package-lock.json: 5 packages, 0 advisories; test/cli/install/migration/npm-arborist/minimist-git-dep/package-lock.json: 1 packages, 2 advisories; test/cli/install/migration/npm-arborist/minimist-git-metadep/package-lock.json: 2 packages, 2 advisories; test/cli/install/migration/npm-arborist/old-package-lock/package-lock.json: 2 packages, 0 advisories; test/cli/install/migration/npm-arborist/optional-dep-allinstall-fail/package-lock.json: 1 packages, 0 advisories; test/cli/install/migration/npm-arborist/optional-dep-install-fail/package-lock.json: 1 packages, 0 advisories; test/cli/install/migration/npm-arborist/optional-dep-postinstall-fail/package-lock.json: 1 packages, 0 advisories; test/cli/install/migration/npm-arborist/optional-dep-preinstall-fail/package-lock.json: 1 packages, 0 advisories; test/cli/install/migration/npm-arborist/optional-engine-specification/package-lock.json: 2 packages, 4 advisories; test/cli/install/migration/npm-arborist/peer-dep-cycle-nested-with-sw/package-lock.json: 4 packages, 0 advisories; test/cli/install/migration/npm-arborist/peer-dep-cycle-with-sw/package-lock.json: 3 packages, 0 advisories; test/cli/install/migration/npm-arborist/pnpm/package-lock.json: 4 packages, 0 advisories; test/cli/install/migration/npm-arborist/prune-lockfile-omit-dev/package-lock.json: 3 packages, 0 advisories; test/cli/install/migration/npm-arborist/prune-lockfile-optional-peer/package-lock.json: 2 packages, 0 advisories; test/cli/install/migration/npm-arborist/prune-lockfile/package-lock.json: 1 packages, 0 advisories; test/cli/install/migration/npm-arborist/rebuild-foreground-scripts/package-lock.json: 2 packages, 0 advisories; test/cli/install/migration/npm-arborist/test-package-with-shrinkwrap/package-lock.json: 1 packages, 0 advisories; test/cli/install/migration/npm-arborist/testing-bundledeps-sw/package-lock.json: 5 packages, 0 advisories; test/cli/install/migration/npm-arborist/testing-peer-dep-conflict-chain/package-lock.json: 6 packages, 0 advisories; test/cli/install/migration/npm-arborist/testing-peer-deps-nested/package-lock.json: 8 packages, 0 advisories; test/cli/install/migration/npm-arborist/testing-rebuild-bundle--a/package-lock.json: 1 packages, 0 advisories; test/cli/install/migration/npm-arborist/testing-rebuild-bundle--parent/package-lock.json: 2 packages, 0 advisories; test/cli/install/migration/npm-arborist/testing-rebuild-bundle-reified/package-lock.json: 3 packages, 0 advisories; test/cli/install/migration/npm-arborist/testing-rebuild-bundle/package-lock.json: 3 packages, 0 advisories; test/cli/install/migration/npm-arborist/testing-rebuild-script-env-flags/package-lock.json: 4 packages, 1 advisories; test/cli/install/migration/npm-arborist/two-bundled-deps/package-lock.json: 421 packages, 77 advisories; test/cli/install/migration/npm-arborist/update-exact-version/package-lock.json: 1 packages, 0 advisories; test/cli/install/migration/npm-arborist/workspaces-conflicting-versions-virtual/package-lock.json: 3 packages, 0 advisories; test/cli/install/migration/npm-arborist/workspaces-need-update/package-lock.json: 3 packages, 0 advisories; test/cli/install/migration/npm-arborist/workspaces-non-simplistic/package-lock.json: 3 packages, 0 advisories; test/cli/install/migration/npm-arborist/workspaces-not-root/package-lock.json: 2 packages, 0 advisories; test/cli/install/migration/npm-arborist/workspaces-shared-deps-virtual/package-lock.json: 4 packages, 1 advisories; test/cli/install/migration/npm-arborist/workspaces-transitive-deps-virtual/package-lock.json: 2 packages, 0 advisories; test/cli/install/migration/npm-arborist/workspaces-version-unsatisfied-virtual/package-lock.json: 1 packages, 0 advisories; test/cli/install/migration/npm-arborist/workspaces-with-overrides/package-lock.json: 1 packages, 0 advisories; test/cli/install/migration/pnpm/basic/pnpm-lock.yaml: 4 packages, 0 advisories; test/cli/install/migration/pnpm/root-package-link-resolution/pnpm-lock.yaml: 3 packages, 0 advisories; test/cli/install/migration/pnpm/v9-alias-in-optional-dependencies/pnpm-lock.yaml: 3 packages, 0 advisories; test/cli/install/migration/pnpm/v9-alias-non-registry-dep-path/pnpm-lock.yaml: 3 packages, 0 advisories; test/cli/install/migration/pnpm/v9-catalog-default/pnpm-lock.yaml: 1 packages, 0 advisories; test/cli/install/migration/pnpm/v9-codeload-tarballs/pnpm-lock.yaml: 2 packages, 0 advisories; test/cli/install/migration/pnpm/v9-file-directory/pnpm-lock.yaml: 2 packages, 0 advisories; test/cli/install/migration/pnpm/v9-git-references/pnpm-lock.yaml: 4 packages, 0 advisories; test/cli/install/migration/pnpm/v9-git-subdirectory/pnpm-lock.yaml: 1 packages, 1 advisories; test/cli/install/migration/pnpm/v9-git-urls-and-orphan/pnpm-lock.yaml: 3 packages, 0 advisories; test/cli/install/migration/pnpm/v9-importer-peers/pnpm-lock.yaml: 2 packages, 0 advisories; test/cli/install/migration/pnpm/v9-injected-workspace/pnpm-lock.yaml: 1 packages, 0 advisories; test/cli/install/migration/pnpm/v9-local-tarballs/pnpm-lock.yaml: 4 packages, 0 advisories; test/cli/install/migration/pnpm/v9-missing-package-entry-transitive/pnpm-lock.yaml: 1 packages, 0 advisories; test/cli/install/migration/pnpm/v9-multi-document/pnpm-lock.yaml: 2 packages, 0 advisories; test/cli/install/migration/pnpm/v9-patch-bare-hash-registry/pnpm-lock.yaml: 1 packages, 0 advisories; test/cli/install/migration/pnpm/v9-patched-git-hosted-bare/pnpm-lock.yaml: 1 packages, 0 advisories; test/cli/install/migration/pnpm/v9-patched-git-hosted-legacy/pnpm-lock.yaml: 1 packages, 0 advisories; test/cli/install/migration/pnpm/v9-peer-range-dedupe/pnpm-lock.yaml: 5 packages, 0 advisories; test/cli/install/migration/pnpm/v9-peer-variant-merge/pnpm-lock.yaml: 2 packages, 0 advisories; test/cli/install/migration/pnpm/v9-peer-variant-missing-resolution/pnpm-lock.yaml: 2 packages, 0 advisories; test/cli/install/migration/pnpm/v9-reference-shapes/pnpm-lock.yaml: 6 packages, 0 advisories; test/cli/install/migration/pnpm/v9-runtime-entries/pnpm-lock.yaml: 2 packages, 0 advisories; test/cli/install/migration/pnpm/v9-snapshot-only-file-variants/pnpm-lock.yaml: 1 packages, 0 advisories; test/cli/install/migration/yarn-berry/aliases/yarn.lock: 7 packages, 0 advisories; test/cli/install/migration/yarn-berry/basic/yarn.lock: 7 packages, 0 advisories; test/cli/install/migration/yarn-berry/malformed/yarn.lock: 2 packages, 0 advisories; test/cli/install/migration/yarn-berry/patch/yarn.lock: 14 packages, 0 advisories; test/cli/install/migration/yarn-berry/protocols/yarn.lock: 6 packages, 0 advisories; test/cli/install/migration/yarn-berry/resolutions/yarn.lock: 4 packages, 0 advisories; test/cli/install/migration/yarn-berry/workspaces/yarn.lock: 7 packages, 0 advisories; test/cli/install/migration/yarn/yarn-cli-repo/yarn.lock: 1,062 packages, 189 advisories; test/cli/install/migration/yarn/yarn-lock-mkdirp-file-dep/yarn.lock: 1 packages, 0 advisories; test/cli/install/migration/yarn/yarn-lock-mkdirp-no-resolved/yarn.lock: 1 packages, 0 advisories; test/cli/install/migration/yarn/yarn-lock-mkdirp/yarn.lock: 1 packages, 0 advisories; test/cli/install/migration/yarn/yarn-stuff/yarn.lock: 9 packages, 0 advisories. |
| Project hygiene | Has security policy, automated dependency updates, licence file, contributing guide. Missing CodeQL. |
| OpenSSF Scorecard | Not scored: the project is not in Scorecard's weekly index. |
The raw findings
Every hit the scanner wrote out, with a link to the exact line at the scanned commit. Secrets candidates are redacted.
Secret candidates (28, redacted)
Pattern hits (74)
| Where | Rule | Match |
|---|---|---|
| .buildkite/scripts/upload-release.ts:298 | download-piped-to-shell | curl -fsSL https://bun.com/install | bash |
| packages/bun-release/src/npm/install.ts:130 | download-piped-to-shell | os === "win32" ? 'powershell -c "irm bun.sh/install.ps1 | iex"' : "curl -fsSL https://bun.com/install | bash"; |
| packages/bun-types/bun.d.ts:9297 | persistence | * | Linux | [crontab](https://man7.org/linux/man-pages/man5/crontab.5.html) | `crontab -l` | |
| scripts/darwin-ci/lib/agent.ts:71 | persistence | `/Library/LaunchAgents/${agentLabel}.plist`, |
| scripts/darwin-ci/lib/agent.ts:110 | persistence | await run(["sudo", "launchctl", "bootstrap", `gui/${uid}`, `/Library/LaunchAgents/${agentLabel}.plist`]); |
| scripts/orderfile/app/net.js:15 | very-long-line | 6737 chars |
| src/js/internal/repl/acorn-walk.ts:32 | very-long-line | 7837 chars |
| src/runtime/api/cron_os.rs:429 | persistence | /// `crontab -l`, to install what it prints with `entry` in place of the entry of `title`. |
| src/runtime/api/cron_os.rs:457 | persistence | // How `crontab -l` says that there is no table. |
| src/runtime/api/cron_os.rs:526 | persistence | write!(path, "/Library/LaunchAgents/bun.cron.{title}.plist"); |
| src/runtime/cli/upgrade_command.rs:481 | download-piped-to-shell | "curl -fsSL https://bun.com/install | bash" |
| test/aot/a-constant-literal-holds-a-name-that-its-type-does-not-list.test.ts:22 | very-long-line | 4179 chars |
| test/aot/a-constant-literal-holds-a-name-that-its-type-does-not-list.test.ts:23 | very-long-line | 3477 chars |
| test/aot/fuzz/case-scripts/reflect-construct-other-new-target.py:7 | very-long-line | 4326 chars |
| test/aot/fuzz/case-scripts/type-only-imports.py:8 | very-long-line | 4035 chars |
| test/aot/generate/classes-and-closures.ts:308 | very-long-line | 4390 chars |
| test/aot/generate/data-from-outside.ts:385 | very-long-line | 8984 chars |
| test/aot/generate/impostors.ts:3261 | very-long-line | 3023 chars |
| test/aot/generate/inner-objects.ts:152 | very-long-line | 5296 chars |
| test/aot/generate/kept-attacks.ts:2158 | very-long-line | 3802 chars |
| test/aot/ir/lower/layouts/defined-once/files-found-by-imports.ts:8 | very-long-line | 3102 chars |
| test/aot/ir/lower/layouts/defined-once/files-that-tsconfig-includes.ts:8 | very-long-line | 3102 chars |
| test/aot/ir/lower/members/member-chain-of-1900-links.js:6 | very-long-line | 3827 chars |
| test/aot/ir/lower/programs/strings/regexp-hundreds-of-long-alternatives.ts:8 | very-long-line | 5366 chars |
| and 50 more | ||
URLs to bare IP addresses (19)
| Where | Rule | Match |
|---|---|---|
| test/aot/generate/host-classes.ts:89 | ip-literal-url | http://256.1.1.1 http://256.1.1.1", text => new URL(text, "http://256.1.1.1 http://example.com:65536 http://example.com:65536", text => new URL(text, "http://ex… |
| test/aot/generate/host-classes.ts:89 | ip-literal-url | http://256.1.1.1 http://256.1.1.1", text => new URL(text, "http://256.1.1.1 http://example.com:65536 http://example.com:65536", text => new URL(text, "http://ex… |
| test/aot/generate/host-classes.ts:89 | ip-literal-url | http://256.1.1.1 http://256.1.1.1", text => new URL(text, "http://256.1.1.1 http://example.com:65536 http://example.com:65536", text => new URL(text, "http://ex… |
| test/aot/parallel/host-classes/url-parts-without-url-object-global.ts:50 | ip-literal-url | const oddHeads = ["HTTP://example.com", "http:/example.com", "http:example.com", "ftp://example.com", "file:///a", "http://user:word@example.com", "http://EXAMP… |
| test/aot/parallel/host-classes/url-parts-without-url-object-global.ts:50 | ip-literal-url | const oddHeads = ["HTTP://example.com", "http:/example.com", "http:example.com", "ftp://example.com", "file:///a", "http://user:word@example.com", "http://EXAMP… |
| test/integration/bun-types/fixture/fetch.ts:372 | ip-literal-url | fetch("https://93.184.216.34/", { |
| test/js/bun/http/fetch-abort-ssl-context-eviction.test.ts:69 | ip-literal-url | fetch("https://192.0.2.1/", { |
| test/js/deno/url/url.test.ts:73 | ip-literal-url | assertEquals(new URL("http://255.0.0.0").hostname, "255.0.0.0"); |
| test/js/deno/url/url.test.ts:74 | ip-literal-url | assertThrows(()=>new URL("http://256.0.0.0"), TypeError, "Invalid URL"); |
| test/js/deno/url/url.test.ts:75 | ip-literal-url | assertEquals(new URL("http://0.255.0.0").hostname, "0.255.0.0"); |
| test/js/deno/url/url.test.ts:76 | ip-literal-url | assertThrows(()=>new URL("http://0.256.0.0"), TypeError, "Invalid URL"); |
| test/js/deno/url/url.test.ts:77 | ip-literal-url | assertEquals(new URL("http://0.0.255.0").hostname, "0.0.255.0"); |
| test/js/deno/url/url.test.ts:78 | ip-literal-url | assertThrows(()=>new URL("http://0.0.256.0"), TypeError, "Invalid URL"); |
| test/js/deno/url/url.test.ts:79 | ip-literal-url | assertEquals(new URL("http://0.0.0.255").hostname, "0.0.0.255"); |
| test/js/deno/url/url.test.ts:80 | ip-literal-url | assertThrows(()=>new URL("http://0.0.0.256"), TypeError, "Invalid URL"); |
| test/js/node/test/parallel/test-http-proxy-request-invalid-proxy.mjs:9 | ip-literal-url | proxyUrl: 'http://256.256.256.256:8080', |
| test/js/node/test/parallel/test-tls-check-server-identity.js:93 | ip-literal-url | cert: { subject: { CN: '8.8.8.8' }, subjectaltname: 'URI:http://8.8.8.8/' }, |
| test/js/web/fetch/fetch-http3-syscall-fault.test.ts:196 | ip-literal-url | const outcome = await h3("https://255.255.255.255/", 1000).then(res => "status " + res.status, e => e.name); |
| test/js/web/websocket/websocket.test.js:821 | ip-literal-url | const publicAddress = new URL("https://1.1.1.1:3000"); |
npm lifecycle scripts (7)
packages/bun-vscode/package.jsonprepublish:npm version patch && bun run buildtest/cli/install/migration/npm-arborist/link-dep-lifecycle-scripts/a/package.jsonpostinstall:node -e "require('fs').writeFileSync('a-post-install', '')"test/cli/install/migration/npm-arborist/link-dep-lifecycle-scripts/a/package.jsonprepare:node -e "require('fs').writeFileSync('a-prepare', '')"test/integration/next-pages/package.jsonpostinstall:cd node_modules/puppeteer && bun install.mjstest/integration/vite-build/the-test-app/package.jsonprepare:svelte-kit synctest/napi/napi-app/package.jsoninstall:bun --bun node-gyp rebuild --debug -j maxtest/regression/issue/30205-napi-app/package.jsoninstall:bun --bun node-gyp rebuild --debug -j max
Installer scripts (10)
- bench/bundle/run-bench.sh, 3 lines
- bench/site/bench/install.sh, 59 lines
- bench/site/run-all.sh, 33 lines
- bench/site/setup-repos.sh, 34 lines; talks to github.com
- bench/site/setup-toolchains.sh, 33 lines; talks to dl.deno.land, github.com, nodejs.org
- bench/stress/hot-reload-files/run-stress-test.sh, 14 lines
- scripts/run-clang-format.sh, 118 lines
- src/runtime/cli/install.ps1, 321 lines; talks to aka.ms, community.sqlbackupandftp.com, discord.com, github.com, learn.microsoft.com
- src/runtime/cli/install.sh, 327 lines, edits your shell profile; talks to github.com
- src/runtime/cli/uninstall.ps1, 116 lines; talks to github.com
Committed binaries (13)
test/js/web/encoding/utf8-encoding-fixture.bin: .bin, 4 MBsrc/runtime/cli/typescript_libs.bin: .bin, 383 KBtest/cli/install/bun.lockb.bin-linking: .bin-linking, 42 KBbench/express/bun.lockb: .lockb, 34 KBtest/cli/install/fixtures/invalid-optional-peer.lockb: .lockb, 30 KBtest/cli/install/fixtures/bun.lockb.v2-most-features: .v2-most-features, 18 KBtest/js/bun/image/fixtures/sharp-reference.bin: .bin, 14 KBtest/integration/sharp/bun.lockb: .lockb, 14 KBbench/postgres/bun.lockb: .lockb, 10 KBtest/cli/install/fixtures/bun.lockb.v2: .v2, 3 KBtest/js/node/test/fixtures/google_ssl_hello.bin: .bin, 1 KBtest/aot/parallel/modules/a-file-imported-as-a-file-keeps-its-bytes/bytes.bin: .bin, 1 KBtest/aot/parallel/modules/a-file-imported-as-a-file-keeps-its-bytes/utf16.bin: .bin, 1 KB
Worst known vulnerabilities (24 of 860)
| Advisory | Severity | Package | Summary |
|---|---|---|---|
| GHSA-fjxv-7rqg-78g4 | critical | form-data@2.5.1 | form-data uses unsafe random function in form-data for choosing boundary |
| GHSA-67hx-6x53-jw92 | critical | @babel/traverse@7.23.0 | Babel vulnerable to arbitrary code execution when compiling specifically crafted malicious code |
| GHSA-x9vf-53q3-cvx6 | critical | @casl/ability@5.4.4 | CASL Ability is Vulnerable to Prototype Pollution |
| GHSA-23hp-3jrh-7fpw | critical | tar@6.1.13 | node-tar: Decompression/parse DoS via unlimited input |
| GHSA-3xcq-8mjw-h6mx | critical | @strapi/plugin-content-type-builder@4.13.7 | Strapi Vulnerable to SQL Injection in Content Type Builder |
| GHSA-593f-38f6-jp5m | critical | koa@2.13.4 | Inefficient Regular Expression Complexity in koa |
| GHSA-rjg2-95x7-8qmx | critical | @strapi/strapi@4.13.7 | Strapi may leak sensitive data via relational filtering due to lack of query sanitization |
| GHSA-vjh7-7g9h-fjfh | critical | elliptic@6.5.4 | Elliptic's private key extraction in ECDSA upon signing a malformed input (e.g. a string) |
| GHSA-m7jm-9gc2-mpf2 | critical | fast-xml-parser@4.2.5 | fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names |
| GHSA-fjxv-7rqg-78g4 | critical | form-data@4.0.0 | form-data uses unsafe random function in form-data for choosing boundary |
| GHSA-2w6w-674q-4c4q | critical | handlebars@4.7.8 | Handlebars.js has JavaScript Injection via AST Type Confusion |
| GHSA-8r5x-fm3f-whwj | critical | handlebars@4.7.8 | Handlebars: JavaScript Injection via AST Type Confusion in compile (bypass of CVE-2026-33937) |
| GHSA-p8wg-vrv2-v86f | critical | handlebars@4.7.8 | Handlebars: JavaScript Injection via Own Property Check Bypass |
| GHSA-fjxv-7rqg-78g4 | critical | form-data@3.0.1 | form-data uses unsafe random function in form-data for choosing boundary |
| GHSA-593f-38f6-jp5m | critical | koa@2.14.2 | Inefficient Regular Expression Complexity in koa |
| GHSA-pcrw-h46h-c93h | critical | mongoose@6.12.0 | Mongoose: sanitizeFilter not applied on countDocuments |
| GHSA-vg7j-7cwx-8wgw | critical | mongoose@6.12.0 | Mongoose search injection vulnerability |
| GHSA-2464-fhr4-w9xw | critical | next@13.5.3 | Next.js: Unauthenticated Remote Code Execution in Image Optimization API when SVG files are used |
| GHSA-2xp9-vwfh-vxw4 | critical | next@13.5.3 | Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used |
| GHSA-f82v-jwr5-mffw | critical | next@13.5.3 | Authorization Bypass in Next.js Middleware |
| GHSA-p293-qw3h-jr36 | critical | next@13.5.3 | Next.js: Unauthenticated Remote Code Execution on windows-hosted servers |
| GHSA-67c8-pqhq-4rmx | critical | piscina@4.0.0 | piscina: Prototype-pollution gadget in ThreadPool.options allows RCE via execArgv / loadBalancer / env |
| GHSA-jqcg-44mw-7w3h | critical | proxy-addr@2.0.7 | proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet |
| GHSA-95m3-7q98-8xr5 | critical | sha.js@2.4.11 | sha.js is missing type checks leading to hash rewind and passing on crafted data |
Workflows worth a look
- .github/workflows/cancel-buildkite-on-pr-close.yml: pull_request_target
- .github/workflows/close-linked-issues.yml: pull_request_target
- .github/workflows/comment-cop.yml: pull_request_target
- .github/workflows/on-slop.yml: pull_request_target
By the numbers
| Stars | 97.1K |
|---|---|
| Forks | 5,231 |
| Contributors | 932 |
| Commits | 18.9K |
| Open issues | 2,782 |
| Open pull requests | 2,398 |
| Releases | 220 |
| Latest release | bun-v1.4.5 |
| Licence | custom |
| Main language | Rust |
| Project age | 5 years |
| Last push | Nov 30, 2026 |
| Tracked files | 101,005 |
| Lines of code | 7.3M |
| Checkout size | 421 MB |
Lines by language: TypeScript 2.6M, Rust 2.4M, JavaScript 1.3M, Markdown 291.1K, JSON 264.5K, C++ 259.8K.
Questions
Is Bun free?
Yes. It is free and open source under the MIT licence, with no account and no paid version.
Bun or Node.js?
Node.js if you want the most tested runtime, where every npm package just works. Bun if you want faster installs, TypeScript with no setup and built-in tests and bundling; most Node apps run in it, but test yours first.
Does Bun work on Windows?
Yes, on x64 and arm64. Install it with the PowerShell command or npm, then use it in PowerShell or Windows Terminal.
Does Bun send my data anywhere?
Only crash reports, on macOS and Windows: a short code describing where Bun itself crashed, without your code. Set DO_NOT_TRACK=1, or telemetry = false in bunfig.toml, to turn that off.
How do I uninstall Bun?
Delete the ~/.bun folder and the bun PATH lines the installer added to your shell profile. If you installed it with npm, run npm uninstall -g bun.
This post is part of GitHub Tools, where every repository is cloned and scanned before it is written up. The scan is a snapshot of one commit on one day; the repository has moved on since, so check it before you install.
