agentsclimarketplace

Claude

Skill giljr/claude

Complete guide to installing, configuring, and running bundler-audit in Ruby/Rails projects. Use this skill whenever the user mentions bundler-audit, gem auditing, vulnerabilities in Ruby gems, dependency CVEs, secure gem updates, or wants to ensure security in a Rails project's dependencies. Also trigger for bundler-audit result analysis, CVE/GHSA interpretation, and safe production update strategies.From its SKILL.md

Install
npx -y skills add giljr/claude

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.5 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

bundler-audit — Security Auditing for Ruby Gems

What is bundler-audit?

bundler-audit is a tool that checks a project's Gemfile.lock against a database of known vulnerabilities (CVEs and GHSAs), identifying gems with security issues and recommending safe versions.


Step-by-Step Installation

1. Add it to the Gemfile

Add it only to the development group — it is not required in production:

group :development do
  gem 'bundler-audit', require: false
end

2. Install project gems

bundle install

3. Update the vulnerability database

bundler-audit maintains a local copy of the advisory database. Always update it before auditing:

bundle exec bundler-audit update

The database contains hundreds of advisories (e.g., 1007 advisories, updated on 2025-08-15).

4. Run the audit

bundle exec bundler-audit check --update

The --update flag ensures the database is automatically updated before the scan.


Interpreting Results

bundler-audit reports each vulnerable gem with:

FieldDescription
GemName of the affected gem
VersionCurrently installed version
AdvisoryCVE or GHSA identifier
CriticalitySeverity level: Unknown / Low / Medium / High / Critical
TitleShort vulnerability description
SolutionRecommended safe version

Clean result:

No vulnerabilities found

Vulnerability found (example):

Name: rack
Version: 3.1.8
Advisory: CVE-2025-27610
Criticality: High
Title: Path traversal vulnerability
Solution: upgrade to >= 3.1.16

Safe Update Strategy

Development / Staging Environment

You can update all vulnerable gems at once:

bundle update nokogiri rack net-imap activerecord activestorage rack-session thor uri

Production Environment (Recommended: Gradual Updates)

⚠️ Warning: In production, update one gem at a time and run tests after each update.

# 1. Update a single gem
bundle update rack

# 2. Run application tests
rails test -v

# 3. Verify bundler-audit is satisfied with the updated gem
bundle exec bundler-audit check

# 4. Repeat for the next gem

Update All System Gems (Optional)

gem update

Use with caution — this may introduce compatibility issues in projects that do not explicitly manage gem versions.


Common Vulnerabilities (Reference)

GemCommon CVEsRisk Type
nokogiriGHSA-mrxw-mxhj-p664libxml2/libxslt issues
rackCVE-2025-25184, 27610Log injection, LFI, DoS, ReDoS
net-imapCVE-2025-25186Memory exhaustion DoS
activerecordCVE-2025-55193ANSI escape injection in logs
activestorageCVE-2025-24293Potentially unsafe transformations
rack-sessionCVE-2025-46336Session restoration after deletion
thorCVE-2025-54314Shell input injection
uriCVE-2025-27221Userinfo leakage in URI join/merge

CI/CD Integration

Add the audit to your pipeline to block deployments when vulnerabilities are detected:

# GitHub Actions example
- name: Audit gems
  run: bundle exec bundler-audit check --update

The command returns exit code 1 if vulnerabilities are found, automatically stopping the pipeline.


Recommended Complete Workflow

1. bundle exec bundler-audit update      # Update advisory database
2. bundle exec bundler-audit check       # Check for vulnerabilities
3. bundle update <vulnerable-gem>        # Update one gem at a time (production)
4. rails test -v                         # Verify nothing broke
5. bundle exec bundler-audit check       # Confirm the vulnerability is fixed
6. Repeat until: "No vulnerabilities found"

What Are CVEs and GHSAs?

  • CVE (Common Vulnerabilities and Exposures): a global vulnerability identifier maintained by MITRE. Example: CVE-2025-27610.
  • GHSA (GitHub Security Advisory): a vulnerability identifier reported through GitHub. Example: GHSA-mrxw-mxhj-p664.
  • Both are tracked by the bundler-audit advisory database.

What ships with it: 164 files

1960.9 KB alongside SKILL.md, 76 of them executable

bundler-audit-test/

124 more files not listed here. See all 164 in the repository.

Keep looking

Skills are one crate of 326,861. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.