
Fixing the Dependency Confusion Vulnerability in 600+ Ruby Apps - Shopify
1/27/2022
This post details the development of a Bundler plugin to automate the migration of `Gemfile.lock` files to a newer format without updating gem versions, addressing the dependency confusion vulnerability. It also describes the creation of a CLI tool on top of the CI system to manage large-scale migrations, including environment setup, command execution, and pull request creation. The post highlights collaboration with the Heroku Buildpack team to update their Ruby buildpack and with the Bundler team to improve lockfile regeneration capabilities. Finally, it outlines measures to prevent future vulnerabilities by enforcing the recommended Bundler version in local development and CI.
