Ruby on Rails 漏洞与安全更新
36 条
12月4日周五
This Week in Rails: December 4, 2026
Hi, it’s Greg. Let’s explore this week’s changes in the Rails codebase.
12月2日周三
A tale of two communities: Ruby on Rails on Laravel Cloud
Laravel Cloud now hosts Ruby on Rails apps, with automatic setup, autoscaling, scale to zero, managed databases, and deploys from your agent.
11月27日周五
credentials:keys, bulk Action Text, and more!
You can now list credential keys without printing their values, Action Text stops querying once per attachment, and Action Mailer boots without Active Job. Here’s what’s new in Rails:
11月20日周五
Securing Rails
Hi, it’s Claudio Baccigalupo. This week’s changes to the Rails codebase have a strong focus on security, from a rewritten guide to safer defaults for new apps.
11月14日周六
rails-html-sanitizer: Possible XSS via shared scrubber state in concurrent calls
受影响: rubygems:rails-html-sanitizer < 1.7.2 → 1.7.2 Rails::HTML::SafeListSanitizer (both the HTML4 and HTML5 variants) shares one Rails::HTML::PermitScrubber across every sanitize call on the same instance, assigning its tags and attributes on each call without synchronization. Two concurrent sanitize calls with different tags: or attributes: options can interleave, so one call is scrubbed with the other call's allowlist. - Versions affected: < 1.7.2 - Not affected: none - Fixed versions: 1.7.2 Impact Action View memoizes a single SafeListSaniti…
rails-html-sanitizer: Possible regular expression denial of service with certain configurations
受影响: rubygems:rails-html-sanitizer >= 1.0.3, < 1.7.2 → 1.7.2 Rails::HTML::PermitScrubber restricts the href and xlink:href attributes of SVG reference elements to local references. That check matched the attribute value against /^\s[^#\s]./m. In Ruby ^ anchors to every line start and \s matches newlines, so an all-whitespace value made the engine rescan the value from each of its line starts, taking time quadratic in its length. - Versions affected: >= 1.0.3, < 1.7.2 - Not affected: < 1.0.3 - Fixed versions: 1.7.2 Only Ruby 3.1 and earlier are affected.…
11月13日周五
On Rails — Marco Roth: Teaching Rails to Read Its Own Template
Marco Roth, independent consultant and the creator of Herb and <a href="https://reactionview.dev"”>ReActionView</a>, joins Robby to talk about teaching Rails to understand its own templates.
Hotwire guide and more
Hi, Wojtek here. Let’s explore this week’s changes with another big round of fixes in the Rails codebase.
Action Pack: Possible DoS vulnerability in Action Controller Live streaming
受影响: rubygems:actionpack >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1, rubygems:actionpack < 8.0.5.2 → 8.0.5.2 ActionController::Live::Buffer#close pushes its end-of-stream marker onto the response's bounded queue while it holds the buffer's monitor. When the client has stopped reading and the queue is full, the push blocks, and Buffer#abort, which runs when the client disconnects or a write times out, waits indefinitely for the same monitor. Each such response could permanently hold a web server thread and its ActionController::Live thread, possibly resulting in a DoS vulnerability through thread exhau…
Action Pack: Possible sensitive session information leak in Active Storage proxy mode
受影响: rubygems:actionpack >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1, rubygems:actionpack < 8.0.5.2 → 8.0.5.2 When ActionDispatch::Cookies reads a signed or encrypted cookie that was written under a rotated secret (config.action_dispatch.cookies_rotations) or in the format that a :hybrid cookie serializer migrates from, it writes the cookie back to the response in the current format, and that write ignores request.session_options[:skip]. ActiveStorage::DisableSession relies on that option to keep the session cookie off the public, immutable responses of the Active Storage proxy controllers, but those c…
Action Pack: Possible Strong Parameters Bypass in Parameters#each_key
受影响: rubygems:actionpack >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1, rubygems:actionpack < 8.0.5.2 → 8.0.5.2 ActionController::Parameters#each_key delegates to the internal ActiveSupport::HashWithIndifferentAccess that holds the request parameters, so when called with a block it returns that hash instead of the Parameters instance. The hash does not respond to permitted?, so Active Model mass assignment (new, assign_attributes, update) accepts it without raising ActiveModel::ForbiddenAttributesError. An application that passes the return value of each_key to mass assignment could allow a remote, unaut…
11月11日周三
Active Support: Possible DoS vulnerability in Active Support safe_constantize
受影响: rubygems:activesupport >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1, rubygems:activesupport < 8.0.5.2 → 8.0.5.2 When constant lookup raises LoadError, ActiveSupport::Inflector#safe_constantize (and String#safe_constantize) builds a regular expression from the requested constant name without escaping it, so a caller that passes untrusted input lets the attacker choose the source of a pattern that the application compiles. Crafted patterns can trigger defects in Ruby's regular expression compiler, possibly leading to a crash of the server process, and repeated requests could keep the application unavailabl…
Active Support: Possible XSS vulnerability in Active Support MessagePack serializer
受影响: rubygems:activesupport >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1 ActiveSupport::MessagePack serializes an ActiveSupport::SafeBuffer as its bytes alone and deserializes it as a new SafeBuffer, so a buffer that is no longer html_safe? (for example, one mutated in place with gsub!) is restored as html_safe. If such a buffer holds untrusted input and is stored through a MessagePack serializer, rendering it after it is loaded bypasses ERB auto-escaping, possibly leading to XSS. Applications on Rails 8.1 are affected if they use a MessagePack serializer, such as c…
Action Pack: Possible cache poisoning in Action Pack content negotiation
受影响: rubygems:actionpack >= 8.1, < 8.1.4.1 → 8.1.4.1, rubygems:actionpack < 8.0.5.2 → 8.0.5.2 Action Pack negotiates the format of a rendered response from the Accept, X-Requested-With and, for XHR requests without Accept, Content-Type request headers, but ActionController::Rendering#_set_vary_header adds Vary: Accept only when the request carries a usable Accept header and the response has no Vary header yet. A response to a request without Accept, or to an XHR request, therefore omits the headers that selected its representation, and a response whose Vary the application set before re…
Action Pack: Missing SameSite attribute on session cookies from Action Pack session stores
受影响: rubygems:actionpack >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1, rubygems:actionpack < 8.0.5.2 → 8.0.5.2 Action Pack session stores other than ActionDispatch::Session::CookieStore (CacheStore, MemCacheStore, and third-party stores built on AbstractStore, AbstractSecureStore or the session mixins) write the session cookie without a SameSite attribute, regardless of config.action_dispatch.cookies_same_site_protection, which defaults to :lax. Only CookieStore applies the configured policy. In browsers that do not treat a cookie without the attribute as SameSite=Lax, a cross-site request could carry t…
Action Pack: Possible IP spoofing in Action Dispatch RemoteIp
受影响: rubygems:actionpack >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1 Since Rails 8.1.0, ActionDispatch::RemoteIp derives request.remote_ip from Rack::Request#forwarded_for, which under Rack 3 reads the RFC 7239 Forwarded header in preference to X-Forwarded-For. When a reverse proxy appends the client address to X-Forwarded-For but passes a client-supplied Forwarded header through unchanged, request.remote_ip returns an address chosen by the client, and the IP spoofing check does not raise, because it compares only Client-Ip with the forwarded addresses. An unaut…
Action Pack: Possible restoration of destroyed sessions in Action Dispatch CacheStore
受影响: rubygems:actionpack >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1, rubygems:actionpack < 8.0.5.2 → 8.0.5.2 ActionDispatch::Session::CacheStore writes a session back to the cache at the end of each request that loaded it, without checking that the session's cache entry still exists. When a concurrent request destroys the session, through reset_session on logout or by deleting its cache entry on the server, a request that loaded the session earlier and finishes later restores it under its original session ID. Logout and server-side revocation could therefore fail to end a session, and an attacker who…
11月6日周五
This Week in Rails: November 6, 2026
Hi, it’s Greg, bringing you the latest changes in the Rails codebase. It was a busy week, with a lot of changes, so buckle up!
11月5日周四
「Ruby on Rails」にアップデート - 脆弱性21件を修正
ウェブアプリケーションフレームワーク「Ruby on Rails」に複数の脆弱性が明らかとなった。深刻な脆弱性も含まれており、セキュリティアップデートが提供されている。
11月4日周三
Critical Rails Flaw Lets Attackers Write Server Files via Crafted ImageMagick Uploads
A critical flaw in Ruby on Rails could allow an unauthenticated attacker to write arbitrary files on an app's server by uploading a crafted file if the app processes uploads using ImageMagick. The Rails project disclosed the flaw in an advisory and fixed it in versions 8.1.4.1 and 8.0.5.2. The flaw is in Active Storage, the part of Rails that handles file uploads. Some apps store
Rails Versions 8.0.5.2 and 8.1.4.1 have been released!
Hello, Rails community!
10月30日周五
No tricks, just treats
Hi, it’s Claudio Baccigalupo. Don’t be scared 🎃 this week’s changes to the Rails codebase are all treats. Let’s explore them.
10月23日周五
Safer secrets, ZJIT, and more!
New apps stop falling back to Marshal for signed messages, the local secret file is no longer world-readable, and SQLite finally renames columns the way the database intended. Here’s what’s new in Rails:
10月22日周四
On Rails — Hussain Akram & Antonio Carlos de Souza: Rails Scales for the Rest of Us
Hussain Akram is an engineering manager at Donorbox and Antonio Carlos de Souza (A.C.) is its chief architect, working on a Rails app that has helped nonprofits raise money online and in person for more than a decade.
10月16日周五
Faster blank? checks, safer SQLite rollbacks, and more!
Hi, it’s Vipul. Let’s explore this week’s changes in the Rails codebase.
10月13日周二
Agents on Rails: Stage 3. Can a model build on its own work?
Now that we understand better how agents deal with contained tasks and contained codebases, it’s time to push them a little harder. Stage 3 adds a set of large multi-step tasks that test how well a model can build on its own work over multiple sessions without turning it into a hot mess. We’ve also greatly expanded the variety of apps we test the models on.
10月9日周五
Better ACL S3 control and more
Hi, Wojtek here. Let’s explore this week’s changes in the Rails codebase.
10月2日周五
Rails World recordings are online, new minimum Ruby version and more!
Hi, it’s Greg. Let’s explore this week’s changes in the Rails codebase.
10月1日周四
Rails World 2026 recap: All talks online
Happy to report that in record time, all Rails World 2026 talks are now online.
9月25日周五
See you in Lisbon!
Hi, it’s Claudio Baccigalupo with your updates on the Rails codebase.
Rails Version 7.2.4 has been released!
Hi everyone,
Rails Version 8.1.4 has been released!
Hi everyone,
9月21日周一
Agents on Rails: Maximum effort and DeepSeek 4.1 Flash
In the Stage 2 report we shipped 20 feature tickets on Fizzy and promised to explore benchmarking the agents all on max-effort. Now we have run it: every model on the board, same tickets, reasoning turned all the way up. We also tested a new model: DeepSeek 4.1 Flash.
9月18日周五
Rails World 2026 Update: Livestream & Sponsors
As we gear up for Rails World 2026 next week, we’re so grateful to the companies showing up to make the first Rails World in the US a great one.
7月1日周三
GitLab Patch Release: 18.8.11
On July 1, 2026, we released version 18.8.11 for GitLab Community Edition and Enterprise Edition. These versions resolve regressions and bugs. This patch release does not include any security fixes. When database load balancing is in use, database connections may not be returned to the pool as a result of a regression caused by the upgrade to Rails 7.2. We are making an out-of-band patch release to ensure stability for customers upgrading to the required stop of GitLab 18.8. GitLab Community Edition and Enterprise Edition 18.8.11 Fix database connection leaks when database load balancer in us…
GitLab Patch Release: 18.8.11
On July 1, 2026, we released version 18.8.11 for GitLab Community Edition and Enterprise Edition. These versions resolve regressions and bugs. This patch release does not include any security fixes. When database load balancing is in use, database connections may not be returned to the pool as a result of a regression caused by the upgrade to Rails 7.2. We are making an out-of-band patch release to ensure stability for customers upgrading to the required stop of GitLab 18.8. GitLab Community Edition and Enterprise Edition 18.8.11 Fix database connection leaks when database load balancer in us…