Is erb 6.0 vulnerable?

RubyGems · 9 releases from 6.0.0 to 6.0.7 · latest erb is 6.0.7 · checked 18 Nov 2026

No known advisories in the last release

erb 6.0.7, the last 6.0 release, has no known advisories. 1 advisory affects earlier 6.0.x releases, so update to 6.0.7.

Update within 6.0: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

Fixed within 6.0.x, affecting earlier releases

  • 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

Every erb 6.0.x release

Affected: 6.0.0 to 6.0.3 (4 of those releases). 6.0.4 and later are not affected.

VersionKnown advisories
erb 6.0.7None
erb 6.0.6None
erb 6.0.5None
erb 6.0.4None
erb 6.0.3CVE-2026-41316
erb 6.0.2CVE-2026-41316
erb 6.0.1.1None
erb 6.0.1CVE-2026-41316
erb 6.0.0CVE-2026-41316

Which of your client projects are still on erb 6.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.