erb vulnerabilities

An easy to use but powerful templating system for Ruby.

Registry
RubyGems
Latest
6.0.7
License
Ruby, BSD-2-Clause

1 known advisory

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

Update to the latest version:bundle update --conservative erb # Gemfile: '>= 6.0.7'

Is your project on an affected erb?

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 erb

  • HighCVE-2026-41316GHSA-q339-8rmv-2mhv24 Apr 2026

    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

Is your erb version vulnerable?

Which of your client projects still run an old erb?

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.