Top stories

Image: Ruby on Rails Blog

Rails Versions 8.0.5.2 and 8.1.4.1 have been released!

The Rails team released versions 8.0.5.2 and 8.1.4.1, security updates fixing 21 issues. They include possible arbitrary file read, write and remote code execution in Active Storage image and video processing, a Strong Parameters bypass, IP spoofing via the Forwarded header, multiple XSS flaws, several DoS issues, session handling problems, cache poisoning and Action Mailbox Mailgun signature replay. Users are strongly urged to upgrade, as older versions are unsupported.

  • Security advisories: multiple vulnerabilities in Regexp and String case conversion

    The Ruby team disclosed seven vulnerabilities in Ruby's regular expression engine and string case conversion, and released Ruby 4.0.10, 3.4.13 and 3.3.14 to fix them. Proofs of concept show some of the flaws can trigger remote code execution, including a one-byte heap buffer overflow in case conversion (GHSA-34m4-m9fh-gqp5) and a double free when compiling crafted regex patterns (GHSA-7x2q-68qv-6p8x). CVE identifiers have been requested but not yet assigned, and users are strongly urged to upgrade.

  • Regexp compilation fixes related to GitLab's CVE-2026-89078, CVE-2026-93577, CVE-2026-97229 and CVE-2026-110264

    Ruby has released versions 4.0.9, 3.4.12 and 3.3.13 to fix bugs in its Onigmo regular-expression engine that GitLab found could enable remote code execution on its servers. GitLab said specially crafted user-supplied patterns could corrupt memory during compilation; it published four CVEs covering double-free and integer-overflow issues. GitLab patched the Ruby it ships, while the new Ruby releases fix the underlying bugs in the language runtime.

  • Ruby 4.0.3 Released

    Ruby 4.0.3 has been released. This release only contains ERB 6.0.1.1, which fixes CVE-2026-41316. If your application calls Marshal.load on untrusted data AND has both erb and activesupport loaded, please update your ERB to 4.0.3.1, 4.0.4.1, 6.0.1.1, 6.0.4 or later. You may use…

Latest

  1. Securing Rails

    This week's Rails codebase changes, presented by Claudio Baccigalupo, focus on security. The Securing Rails guide was rewritten under the Rails Foundation documentation effort, dropping outdated sections and old gems and adding coverage of cookies and Active Storage file uploads. Rails now patches Rack::Multipart::Parser to ignore arbitrary encodings, a feature used in past exploit chains, with backports to 8.1 and 8.0 and an opt-out setting. New apps' GitHub Actions workflows pin action versions to a SHA and disable persisted checkout credentials.

  2. Ruby 4.0.10 Released

    Ruby 4.0.10 has been released. This release includes security fixes. Please check the topic below for details. Security advisories: multiple vulnerabilities in Regexp and String case conversion This release also includes other bugfixes. Please see the GitHub releases for further…

  3. Ruby 3.3.14 Released

    The Ruby core team has released Ruby 3.3.14, a security release addressing multiple vulnerabilities in Regexp and String case conversion. Starting with this version, Ruby 3.3 will also receive backported fixes for bugs judged necessary, not only security patches. The phase has accordingly been renamed from security maintenance to legacy maintenance. The support period is unchanged, with official support for Ruby 3.3 still scheduled to end at the end of March 2027.

  4. Ruby 3.4.13 Released

    The Ruby core team has released Ruby 3.4.13, which includes security fixes for multiple vulnerabilities in Regexp and String case conversion. The release also contains other bug fixes, with full change details published in the project's GitHub releases. Source packages are available in tar.gz, tar.xz and zip formats from the Ruby download cache.

  5. Image: Ruby on Rails Blog

    On Rails — Marco Roth: Teaching Rails to Read Its Own Template

    Marco Roth, creator of Herb and ReActionView, appears on the On Rails podcast with host Robby to discuss teaching Rails to understand its own templates. He explains how Herb parses HTML and ERB together to catch broken views before production, and how it is set to become part of Rails 8.2. The 90-minute episode also covers ReActionView's approach to reactive views without rewrites, the origins of RubyEvents.org, and why such tooling matters when AI agents write templates.

  6. Image: Ruby on Rails Blog

    Hotwire guide and more

    This week's Rails changes add a guide to using Hotwire with Rails, now on the Edge Guides. unscope(where: :column) behaviour that removes conditions on joined tables is deprecated, and in Rails 9.0 it will affect only the relation's own table. Other fixes detect Kamal in app:update, filter parameters from Action Cable error logs that previously exposed raw WebSocket messages, and round numeric values to the PostgreSQL money type's scale.

  7. Image: Ruby on Rails Blog

    This Week in Rails: November 6, 2026

    Rails 8.0.5.2 and 8.1.4.1 have been released as security releases addressing 21 security issues, and users are urged to upgrade. The week's codebase changes also restore support for anonymous subclasses of cache stores with LocalCache, which had raised a NoMethodError because the registry key relied on a nil class name. Active Record includes now work when merging an order on another model, and where! and having! accept bind values again after a refactor broke calls used by apps such as Discourse and Canvas.

  8. No tricks, just treats

    This week's Rails changes include a refreshed Active Record multiple databases guide covering the three-tier production setup new apps get by default, and a performance tuning guide open for review. New apps' Gemfiles now load capybara and selenium-webdriver with require: false, speeding boot for non-system tests. Under the :header_only CSRF strategy, forms and meta tags no longer render authenticity tokens.

  9. Ruby 3.3.13 Released

    Ruby 3.3.13 has been released with security fixes for CVE-2026-80212 and CVE-2026-80213, delivered through an update to the default resolv gem to version 0.3.2. It also fixes regular-expression compilation bugs associated with four GitLab CVEs. Ruby 3.3 is in its security maintenance phase; the release includes these additional compilation fixes as an exception.

  10. Ruby 3.4.12 Released

    Ruby 3.4.12 has been released with fixes for regular-expression compilation bugs associated with four CVEs published by GitLab: CVE-2026-89078, CVE-2026-93577, CVE-2026-97229 and CVE-2026-110264. The update also contains other bug fixes and is available as downloadable source archives.

  11. Ruby 4.0.9 Released

    Ruby 4.0.9 has been released with a fix for a regular-expression compilation bug tied to GitLab’s CVE-2026-110264. The release also includes fixes for compilation issues associated with CVE-2026-89078, CVE-2026-93577 and CVE-2026-97229. The update is available as downloadable source archives.

  12. Safer secrets, ZJIT, and more!

    Recent Rails changes default config.active_support.message_serializer to :json under load_defaults 8.2, so MessageVerifier and MessageEncryptor no longer fall back to Marshal payloads; apps on 7.1 through 8.1 keep :json_allow_marshal. The development tmp/local_secret.txt file is now created with 0600 permissions instead of being world-readable. Route redirects from string templates now stay on the request host, closing an open-redirect path, and SQLite column renames are fixed.

  13. Ruby 4.0.8 Released

    The Ruby team released Ruby 4.0.8 as a routine update containing bug fixes. The release is available in compressed tarball and ZIP formats.

  14. On Rails — Hussain Akram & Antonio Carlos de Souza: Rails Scales for the Rest of Us

    An On Rails podcast episode features Donorbox engineering manager Hussain Akram and chief architect Antonio Carlos de Souza, whose Rails app has served nonprofit fundraising for over a decade. They discuss handling heavy traffic with a deliberately simple setup, moving CI back to developers' machines and returning older code to Rails defaults. They also explain using agent docs to steer AI tools toward preferred codebase patterns; the episode runs 1h 47m.

  15. Faster blank? checks, safer SQLite rollbacks, and more!

    This week's changes merged to Rails main include a faster String#blank? that scans bytes for ASCII-only strings instead of running a regular expression, while non-ASCII strings keep the regexp path. Active Record now shares a read-only set of default attributes with a per-Ractor fallback; in the PR author's ruby-bench run, average time fell from 199 ms to 170 ms, against 134 ms for Rails 8.1.4. Action View also renders collections with fewer intermediate objects, and the Agents on Rails benchmark added a third stage of multi-step tasks.

  16. Image: Ruby on Rails Blog

    Agents on Rails: Stage 3. Can a model build on its own work?

    Stage 3 of the Agents on Rails benchmark tests whether AI models can build on their own work across multi-step, multi-session tasks in Rails apps, combined with Stages 1 and 2 into one overall ranking of nine models. Claude Opus 5.5 at xhigh was most accurate at 65.3% success and led the new multi-step tasks at 72.2%. GPT-6 Luna at max was cheapest at 43.4% success for about $0.19 per run, while GPT-6 Astra at medium was fastest.

  17. Image: Ruby

    Ruby 4.1.0-preview1 Released

    The Ruby team has released Ruby 4.1.0-preview1, introducing Ractor-local garbage collection, Windows support for YJIT and autoload_relative. Each Ractor now runs its own garbage collection on its own thread by default, while a global collection remains available when needed. The preview also changes Ractor behavior, including making Ractor#value return its value only once. The release notes describe further Ractor and GC changes.