---
title: "Ruby patches seven memory safety bugs"
publication: "Ruby Weekly"
issue: 827
published_at: "2026-11-19"
canonical_url: "https://rubyweekly.com/issues/827"
---

Plus Gemstash winds down, browserless tests for Hotwire apps, and making a gem coding agents will actually use.        

#​827 — November 19, 2026 

[Read on the Web](https://rubyweekly.com/issues/827)  

Together with [![FastRuby.io\](https://res.cloudinary.com/cpress/image/upload/c_fill,g_auto,w_467,h_106/e_make_transparent/co_white,e_outline:14/y65nyff19ylf5udphsq4.png)](https://go.fastruby.io/t9j)   

Ruby Weekly 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/ssvlodsz681pmsi3qcp6.jpg)](https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/)  

[Upgrade Ruby Now: Seven Memory Safety Bugs Fixed](https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/) — Ruby's regex engine and string case conversion had seven memory safety bugs, and the core team knows of proof-of-concept remote code execution exploits using some of them. Upgrade to [4.0.10](https://www.ruby-lang.org/en/news/2026/11/18/ruby-4-0-10-released/), [3.4.13](https://www.ruby-lang.org/en/news/2026/11/18/ruby-3-4-13-released/) or [3.3.14](https://www.ruby-lang.org/en/news/2026/11/18/ruby-3-3-14-released/), all of which were just released. 

Yusuke Endoh and Ruby Core  

💡 Security firm Durendal explains how [changing the case of a `ß` character](https://durendal.sh/blog/ruby-case-mapping-bugs) in some encodings can overflow a buffer, and reports RCE on a stock Rails app. 

⏱️ [Dennis Paagman has timed the rollout](https://paagman.dev/can-you-patch-ruby-faster-now/). Compared to the [last critical releases](https://rubyweekly.com/issues/823), the official Docker image only took 74 minutes to appear. Speedshop also has [a live tracker of availability](https://rubywatch.speedshop.co) of the new versions within common tools and platforms.  [![\](https://res.cloudinary.com/cpress/image/upload/c_limit,w_480,h_480,q_auto/copm/36641d8d.png)](https://go.fastruby.io/t9j) 

[🚨 Rails 8.0 Is Now EOL. Get to 8.1 Without Losing a Sprint](https://go.fastruby.io/t9j) — Our AI agent works in the background on your CI runners and opens small, reviewable PRs only when your suite is green. Your team keeps shipping features. Nothing merges without you. [Join the beta waitlist and get a free Rails 8.1 readiness check](https://go.fastruby.io/t9j). 

FastRuby.io® | AI-native Rails Maintenance sponsor   

[How I Optimized RubyLLM for Coding Agents](https://paolino.me/optimizing-rubyllm-for-coding-agents/) — Agents were ignoring [RubyLLM](https://rubyllm.com/)'s rapidly growing number of new features and building their own plumbing, so Carmine set out to fix the library rather than the prompts. Some good general lessons in here for any gem author. 

Carmine Paolino   

**⚡️ IN BRIEF:** 

- ⭐ [RubyGems and Bundler 4.1 are out](https://blog.rubygems.org/2026/11/16/whats-new-rubygems-bundler-4-1.html), with Gemfile `override`, cache pruning, credentials optionally kept in the OS's credential store, and `--cooldown`.
- **Windows users:** Ruby 4.0.10 is now available as [an official Windows build](https://bugs.ruby-lang.org/issues/22180#note-9) for x64 and ARM64, and [setup-ruby](https://github.com/ruby/setup-ruby)'s `mswin` target [uses the official daily build](https://github.com/ruby/setup-ruby/pull/971).
- Matz has [accepted deprecating fractional days](https://bugs.ruby-lang.org/issues/22530) in `Date` (e.g. `Date.new(2000, 1, 2.5r)`), with the warning already in 4.1, opening a path for `date` to be rewritten in pure Ruby.
- 🔒 Other security fixes this week: [Sinatra 4.2.2](https://github.com/sinatra/sinatra/blob/main/CHANGELOG.md), [OmniAuth 2.4](https://github.com/omniauth/omniauth/releases/tag/v2.4.0) & [Rodauth 2.51](https://github.com/jeremyevans/rodauth/blob/2.51.0/CHANGELOG).   

[Why `String#truncate_words` Spikes Memory on Large Strings](https://github.com/rails/rails/pull/59848) — A trailing `.*` in Active Support's `truncate_words` regex was making Onigmo track all remaining characters, causing memory spikes on long strings. A fix has been merged into Rails main. 

Robert Shecter   

[Your Rails App’s Event Data Is Growing. Compress It](https://www.tigerdata.com/go/trial?utm_source=content-syndication&utm_medium=referral&utm_campaign=ruby-weekly-newsletter&utm_content=sponsored-compress-1119) — Compress time-series data by up to 95% on Tiger Cloud. Works with ActiveRecord. [$1000 credit to start](https://www.tigerdata.com/go/trial?utm_source=content-syndication&utm_medium=referral&utm_campaign=ruby-weekly-newsletter&utm_content=sponsored-compress-1119). 

Tiger Data (creators of TimescaleDB) sponsor   

📄 [DNSimple's Path to Rails 8.1: From Vue and jQuery to Stimulus](https://blog.dnsimple.com/2026/11/rails-8-1-vue-and-jquery-to-stimulus/) – How around 50 Vue components became native HTML, Turbo Frames or Stimulus controllers. Dallas Read (DNSimple) 

📊 [Spinel vs JRuby vs CRuby with YJIT: 28 Benchmarks](https://robertz.co/benchmarks/ruby/spinel-vs-jruby-vs-cruby/) – Spinel (which can't yet run Rails directly) beats YJIT on all 28, though warmed-up JRuby beats Spinel on two. Robert Zieliński 

📄 [SSA from Bytecode: A Mini Version of How ZJIT Builds Its IR](https://bernsteinbear.com/blog/ssa-bytecode/) Max Bernstein  

🛠 Code & Tools  

[Puma 8.1: A New mold_worker Mode, Plus Security Fixes](https://github.com/puma/puma/releases/tag/v8.1.0) — The popular web server has added an experimental `mold_worker` mode, which forks new workers from a warmed-up worker that's stopped serving traffic. [Nine security fixes](https://github.com/puma/puma/security/advisories), mostly for DoS bugs, also landed this week, so get [8.1.2](https://github.com/puma/puma/releases/tag/v8.1.2), 8.0.4 or 7.2.3. 

Puma   

[Using Hotwire with Rails: A New Official Rails Guide](https://edgeguides.rubyonrails.org/using_hotwire_with_rails.html) — This new guide covers the Rails side of Hotwire, Rails' default front-end stack, which until now only had a section in the JavaScript guide. 

Rails Guides   

[Rails Monitoring for the Whole Team, Not Per Seat. Try AppSignal Free](https://www.appsignal.com/alternative/new-relic-alternative?utm_medium=paid&utm_campaign=rubyweekly&utm_source=rubyweekly&utm_content=sponsored&utm_term=1119) — Errors, slow queries, deploy markers and uptime checks in one place. Unlimited users, dev-to-dev support, [30-day trial](https://www.appsignal.com/alternative/new-relic-alternative?utm_medium=paid&utm_campaign=rubyweekly&utm_source=rubyweekly&utm_content=sponsored&utm_term=1119). 

AppSignal sponsor   

[Gemstash 2.9 Fixes a Critical RCE, as RubyGems 'Sunsets' It](https://blog.rubygems.org/2026/11/19/gemstash-2.9.0-security-release.html) — Gemstash is an official RubyGems caching proxy that can host private gems too. This release fixes eight vulnerabilities (including a CVSS 10 RCE) but is also its _final_ feature release as the project has been 'sunset' with some recommended [migration options](https://blog.rubygems.org/2026/11/19/gemstash-2.9.0-security-release.html#sunsetting-gemstash). 

Colby Swandale   

[Hotwire Inspector: A Browser Extension for Inspecting Hotwire Apps](https://radan.dev/news/announcing-hotwire-inspector) — A new [browser extension](https://inspector.masterhotwire.com/) that maps out a page's Turbo Frames, Stimulus controllers, targets and Turbo events. Handy for getting to grips with an unfamiliar feature, or working out why a frame or controller isn't behaving. 

Radan Skorić   

[rails-jsdom: Browserless Interaction Tests for Hotwire Apps](https://github.com/jakehow/rails-jsdom) — Write tests that read like system tests, but run your real Stimulus controllers and Turbo inside jsdom, with no browser, server or Capybara waits. 

Jake Howerton   

- [parallel_tests-ci 0.1](https://code.dblock.org/2026/11/19/automatic-rspec-sharding-on-github-actions.html) – Split RSpec across GitHub Actions workers using [parallel_tests](https://github.com/grosser/parallel_tests), balanced using timings from previous runs.
- [Committee 5.7](https://github.com/interagent/committee) – Rack middleware to validate requests and responses against OpenAPI specs. Now supports OpenAPI 3.1 and 3.2.
- [json 3.1](https://github.com/ruby/json/releases/tag/v3.1.0) – Adds an `rfc8785` option for generating [canonicalized JSON](https://www.rfc-editor.org/info/rfc8785/), and now rejects non-ASCII BINARY strings.
- [Unread 1.0](https://github.com/ledermann/unread/releases/tag/v1.0.0) – Track read/unread status of Active Record objects per user.
- [MetaInspector 6.0](https://github.com/jaimeiniesta/metainspector/blob/master/CHANGELOG.md) – Scrape a web page's metadata, links and images.
- [reverse_markdown 3.1](https://github.com/xijo/reverse_markdown) – Convert HTML into Markdown.       

📰 Classifieds   

Stop reinstalling gems on every CI run. [WarpBuild](https://www.warpbuild.com/start?utm_source=cooperpress&utm_medium=newsletter&utm_campaign=h2-2026&utm_content=rubyweekly-2026-11-19) snapshot runners start with your toolchain ready. [Get $50 in free credits](https://www.warpbuild.com/start?utm_source=cooperpress&utm_medium=newsletter&utm_campaign=h2-2026&utm_content=rubyweekly-2026-11-19) with`START50`.    

📢 Elsewhere in the ecosystem 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/ivpsnmkb3ncwzqzdmsgp.jpg)](https://asobi.myura.me/)  

- 🎨 [Asobi](https://asobi.myura.me/) is a bit like [p5.js](https://p5js.org/) or _Processing_, but with a Ruby twist! It's a creative coding gem that turns Ruby objects into pictures and looping animations (shown above). Run `asobi` and your sketch opens in a browser and updates on saves, or try [the Web-based playground here](https://asobi.myura.me/playground.html).
- [Snails](https://snails-rb.org) is a Rails-like framework for API-only apps that builds on Matz's Spinel to compile apps into a single native binary, minus Active Record, views and gems.
- Roy Tomeij says [he's keen to personally sponsor](https://roys.blog/15k-for-community-driven-ruby-events) community-run Ruby events in 2027, up to €1k each and €15k in total.         

Curated by [Peter Cooper](https://twitter.com/cooperx86) and [Glenn Goodrich](https://twitter.com/ruprict).
Published by [Cooperpress](https://cooperpress.com/). 

[Change your email](https://rubyweekly.com/edit_subscription/*|UID|*) or [Stop getting this newsletter.](https://rubyweekly.com/leave/*|UID|*) 

© Cooper Press Ltd · Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom 

Other weekly newsletters we publish include [Postgres Weekly](https://postgresweekly.com/), [React Status](https://react.statuscode.com/), [Frontend Focus](https://frontendfoc.us/), and [JavaScript Weekly](https://javascriptweekly.com/).
