Skip to content

[1.0] [CVE-2026-41316] Bump erb to 4.0.4.1 (#456) - #458

Merged
Jan-Kazlouski-elastic merged 1 commit into
1.0from
backport/1.0/pr-456
Jul 23, 2026
Merged

[1.0] [CVE-2026-41316] Bump erb to 4.0.4.1 (#456)#458
Jan-Kazlouski-elastic merged 1 commit into
1.0from
backport/1.0/pr-456

Conversation

@github-actions

Copy link
Copy Markdown

Backports the following commits to 1.0:

### 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>
@Jan-Kazlouski-elastic
Jan-Kazlouski-elastic enabled auto-merge (squash) July 23, 2026 19:38
@Jan-Kazlouski-elastic
Jan-Kazlouski-elastic merged commit 917c062 into 1.0 Jul 23, 2026
2 checks passed
@Jan-Kazlouski-elastic
Jan-Kazlouski-elastic deleted the backport/1.0/pr-456 branch July 23, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant