[1.0] [CVE-2026-41316] Bump erb to 4.0.4.1 (#456) - #458
Merged
Conversation
### Part of elastic/security#12737 Resolves **CVE-2026-41316** (high) — `@_init` deserialization guard bypass in ERB via `def_module` / `def_method` / `def_class`. Fixed in ERB **4.0.4.1**. #### Changes - **`Gemfile` / `Gemfile.lock`**: pin `erb` to `4.0.4.1` (overrides JRuby 9.4's default `erb` 2.2.3). - **`NOTICE.txt`**: regenerated for the new dependency (and transitive `cgi`). #### Testing - Lint: no offenses. - Full test suite: **690 examples, 16 pending**; one flaky locking spec unrelated to erb (passes on retry). - Confirmed runtime ERB version is `4.0.4.1`. ### Scanner A/B (`CVE-2026-41316`) | Tool | Before | After | |------|--------|-------| | Trivy | reported | clear | | Snyk | reported | clear | ### Checklists #### Pre-Review Checklist - [x] This PR does NOT contain credentials of any kind, such as API keys or username/passwords (double check `crawler.yml.example` and `elasticsearch.yml.example`) - [x] This PR has a meaningful title - [x] This PR links to all relevant GitHub issues that it fixes or partially addresses - [x] this PR has a thorough description - [ ] Covered the changes with automated tests - [x] Tested the changes locally - [x] Added a label for each target release version (example: `v0.1.0`) - [ ] Considered corresponding documentation changes - [ ] Contributed any configuration settings changes to the configuration reference - [x] Ran `make notice` if any dependencies have been added #### Changes Requiring Extra Attention - [x] Security-related changes (encryption, TLS, SSRF, etc) ### Release Note Bump ERB to 4.0.4.1 to resolve CVE-2026-41316 (deserialization guard bypass). Made with [Cursor](https://cursor.com) Co-authored-by: Cursor <cursoragent@cursor.com>
11 tasks
Jan-Kazlouski-elastic
approved these changes
Jul 23, 2026
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.
Backports the following commits to 1.0: