Is bson 2.2 vulnerable?
RubyGems · 5 releases from 2.2.0 to 2.2.4 · latest bson is 5.2.0 · checked 18 Nov 2026
Yes: 2 known advisories
Yes. bson 2.2.4, the last 2.2 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.
bundle update --conservative bson # Gemfile: '>= 3.0.4'Is your project on an affected bson?
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.2.4
BSON rubygem contains potential denial of service
- Affected
- <3.0.4
- Fixed in
- 3.0.4
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
Every bson 2.2.x release
Affected: 2.2.0 to 2.2.4. Latest bson: 5.2.0.
| Version | Known advisories |
|---|---|
| bson 2.2.4 | CVE-2015-4411, CVE-2015-4412 |
| bson 2.2.3 | CVE-2015-4411, CVE-2015-4412 |
| bson 2.2.2 | CVE-2015-4411, CVE-2015-4412 |
| bson 2.2.1 | CVE-2015-4411, CVE-2015-4412 |
| bson 2.2.0 | CVE-2015-4411, CVE-2015-4412 |
Which of your client projects are still on bson 2.2?
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.