Guide

Check Homebrew for vulnerabilities

Homebrew 7 added brew vulns. It checks your installed formulae against the OSV.dev database of known vulnerabilities.

The mead Security view, with a button to scan installed formulae for known vulnerabilities.

Scan everything you have installed

brew vulns

With no arguments it checks every installed formula. It sends each formula's name and version to OSV.dev and lists any advisories that match.

Casks aren't scanned, and neither is anything installed by another package manager.

Check particular formulae

brew vulns openssl@3 curl

Add --deps to check their dependencies too.

Only show what matters

Hide low and medium findings:

brew vulns --severity=high

Only show issues that already have a fixed release, so an upgrade will sort them out:

brew vulns --fix-available

Check a Brewfile

Scan the formulae a Brewfile lists, before you install them:

brew vulns --brewfile=~/dotfiles/Brewfile

Patched formulae

Homebrew sometimes patches a formula to fix a vulnerability before the project releases a new version. brew vulns skips findings a patch resolves. To see them anyway:

brew vulns --no-ignore-patches

Fixing what it finds

Usually it's an upgrade:

brew update brew upgrade openssl@3

If a fix hasn't been released yet, check the advisory to see whether it affects how you use the package.

In mead

  • The Security page runs brew vulns on everything installed and lists each affected package with its advisories and severity.
  • It counts findings resolved by a formula patch separately.
  • On Homebrew older than 7, mead asks OSV.dev directly with the same name and version.
  • Before installing an app, mead checks its code signature and notarization.

Install

Get mead

Free and open source. Needs Homebrew already installed. Apple Silicon and Intel.

brew tap DaKiLloTh/mead
brew install --cask mead