bcrypt vulnerabilities

bcrypt() is a sophisticated and secure hash algorithm designed by The OpenBSD project for hashing passwords. The bcrypt Ruby gem provides a simple wrapper for safely handling passwords.

Registry
RubyGems
Latest
3.1.22
License
MIT

1 known advisory

The latest version, 3.1.22, is not affected by any of them. Projects on older versions may be.

Update to the latest version:bundle update --conservative bcrypt # Gemfile: '>= 3.1.22'

Is your project on an affected bcrypt?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for bcrypt

  • MediumCVE-2026-33306GHSA-f27w-vcwj-c95419 Mar 2026

    bcrypt-ruby has an Integer Overflow that Causes Zero Key-Strengthening Iterations at Cost=31 on JRuby

    Affected
    <3.1.22
    Fixed in
    3.1.22

Is your bcrypt version vulnerable?

Which of your client projects still run an old bcrypt?

NPMscan reads the Gemfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other RubyGems packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the RubyGems registry.