Finding Relationships Between Ruby’s Top 100 Packages and Their Dependencies
RubyGems' MFA requirement for gems over 180M downloads leaves a loophole: some big gems depend on small gems below the threshold, so compromising a small gem's owner account reaches big gems' users. Querying rubygems.org data dumps found 112 big gems; the rubygems.org API showed 13 with small direct dependencies, and resolving full transitive trees via programmatic `bundle lock` raised that to 24. Small dependencies exist mainly because they are newer than their parents or ship with Ruby by default (e.g. racc, rexml). A dependency graph built with the graph gem and a custom DFS that enumerates all paths show how each big gem reaches each small one, and the proposed responses are waiting for universal MFA or enforcing MFA early on those specific gems.
Related posts
- How We Fixed the Dependency Confusion Vulnerability in Over 600 Ruby Applications
Shopify Engineering mediumAdeptShopify closed a dependency confusion hole across roughly 600 Ruby applications by migrating each `Gemfile.lock` to Bundler's newer format, which pins every gem to an explicit source. A custom Bundler plugin did the upgrade without changing dependency versions: it allowed only patch updates during regeneration, then restored the original versions. A CLI running on top of CI gave each repository its own environment, ran the migrations in parallel and opened pull requests automatically. Shopify also failed CI on outdated Bundler versions and worked with the Bundler maintainers on changes that shipped in 2.2.21 and 2.2.22, the latter preventing lockfiles from regressing to the old format.
- Your Dependencies Don’t Care About Your FIPS Configuration
Docker mediumAdeptFIPS-enabled container images can still run non-FIPS crypto because prebuilt native dependencies bring their own crypto linkage. A Rails app on a correctly configured Ruby/OpenSSL 3 FIPS image hit crypto errors only through ActiveRecord, traced to a prebuilt libpq pulled in by the pg gem. The fix is to set force_ruby_platform: true for pg (or BUNDLE_FORCE_RUBY_PLATFORM) and install libpq-dev so the gem is compiled against the image's OpenSSL. Enabling this globally drags in compilers and headers for every native gem, so the recommendations are to treat prebuilt binaries as suspect, verify linkage with ldd, compile selectively in a multi-stage build, and test real execution paths such as running queries.
- Ruby2Shell (CVE-2026-132825): find vulnerable Ruby across your repos
Sourcegraph mediumAdept
Ruby2Shell (CVE-2026-132825) is a critical heap overflow in Ruby's string case conversion that researchers say default Rails and classic Sinatra apps expose without authentication, with remote code execution proofs of concept known. Fixed releases are 3.3.14, 3.4.13 and 4.0.10, and the hard part is finding which interpreter actually runs, because Dockerfiles, .ruby-version, Gemfile and Gemfile.lock can disagree and vendor products may bundle their own Ruby. Sourcegraph gives regex Code Search queries for affected version pins, a Deep Search prompt to reconcile pins per repo, and an Agentic Batch Changes prompt to bump exact pins within each series. Floating tags, unresolved build args and Ruby 3.2 or earlier are flagged for rebuild, review or migration rather than edited automatically.
- How Software Bill of Materials change the dependency game
Zalando Engineering mediumAdeptZalando generates a Software Bill of Materials from the container image of every deployed application and publishes the dependency data to its data lake, so any engineer can query which apps use a library version, which licenses are in use, and how fast upgrades are adopted. This made CVE and license-change impact analysis (log4j, Akka) take minutes, enabled automated mass pull requests for patches, and exposed waste such as apps bundling the full 200MB+ AWS Java SDK. Their data shows dependency counts rising steeply by language: Python has the fewest, Go roughly 1.4-2x more, JVM 2-3x more than Go, and JavaScript 5-10x more than Java. SBOM quality is uneven: JVM package naming is inconsistent and uber-jars strip the metadata scanners need, so generation should be verified per application.
- How GitHub uses CodeQL to secure GitHub
GitHub Engineering mediumAdeptGitHub's Product Security Engineering team runs CodeQL across more than 10,000 repositories, mostly with default setup and the security-extended suites. Its Ruby monolith gets advanced setup with a custom query pack published to GitHub Container Registry. Publishing the pack separately avoided production deploys for every query change, gave precompiled queries, and kept CodeQL CLI upgrades from breaking monolith CI. A bad query could be rolled back by republishing the pack in under 15 minutes. The post shows how they pin the ruby-all dependency via codeql-pack.lock.yml, unit-test queries, share the pack through a linked repository, and use recommendation-severity custom queries (e.g. missing control_access on REST endpoints, ActiveRecord decrypt) alongside multi-repository variant analysis for bug bounty follow-up.