Ruby/actionpack/7.1.0


Web apps on Rails. Simple, battle-tested conventions for building and testing MVC web applications. Works with any Rack-compatible server.

https://rubygems.org/gems/actionpack
MIT

4 Security Vulnerabilities

Rails has possible XSS Vulnerability in Action Controller

Published date: 2024-02-27T21:41:12Z
CVE: CVE-2024-26143
Links:

Possible XSS Vulnerability in Action Controller

There is a possible XSS vulnerability when using the translation helpers (translate, t, etc) in Action Controller. This vulnerability has been assigned the CVE identifier CVE-2024-26143.

Versions Affected: >= 7.0.0. Not affected: < 7.0.0 Fixed Versions: 7.1.3.1, 7.0.8.1

Impact

Applications using translation methods like translate, or t on a controller, with a key ending in _html, a :default key which contains untrusted user input, and the resulting string is used in a view, may be susceptible to an XSS vulnerability.

For example, impacted code will look something like this:

class ArticlesController < ApplicationController
  def show  
    @message = t("message_html", default: untrusted_input)
    # The `show` template displays the contents of `@message`
  end
end

To reiterate the pre-conditions, applications must:

  • Use a translation function from a controller (i.e. not I18n.t, or t from a view)
  • Use a key that ends in _html
  • Use a default value where the default value is untrusted and unescaped input
  • Send the text to the victim (whether that's part of a template, or a render call)

All users running an affected release should either upgrade or use one of the workarounds immediately.

Releases

The fixed releases are available at the normal locations.

Workarounds

There are no feasible workarounds for this issue.

Patches

To aid users who aren't able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset.

  • 7-0-translate-xss.patch - Patch for 7.0 series
  • 7-1-translate-xss.patch - Patch for 7.1 series

Credits

Thanks to ooooooo_q for the patch and fix!

Affected versions: ["7.1.0", "7.1.1", "7.1.2", "7.1.3", "7.0.0", "7.0.1", "7.0.2", "7.0.2.2", "7.0.2.1", "7.0.2.3", "7.0.2.4", "7.0.3", "7.0.3.1", "7.0.4", "7.0.4.1", "7.0.4.2", "7.0.4.3", "7.0.5", "7.0.5.1", "7.0.6", "7.0.7", "7.0.7.2", "7.0.7.1", "7.0.8"]
Secure versions: [7.1.3.2, 7.1.3.1, 7.0.8.1]
Recommendation: Update to version 7.1.3.2.

Rails has possible ReDoS vulnerability in Accept header parsing in Action Dispatch

Published date: 2024-02-27T21:41:09Z
CVE: CVE-2024-26142
Links:

Possible ReDoS vulnerability in Accept header parsing in Action Dispatch

There is a possible ReDoS vulnerability in the Accept header parsing routines of Action Dispatch. This vulnerability has been assigned the CVE identifier CVE-2024-26142.

Versions Affected: >= 7.1.0, < 7.1.3.1 Not affected: < 7.1.0 Fixed Versions: 7.1.3.1

Impact

Carefully crafted Accept headers can cause Accept header parsing in Action Dispatch to take an unexpected amount of time, possibly resulting in a DoS vulnerability. All users running an affected release should either upgrade or use one of the workarounds immediately.

Ruby 3.2 has mitigations for this problem, so Rails applications using Ruby 3.2 or newer are unaffected.

Releases

The fixed releases are available at the normal locations.

Workarounds

There are no feasible workarounds for this issue.

Patches

To aid users who aren't able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset.

  • 7-1-accept-redox.patch - Patch for 7.1 series

Credits

Thanks svalkanov for the report and patch!

Affected versions: ["7.1.0", "7.1.1", "7.1.2", "7.1.3"]
Secure versions: [7.1.3.2, 7.1.3.1, 7.0.8.1]
Recommendation: Update to version 7.1.3.2.

Possible ReDoS vulnerability in Accept header parsing in Action Dispatch

Published date: 2024-02-21
Framework: rails
CVE: 2024-26142
Links:

There is a possible ReDoS vulnerability in the Accept header parsing routines of Action Dispatch. This vulnerability has been assigned the CVE identifier CVE-2024-26142.

Versions Affected: >= 7.1.0, < 7.1.3.1 Not affected: < 7.1.0 Fixed Versions: 7.1.3.1

Impact

Carefully crafted Accept headers can cause Accept header parsing in Action Dispatch to take an unexpected amount of time, possibly resulting in a DoS vulnerability. All users running an affected release should either upgrade or use one of the workarounds immediately.

Ruby 3.2 has mitigations for this problem, so Rails applications using Ruby 3.2 or newer are unaffected.

Releases

The fixed releases are available at the normal locations.

Workarounds

There are no feasible workarounds for this issue.

Affected versions: ["7.1.0", "7.1.1", "7.1.2", "7.1.3"]
Secure versions: [7.1.3.2, 7.1.3.1, 7.0.8.1]
Recommendation: Update to version 7.1.3.2.

Possible XSS Vulnerability in Action Controller

Published date: 2024-02-21
Framework: rails
CVE: 2024-26143
CVSS V3: 6.1
Links:

There is a possible XSS vulnerability when using the translation helpers (translate, t, etc) in Action Controller. This vulnerability has been assigned the CVE identifier CVE-2024-26143.

Versions Affected: >= 7.0.0 Not affected: < 7.0.0 Fixed Versions: 7.1.3.1, 7.0.8.1

Impact

Applications using translation methods like translate, or t on a controller, with a key ending in “_html”, a :default key which contains untrusted user input, and the resulting string is used in a view, may be susceptible to an XSS vulnerability.

For example, impacted code will look something like this:

class ArticlesController < ApplicationController
  def show
    @message = t("message_html", default: untrusted_input)
    # The `show` template displays the contents of `@message`
  end
end

To reiterate the pre-conditions, applications must:

  • Use a translation function from a controller (i.e. not I18n.t, or t from a view)
  • Use a key that ends in _html
  • Use a default value where the default value is untrusted and unescaped input
  • Send the text to the victim (whether that’s part of a template, or a render call)

All users running an affected release should either upgrade or use one of the workarounds immediately.

Releases

The fixed releases are available at the normal locations.

Workarounds

There are no feasible workarounds for this issue.

Affected versions: ["7.0.0", "7.0.1", "7.0.2", "7.0.2.2", "7.0.2.1", "7.0.2.3", "7.0.2.4", "7.0.3", "7.0.3.1", "7.0.4", "7.0.4.1", "7.0.4.2", "7.0.4.3", "7.0.5", "7.0.5.1", "7.0.6", "7.0.7", "7.0.7.2", "7.0.7.1", "7.0.8", "7.1.0.beta1", "7.1.0.rc1", "7.1.0.rc2", "7.1.0", "7.1.1", "7.1.2", "7.1.3"]
Secure versions: [7.1.3.2, 7.1.3.1, 7.0.8.1]
Recommendation: Update to version 7.1.3.2.

464 Other Versions

Version License Security Released
3.0.0.beta UNKNOWN 44 2010-02-05 - 02:59 over 14 years
2.3.18 UNKNOWN 41 2013-03-18 - 17:12 about 11 years
2.3.17 UNKNOWN 43 2013-02-11 - 18:16 over 11 years
2.3.16 UNKNOWN 43 2013-01-28 - 21:00 over 11 years
2.3.15 UNKNOWN 43 2013-01-08 - 20:06 over 11 years
2.3.14 UNKNOWN 43 2011-08-16 - 22:00 over 12 years
2.3.12 UNKNOWN 49 2011-06-08 - 00:21 almost 13 years
2.3.11 UNKNOWN 49 2011-02-08 - 21:15 over 13 years
2.3.10 UNKNOWN 52 2010-10-14 - 20:52 over 13 years
2.3.9 UNKNOWN 52 2010-09-04 - 21:54 over 13 years
2.3.9.pre UNKNOWN 52 2010-08-30 - 03:31 over 13 years
2.3.8 UNKNOWN 52 2010-05-25 - 04:52 almost 14 years
2.3.8.pre1 UNKNOWN 52 2010-05-24 - 21:16 almost 14 years
2.3.7 UNKNOWN 52 2010-05-24 - 08:22 almost 14 years
2.3.6 UNKNOWN 52 2010-05-23 - 07:48 almost 14 years
2.3.5 UNKNOWN 52 2009-11-27 - 00:12 over 14 years
2.3.4 UNKNOWN 53 2009-09-04 - 17:33 over 14 years
2.3.3 UNKNOWN 57 2009-08-04 - 23:43 almost 15 years
2.3.2 UNKNOWN 57 2009-07-25 - 18:36 almost 15 years
2.2.3 UNKNOWN 61 2009-09-28 - 09:22 over 14 years
2.2.2 UNKNOWN 63 2009-07-25 - 18:36 almost 15 years
2.1.2 UNKNOWN 66 2009-07-25 - 18:36 almost 15 years
2.1.1 UNKNOWN 66 2009-07-25 - 18:36 almost 15 years
2.1.0 UNKNOWN 66 2009-07-25 - 18:36 almost 15 years
2.0.5 UNKNOWN 61 2009-07-25 - 18:36 almost 15 years
2.0.4 UNKNOWN 61 2009-07-25 - 18:36 almost 15 years
2.0.2 UNKNOWN 61 2009-07-25 - 18:36 almost 15 years
2.0.1 UNKNOWN 61 2009-07-25 - 18:36 almost 15 years
2.0.0 UNKNOWN 61 2009-07-25 - 18:36 almost 15 years
1.13.6 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.13.5 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.13.4 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.13.3 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.13.2 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.13.1 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.13.0 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.12.5 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.12.4 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.12.3 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.12.2 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.12.1 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.12.0 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.11.2 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.11.1 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.11.0 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.10.2 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.10.1 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.9.1 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.9.0 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.8.1 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.8.0 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.7.0 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.6.0 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.5.1 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.5.0 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.4.0 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.3.1 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.3.0 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.2.0 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.1.0 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.0.1 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
1.0.0 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
0.9.5 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years
0.9.0 UNKNOWN 55 2009-07-25 - 18:36 almost 15 years