Skip to content

Security: Update erb gem to patch CVE-2026-41316 #1379

Merged
IgnacioN99 merged 3 commits intomainfrom
update-erb-vulnerability
Apr 24, 2026
Merged

Security: Update erb gem to patch CVE-2026-41316 #1379
IgnacioN99 merged 3 commits intomainfrom
update-erb-vulnerability

Conversation

@IgnacioN99
Copy link
Copy Markdown
Contributor

Updates erb from 6.0.2 to 6.0.4 to mitigate CVE-2026-41316, a vulnerability that allows bypassing
ERB's deserialization guard via def_method, def_module, and def_class, potentially enabling
arbitrary code execution when handling untrusted input.

Since erb is a transitive dependency (not declared directly in the Gemfile), it is explicitly
pinned to >= 6.0.4 to ensure the safe version is enforced across all environments and survives
future lockfile regenerations.

@IgnacioN99 IgnacioN99 requested a review from santib April 24, 2026 14:05
Comment thread Gemfile Outdated
@IgnacioN99 IgnacioN99 requested a review from santib April 24, 2026 14:27
Comment thread Gemfile.lock Outdated
Copy link
Copy Markdown
Member

@santib santib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left one last comment

@IgnacioN99 IgnacioN99 enabled auto-merge (squash) April 24, 2026 14:39
Copy link
Copy Markdown
Member

@santib santib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the fix!

@IgnacioN99 IgnacioN99 merged commit 008c5b6 into main Apr 24, 2026
4 checks passed
@IgnacioN99 IgnacioN99 deleted the update-erb-vulnerability branch April 24, 2026 14:40
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants