[CVE-2026-41316] Bump erb to 4.0.4.1 - #456
Merged
Jan-Kazlouski-elastic merged 1 commit intoJul 23, 2026
Merged
Conversation
Override JRuby 9.4's default erb 2.2.3; patched @_init guard covers def_module/def_method/def_class deserialization bypass. Part of elastic/security#12737 Co-authored-by: Cursor <cursoragent@cursor.com>
Jan-Kazlouski-elastic
requested review from
artem-shelkovnikov,
erikcurrin-elastic and
mattnowzari
July 23, 2026 18:33
erikcurrin-elastic
approved these changes
Jul 23, 2026
Jan-Kazlouski-elastic
added a commit
that referenced
this pull request
Jul 23, 2026
Backports the following commits to 1.0: - [CVE-2026-41316] Bump erb to 4.0.4.1 (#456) Co-authored-by: Jan-Kazlouski-elastic <jan.kazlouski@elastic.co> Co-authored-by: Cursor <cursoragent@cursor.com>
Jan-Kazlouski-elastic
added a commit
that referenced
this pull request
Jul 24, 2026
Resolve NOTICE.txt conflict by regenerating it (make notice) on top of the merged Gemfile.lock, which now includes both erb 4.0.4.1 (#456) and net-imap 0.3.10.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of https://github.com/elastic/security/issues/12737
Resolves CVE-2026-41316 (high) —
@_initdeserialization guard bypass in ERB viadef_module/def_method/def_class. Fixed in ERB 4.0.4.1.Changes
Gemfile/Gemfile.lock: pinerbto4.0.4.1(overrides JRuby 9.4's defaulterb2.2.3).NOTICE.txt: regenerated for the new dependency (and transitivecgi).Testing
4.0.4.1.Scanner A/B (
CVE-2026-41316)Checklists
Pre-Review Checklist
crawler.yml.exampleandelasticsearch.yml.example)v0.1.0)make noticeif any dependencies have been addedChanges Requiring Extra Attention
Release Note
Bump ERB to 4.0.4.1 to resolve CVE-2026-41316 (deserialization guard bypass).
Made with Cursor