talira

bundler-audit

Patch-level verification for Bundler

open sourceGPL-3.0-or-laterself-hostablefree

bundler-audit checks a Ruby project's Gemfile.lock for gem versions with known vulnerabilities, using the community-maintained Ruby Advisory Database (ruby-advisory-db) from RubySec, and flags insecure http:// and git:// gem sources. The bundle-audit command prints each advisory with its criticality and the versions that fix it, and can update the database first, ignore advisories you've worked around (on the command line or in .bundler-audit.yml) and write JSON. It runs offline against a local copy of the database, and ships Rake tasks for CI.

Problems it solves

  • does our Gemfile.lock include a gem version with a known security vulnerability?
  • fail the CI build when a Ruby dependency has a published CVE
  • check a Rails app's gems against security advisories without sending our dependency list to a vendor
  • warn me when the Gemfile pulls gems from insecure http or git:// sources
  • ignore one advisory we've already mitigated while still checking for every other one
  • get vulnerable gem findings as JSON for our security tooling
  • a rake task that audits the bundle before each deploy
  • tell me which version to upgrade a vulnerable gem to
  • audit Ruby dependencies on a build machine with no network access
  • free open source vulnerability scanning for a Ruby project's dependencies

Features

  • checks Gemfile.lock against ruby-advisory-db
  • flags insecure http:// and git:// gem sources
  • ignores advisories by ID, on the command line or in .bundler-audit.yml
  • prints advisory ID, criticality, URL, title and fixed versions
  • updates the advisory database (bundle-audit update or check --update)
  • works offline against the local database
  • JSON output to stdout or a file
  • custom Gemfile.lock path
  • Rake tasks (bundle:audit, bundle:audit:update)

Capabilities

Has an APIplan not known
Has a command line toolplan not known

Alternatives

The same job

These do what bundler-audit does.

  1. Trivy Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
  2. Grype A vulnerability scanner for container images and filesystems.
  3. Dependabot Automated dependency updates built into GitHub
  4. Snyk Find, fix and prevent vulnerabilities in code, open source dependencies, container images and cloud configurations
  5. OSV-Scanner Find known vulnerabilities in your project's dependencies, using OSV.dev
  6. govulncheck Find known vulnerabilities that actually affect your Go code

Compare bundler-audit with the top 3