Skip to content

Update Ruby to 4.0.10 for the Regexp and String security release - #1014

Merged
tagliala merged 3 commits into
mainfrom
chore/update-dependencies
Nov 20, 2026
Merged

tagliala merged 3 commits into
mainfrom
chore/update-dependencies

Conversation

@tagliala

Copy link
Copy Markdown
Contributor

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@v1 is already the
latest major and resolves .ruby-version; ruby-builder publishes
ruby-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 them
were published on 2026-11-06 or earlier.

Chrome 158 and capybara

Capybara 3.40.0 ChromeDriver#reset! ends with
Storage.clearDataForOrigin(origin: "*"), which Chrome 158 rejects
with invalid argument: * is not a valid URL. Every system test errored
in teardown, on main with Ruby 4.0.9 as well, so it is not caused by
this 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.rb now clears the page storage and
the 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 errors
  • npm run build:css with tailwindcss 4.3.5
  • No new deprecation warnings in the test output
  • RuboCop and Brakeman are not part of the bundle, so they are not run

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
tagliala marked this pull request as ready for review November 20, 2026 22:11
@codecov

codecov Bot commented Nov 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.85%. Comparing base (316d33e) to head (0acf519).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tagliala
tagliala merged commit 8d70184 into main Nov 20, 2026
6 checks passed
@tagliala
tagliala deleted the chore/update-dependencies branch November 20, 2026 22:12
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.

1 participant