Repository navigation
Update Ruby to 4.0.10 for the Regexp and String security release - #1014
Merged
Merged
Conversation
Ruby 4.0.10 fixes seven vulnerabilities in the regular expression engine and in String case conversion, several of which have proof-of-concept remote code execution: GHSA-34m4-m9fh-gqp5 GHSA-7whj-cfh7-xgm4 GHSA-7x2q-68qv-6p8x GHSA-pvgc-g7gj-pv6h GHSA-87fm-7w84-j2px GHSA-wpqw-5qxg-m68r GHSA-3p8q-wmhx-vm2w The release is two days old, so it is inside the five-day cooldown. It is taken anyway because the alternative is staying on a version with known remote code execution. Render and GitHub Actions need no change: both read .ruby-version, and ruby-builder already ships 4.0.10 binaries for setup-ruby@v1. Gems updated by the same run: bundler 4.0.24 -> 4.1.0 (the version shipped with Ruby 4.0.10), puma 8.0.2 -> 8.1.1, minitest 6.0.6 -> 6.1.0, prism 1.9.0 -> 2.1.0, kaminari 1.3.2 -> 1.3.3, irb 1.18.0 -> 1.19.0. The cooldown held back connection_pool 3.0.3, puma 8.1.2, regexp_parser 2.13.4, selenium-webdriver 4.53.0, websocket-driver 0.9.0 and websocket-extensions 0.2.0.
tailwindcss and @tailwindcss/cli 4.3.4 -> 4.3.5, plus @jridgewell/resolve-uri 3.1.2 -> 3.1.3 pulled in by npm update. All of them were published on 2026-11-06 or earlier, so the five-day cooldown is respected. The CSS build passes.
Capybara 3.40.0 ends ChromeDriver#reset! with Storage.clearDataForOrigin(origin: "*"), and Chrome 158 rejects that origin with "invalid argument: * is not a valid URL". Every system test therefore errored in teardown on Chrome 158, on Ruby 4.0.9 too. Clear the page storage and the cookies before and after the reset instead. Local storage of origins visited earlier in the same test is no longer cleared, which the demo suites do not rely on. Drop the workaround when capybara ships a fix for teamcapybara/capybara#2865.
tagliala
marked this pull request as ready for review
November 20, 2026 22:11
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1014 +/- ##
=======================================
Coverage 98.85% 98.85%
=======================================
Files 21 21
Lines 522 522
=======================================
Hits 516 516
Misses 6 6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Dependency update produced automatically by AI.
Ruby 4.0.10 (security)
Ruby 4.0.10 fixes seven vulnerabilities in the Regexp engine and in
String case conversion, several with proof-of-concept remote code
execution. Affected versions are 4.0.0 through 4.0.9.
GHSA-34m4-m9fh-gqp5, GHSA-7x2q-68qv-6p8x, GHSA-87fm-7w84-j2px,
GHSA-wpqw-5qxg-m68r, GHSA-3p8q-wmhx-vm2w, GHSA-7whj-cfh7-xgm4,
GHSA-pvgc-g7gj-pv6h.
The release is two days old, so it is inside the five-day cooldown. The
bump is deliberate: the alternative is staying on a version with known
remote code execution.
No workflow change is needed.
ruby/setup-ruby@v1is already thelatest major and resolves
.ruby-version; ruby-builder publishesruby-4.0.10-ubuntu-24.04-*binaries, so CI installs 4.0.10 as is.Maintenance updates
Gems: bundler 4.0.24 -> 4.1.0 (the version shipped with Ruby 4.0.10),
puma 8.0.2 -> 8.1.1, minitest 6.0.6 -> 6.1.0, prism 1.9.0 -> 2.1.0,
kaminari 1.3.2 -> 1.3.3, irb 1.18.0 -> 1.19.0. The changelog review
found no breaking change: minitest 6.1.0 only allows prism 2.0 as a
dependency, prism is used as a parser by irb, rbs and minitest, and
kaminari 1.3.3 is bug fixes.
Held back by the cooldown: connection_pool 3.0.3, puma 8.1.2,
regexp_parser 2.13.4, selenium-webdriver 4.53.0, websocket-driver
0.9.0, websocket-extensions 0.2.0.
puma 8.1.2 is a security release (GHSA-4v6q-hvv7-49h9: a TLS connection
is not closed when OpenSSL reports a fatal read error) and is three
days old, so the cooldown holds it back. The demo terminates TLS at the
edge, so puma's own TLS listener is not exposed. Worth a follow-up bump
as soon as the cooldown allows.
npm: tailwindcss and @tailwindcss/cli 4.3.4 -> 4.3.5, plus
@jridgewell/resolve-uri 3.1.2 -> 3.1.3 from
npm update. All of themwere published on 2026-11-06 or earlier.
Chrome 158 and capybara
Capybara 3.40.0
ChromeDriver#reset!ends withStorage.clearDataForOrigin(origin: "*"), which Chrome 158 rejectswith
invalid argument: * is not a valid URL. Every system test erroredin teardown, on
mainwith Ruby 4.0.9 as well, so it is not caused bythis update.
No capybara release exists after 3.40.0 (January 2024). The issue is
teamcapybara/capybara#2865 and two fix PRs are open upstream.
test/application_system_test_case.rbnow clears the page storage andthe cookies explicitly around the reset. Local storage of origins
visited earlier in the same test is no longer cleared, which the demo
suite does not rely on. Drop the workaround when capybara ships a fix.
Verification
bin/rails test:all: 102 runs, 416 assertions, 0 failures, 0 errorsnpm run build:csswith tailwindcss 4.3.5