Hello, Rails community!

Rails Versions 8.0.5.2 and 8.1.4.1 have been released. These are security updates addressing 21 security issues falling into a few themes:

  • Possible arbitrary file read, file write and remote code execution in Active Storage image and video processing
  • Possible Strong Parameters bypass in Parameters#each_key
  • Possible IP spoofing in remote_ip through the Forwarded header (8.1 only)
  • Multiple possible XSS vulnerabilities in Action View helpers, and one in the Active Support MessagePack serializer (8.1 only)
  • Possible DoS vulnerabilities in Active Support safe_constantize, Action Controller Live streaming, and Active Storage proxy mode and filename handling
  • Unsigned Content-Type and unenforced file size in Active Storage direct uploads to Google Cloud Storage
  • Session handling issues: a destroyed session restored by CacheStore, a session cookie leaked by Active Storage proxy mode, and a missing SameSite attribute on session cookies
  • Possible cache poisoning through content negotiation
  • Possible signature replay in Action Mailbox Mailgun ingress

We strongly recommend upgrading as soon as possible.

Older versions of Rails are unsupported, and users are recommended to upgrade to at least the 8.0 series. Security support for the 8.0 series ends on November 7, 2026. See our maintenance policy for details.

Here is a list of security issues that these releases address:

Each GHSA links to patches that may be useful if you cannot immediately upgrade.

SHA-256

If you’d like to verify that your gems are the same as the ones we’ve uploaded, please use these SHA-256 hashes.

6841f8f3e2e605b8ac95369cbcd5a323ebc4b399e65b60fba309ec6e16b22b76 pkg/actioncable-8.0.5.2.gem 45fa1d741696c0939d3724b660286f247fd1b676e084b22e68cb22c38486b78c pkg/actionmailbox-8.0.5.2.gem b3a86551c40a67ce00349573d83a60588a92a404d850bc3541b58cdfe831da9e pkg/actionmailer-8.0.5.2.gem 5b96a0a841192954151047b4f6e8d992d56f767922e53b9e2c94449a26aebd61 pkg/actionpack-8.0.5.2.gem de4f3d9faea828f56be86dd48ade24d5f87b0318f0282fcdab338b754d4ad7f1 pkg/actiontext-8.0.5.2.gem 8bba8b4a165a555eda0d9bf1c035de0644a77b6700fc5f214a7c0f75ae241cab pkg/actionview-8.0.5.2.gem 7360cc455bd78d5f215ffaa062b229ac68bf8ba41c963d96a919ebc5f0e3618e pkg/activejob-8.0.5.2.gem 8aabf86d1dc1516f47329d0cc8d61dea2af9652606e1bbfa467558bef615f375 pkg/activemodel-8.0.5.2.gem f2abc9288493a2ca9617a2287c229daad425d2eeb74f44027a8cdb3b46055d14 pkg/activerecord-8.0.5.2.gem 556c548b9b0ae5ddc3ec4e5278c065cb48d0fa5ca93c1f2a020e484b8e4c1d44 pkg/activestorage-8.0.5.2.gem 673acec3133cc8108a03d5ae0e3a9d0f5c7f818d02db33bcfed527a6c57bcdd1 pkg/activesupport-8.0.5.2.gem 84bf06f0b96ebf625f4d120caa9c660f8fd09b3146acc1542679713b2cdda90a pkg/rails-8.0.5.2.gem 4b43a2c134a1b9887dd9ef659c71f61e8376d18a8fc52a09471979666b919fa6 pkg/railties-8.0.5.2.gem 
007670f7297973e94809e9f32a56624a7aa60b6e9d6696cd078064ce86d1c7fc pkg/actioncable-8.1.4.1.gem 18b43dd842bf3a3e31b8e38b7917c21e48c128fc8b263c893481cc66ee1a8f78 pkg/actionmailbox-8.1.4.1.gem a7b71dedf744e48dd6751e97350634edce9a2f7beeceac332dcccb91729ad066 pkg/actionmailer-8.1.4.1.gem 8c6f2e7cbd2653ef0539bde1ff20eb3e2e264e366affe56f0ba7f06d3670cb4b pkg/actionpack-8.1.4.1.gem fb59611dc16e2b6bbfcec66793acfae6cdd64b1e35ef3f9175424f31e62c38da pkg/actiontext-8.1.4.1.gem d25b4d9cf8d0c0195ffcfe8b2cf3fcbe6fea54fd7c17f1a9cb8182881463f12b pkg/actionview-8.1.4.1.gem 82c4c9311ea1016d5f7f134a0c5f9b6527cad5a6237f5f3f60aa17984ef36229 pkg/activejob-8.1.4.1.gem 063caf105372fbc98b2d789e4be23de63ac5c043f7d9330f04e2caddb7012805 pkg/activemodel-8.1.4.1.gem bd65599ca0b5d210937f835d42c7aff69d271741c75aab022730be6cbce67e87 pkg/activerecord-8.1.4.1.gem 0f4e2f114f3584723a80a2c089aacc6170e765a0b2c385c9782e26ed78f05c66 pkg/activestorage-8.1.4.1.gem 16ac4f341ca65c85a1fcdb8ac73f68891aae9e3c4a6f9c3a27daed8b00017ed7 pkg/activesupport-8.1.4.1.gem 365c3a0ad2713bd6e60628e5e826622d4ca8dee60b5a7e560e9b20844e9650bc pkg/rails-8.1.4.1.gem ff2ef4b5a62cbc89811f88be11c776e2ed71b14dd012eae6a494d37994aa9782 pkg/railties-8.1.4.1.gem