Is bson 2.3 vulnerable?

RubyGems · 1 release from 2.3.0 to 2.3.0 · latest bson is 5.2.0 · checked 18 Nov 2026

Yes: 2 known advisories

Yes. bson 2.3.0, the last 2.3 release, is affected by 2 known security advisories (1 critical, 1 high), including CVE-2015-4412, CVE-2015-4411. Upgrade to 3.0.4 or later to fix all of them.

Upgrade with:bundle update --conservative bson # Gemfile: '>= 3.0.4'

Is your project on an affected bson?

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

Advisories affecting bson 2.3.0

  • HighCVE-2015-4411GHSA-qh4w-7pw3-p4rp29 Apr 2020

    BSON rubygem contains potential denial of service

    Affected
    <3.0.4
    Fixed in
    3.0.4
  • CriticalCVE-2015-4412GHSA-h6rj-8r3c-9gpj5 Mar 2018

    bson is vulnerable to denial of service due to incorrect regex validation

    Affected
    <1.12.3 · >=2.0 <3.0.4
    Fixed in
    1.12.3, 3.0.4

Which of your client projects are still on bson 2.3?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact bson version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other bson versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the RubyGems registry. Refreshed daily.