MrTechKing

5 min read

Gum: Add Menus, Prompts and Spinners to Shell Scripts (GitHub, Scanned)

A free tool from Charm that gives shell scripts pick-lists, text prompts, confirm boxes and spinners, with no Go code needed.

Gum logo
✅
Scan: safe. Nothing to warn about. No secrets or suspicious code, and it makes no network connections of its own. Scanned Dec 4, 2026; the full report is below.

Gum is a free command-line tool that adds friendly, good-looking prompts to your shell scripts. Each part is one command: gum choose shows a list you pick from with the arrow keys, gum input asks for a line of text, gum confirm asks yes or no, gum spin shows a spinner while a slow command runs, and gum filter lets you fuzzy-search a list. Whatever the person picks or types is printed, so you save it in a variable and carry on with your script.

It earns its place because building a nice terminal interface normally means writing a real program. With Gum a ten-line Bash script can ask which branch to deploy, confirm before it deletes anything and show a styled summary at the end. It also has commands to pick a file, page through text, draw tables, format Markdown, join and style blocks of text with borders and colours, and print log lines, and every command takes flags and environment variables for colours and layout. The README's tutorial builds a Git commit helper in a few lines.

Gum is MIT licensed and written in Go by Charm, the company behind the Bubble Tea and Lip Gloss terminal libraries it is built on. It has about 25,000 stars and over 70 contributors. Version 2.0.2 came out on 24 September 2026.

Who it is for

People who write Bash, Zsh or Fish scripts and dotfile aliases, developers building small team tools, and anyone who wants a script to ask questions instead of reading flags. You need to be comfortable in a terminal; it runs on macOS, Linux, Windows and the BSDs.

Getting started

1. macOS or Linux with Homebrew

brew install gum

2. Or Windows

winget install charmbracelet.gum

3. Show a pick-list and print the choice

gum choose "fix" "feat" "docs"

4. Ask for text and save it in a variable

NAME=$(gum input --placeholder "Your name")

5. Confirm before running a command

gum confirm "Say hello?" && echo "Hello, $NAME"

Package managers install the gum program and change nothing else. The Debian and Fedora instructions add Charm's own package repository and signing key with sudo. gum spin runs whatever command you hand it, so only pass it commands you trust. Our scan covers the source code, not the prebuilt binaries or packages.

Safety scan

We cloned charmbracelet/gum at commit b4a8ece on Dec 4, 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.

  • 0 secret hits and no committed binaries across 115 files and about 7,100 lines, mostly Go with example shell scripts.
  • 0 pattern hits. There are no install hooks or build scripts; the shell, Ruby, Python and JavaScript files are short examples in the examples folder.
  • No install script of its own. It ships through Homebrew, winget, Scoop, Nix, the Linux distributions and Charm's apt and yum repositories, whose instructions use sudo to add a signing key and repository file.
  • 18 advisories across 47 Go modules in go.mod: 1 moderate and 17 unrated, none critical or high. All are in golang.org/x/net and golang.org/x/text, about HTTP/2, HTML and text parsing; Gum has no network code, so the HTTP ones do not reach it.
  • Gum has no HTTP code and no telemetry; the web addresses in the repository are links in its docs. 6 workflows, none on pull_request_target; most call shared workflows from Charm's charmbracelet/meta repository by branch, not pinned to a commit. Dependabot is on; no security policy or CodeQL; its OpenSSF Scorecard is 5.2 out of 10.

What the scanner counted

CheckResult
SecretsNone found.
Suspicious codeNone found.
Install-time codeNone: nothing runs at install beyond the package manager itself.
Committed binariesNone.
CI workflows6 workflows. None use pull_request_target. 6 of 6 third-party actions pinned to a tag rather than a commit.
Network hosts4 distinct hosts referenced from source; most often github.com, wikipedia.org, www.nerdfonts.com, www.youtube.com. No URLs to bare IP addresses.
Known vulnerabilities18 advisories across 47 pinned packages: 0 critical, 0 high, 1 moderate, 0 low, 17 unrated. go.mod: 47 packages, 18 advisories.
Project hygieneHas automated dependency updates, licence file. Missing security policy, CodeQL, contributing guide.
OpenSSF Scorecard5.2 out of 10, as of Nov 30, 2026.

The raw findings

Every hit the scanner wrote out, with a link to the exact line at the scanned commit. Secrets candidates are redacted.

Worst known vulnerabilities (18 of 18)
AdvisorySeverityPackageSummary
GHSA-5cv4-jp36-h3mwmoderategolang.org/x/net@0.40.0Go Net HTML parser is vulnerable to denial of service
CVE-2026-56851unknowngolang.org/x/text@0.39.0Panic parsing crafted input in x/text/secure/precis in golang.org/x/text
GHSA-w4gw-w5jq-g9jhunknowngolang.org/x/net@0.40.0Quadratic parsing complexity in golang.org/x/net/html
CVE-2025-58190unknowngolang.org/x/net@0.40.0Infinite parsing loop in golang.org/x/net
CVE-2026-33814unknowngolang.org/x/net@0.40.0Infinite loop in HTTP/2 transport when given bad SETTINGS_MAX_FRAME_SIZE in net/http/internal/http2 in golang.org/x/net
CVE-2026-42506unknowngolang.org/x/net@0.40.0Invoking incorrect handling of namespaced elements in foreign content in golang.org/x/net/html
CVE-2026-39821unknowngolang.org/x/net@0.40.0Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna
CVE-2026-42502unknowngolang.org/x/net@0.40.0Invoking incorrect handling of HTML elements in foreign content in golang.org/x/net/html
CVE-2026-25681unknowngolang.org/x/net@0.40.0Invoking incorrect handling of character references in DOCTYPE nodes in golang.org/x/net/html
CVE-2026-27136unknowngolang.org/x/net@0.40.0Invoking duplicate attributes can cause XSS in golang.org/x/net/html
CVE-2026-46600unknowngolang.org/x/net@0.40.0Parsing an invalid SVCB or HTTPS RR can panic in golang.org/x/net/dns/dnsmessage
CVE-2026-78659unknowngolang.org/x/net@0.40.0HTTP/2 server memory exhaustion due to Trailer headers in net/http
CVE-2026-78660unknowngolang.org/x/net@0.40.0HTTP/2 transport accepts malformed framing-related headers in net/http
CVE-2026-78669unknowngolang.org/x/net@0.40.0Excessive CPU consumption from repeated initial window changes in net/http
CVE-2026-78663unknowngolang.org/x/net@0.40.0Double flow control refund on HTTP/2 server streams in net/http
CVE-2026-97032unknowngolang.org/x/net@0.40.0HTTP/2 server crash due to HPACK encoder race in net/http
CVE-2026-78661unknowngolang.org/x/net@0.40.0Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net
CVE-2026-97045unknowngolang.org/x/net@0.40.0Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net

By the numbers

Stars24.8K
Forks770
Contributors75
Commits686
Open issues150
Open pull requests77
Releases29
Latest releasev2.0.2
LicenceMIT
Main languageGo
Project age4 years
Last pushNov 30, 2026
Tracked files115
Lines of code7,067
Checkout size229 KB

Lines by language: Go 5,827, Markdown 617, Shell 346, YAML 225, Ruby 30, JavaScript 14.

Questions

Is Gum free?

Yes. It is free and open source under the MIT licence, with no account and no paid version.

Gum or fzf?

fzf if all you need is a fast fuzzy finder for files and history. Gum if your script also needs text prompts, yes or no questions, spinners, tables and styled output; its gum filter command covers simple fuzzy search.

Does Gum work on Windows?

Yes. Install it with winget or Scoop; it works in PowerShell and in Git Bash scripts.

Do I need to know Go to use Gum?

No. You call it from any shell script like any other command; Go is only needed if you want to build it from source.

Does Gum send my data anywhere?

No. It has no network code and no telemetry; it only reads your keys and prints the answer back to your script.


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.