Vulnerability in Ruby Erb

CVE-2026-41316

ERB is a templating system for Ruby. Ruby 2.7.0 (before ERB 2.2.0 was published on rubygems.org) introduced an `@_init` instance variable guard in `ERB#result` and `ERB#run` to prevent code execution when an ERB object is reconstructed via…

EPSS: 0.000 (15.1th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

  • Ruby Erb — versions < 4.0.3.1, = 4.0.4, >= 5.0.0, < 6.0.1.1

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-41316?
CVE-2026-41316 is a high-severity vulnerability in Ruby Erb, classified under Protection Mechanism Failure. CVSS score: 8.1/10. Published 2026-04-24.
How severe is CVE-2026-41316?
High severity. CVSS v3 base score is 8.1 out of 10.