Is erb 3.0 vulnerable?
RubyGems · 1 release from 3.0.0 to 3.0.0 · latest erb is 6.0.7 · checked 18 Nov 2026
Yes: 1 known advisory
Yes. erb 3.0.0, the last 3.0 release, is affected by 1 known security advisory (1 high), including CVE-2026-41316. Upgrade to 4.0.3.1 or later to fix all of them.
bundle update --conservative erb # Gemfile: '>= 4.0.3.1'Is your project on an affected erb?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Advisories affecting erb 3.0.0
ERB has an @_init deserialization guard bypass via def_module / def_method / def_class
- Affected
- <4.0.3.1 · >=4.0.4 <4.0.4.1 · >=5.0.0 <6.0.1.1 · >=6.0.2 <6.0.4
- Fixed in
- 4.0.3.1, 4.0.4.1, 6.0.1.1, 6.0.4
Which of your client projects are still on erb 3.0?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact erb version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other erb 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.