CVE-2024-26143
published 2024-02-27CVE-2024-26143: Rails is a web-application framework. There is a possible XSS vulnerability when using the translation helpers in Action Controller. Applications using…
PriorityP427medium6.1CVSS 3.1
AVNACLPRNUIRSCCLILAN
EPSS
1.03%
60.0th percentile
Rails is a web-application framework. There is a possible XSS vulnerability when using the translation helpers in Action Controller. 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. The vulnerability is fixed in 7.1.3.1 and 7.0.8.1.
Affected
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| actionpack_project | actionpack | >= 7.0.0 < 7.0.8.1 | 7.0.8.1 |
| actionpack_project | actionpack | >= 7.1.0 < 7.1.3.1 | 7.1.3.1 |
| debian | rails | — | — |
| rails | rails | — | — |
| rails | rails | — | — |
| rubyonrails | rails | >= 7.0.0 < 7.0.8.1 | 7.0.8.1 |
| rubyonrails | rails | >= 7.0.0 < 7.0.8.1 | 7.0.8.1 |
| rubyonrails | rails | >= 7.1.0 < 7.1.3.1 | 7.1.3.1 |
| rubyonrails | rails | >= 7.1.0 < 7.1.3.1 | 7.1.3.1 |
CVSS provenance
nvdv3.16.1MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
ghsa6.1MEDIUM
osv6.1MEDIUM
vendor_debian6.1LOW
vendor_redhat6.1MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
rubygem-actionpack: Possible XSS on translation helpers
vendor_redhat·2024-02-24·CVSS 6.1
CVE-2024-26143 [MEDIUM] CWE-79 rubygem-actionpack: Possible XSS on translation helpers
rubygem-actionpack: Possible XSS on translation helpers
Rails is a web-application framework. There is a possible XSS vulnerability when using the translation helpers in Action Controller. 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. The vulnerability is fixed in 7.1.3.1 and 7.0.8.1.
A vulnerability was found in actionpack ruby gem. Applications using the `translate` method may be susceptible to a cross-site scripting (XSS) attack.
Statement: The following requirements need to be met in order for an application be vulnerable:
- Use a translation function from a controller, such as *not* `
Debian
CVE-2024-26143: rails - Rails is a web-application framework. There is a possible XSS vulnerability when...
vendor_debian·2024·CVSS 6.1
CVE-2024-26143 [MEDIUM] CVE-2024-26143: rails - Rails is a web-application framework. There is a possible XSS vulnerability when...
Rails is a web-application framework. There is a possible XSS vulnerability when using the translation helpers in Action Controller. 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. The vulnerability is fixed in 7.1.3.1 and 7.0.8.1.
Scope: local
bookworm: resolved
bullseye: resolved
forky: resolved
sid: resolved
trixie: resolved
OSV
Rails has possible XSS Vulnerability in Action Controller
osv·2024-02-27·CVSS 6.1
CVE-2024-26143 [MEDIUM] Rails has possible XSS Vulnerability in Action Controller
Rails has possible XSS Vulnerability in Action Controller
# 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:
```ruby
class ArticlesController < ApplicationController
def show
@message = t("message_html"
GHSA
Rails has possible XSS Vulnerability in Action Controller
ghsa·2024-02-27·CVSS 6.1
CVE-2024-26143 [MEDIUM] CWE-79 Rails has possible XSS Vulnerability in Action Controller
Rails has possible XSS Vulnerability in Action Controller
# 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:
```ruby
class ArticlesController < ApplicationController
def show
@message = t("message_html"
OSV
CVE-2024-26143: Rails is a web-application framework
osv·2024-02-27·CVSS 6.1
CVE-2024-26143 [MEDIUM] CVE-2024-26143: Rails is a web-application framework
Rails is a web-application framework. There is a possible XSS vulnerability when using the translation helpers in Action Controller. 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. The vulnerability is fixed in 7.1.3.1 and 7.0.8.1.
No detection rules found.
No public exploits indexed.
HackerOne
Possible XSS Vulnerability in Action Controller
hackerone·2024-09-25·CVSS 6.1
CVE-2024-26143 [MEDIUM] Possible XSS Vulnerability in Action Controller
Possible XSS Vulnerability in Action Controller
I made a report and patch at https://hackerone.com/reports/2303609
https://discuss.rubyonrails.org/t/possible-xss-vulnerability-in-action-controller/84947
> 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.
## 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.
Possible XSS Vulnerability in Action Controller
There is a possible XSS vulnerability when using the translation helpers (translate, t, etc) i
Bugzilla
TRIAGE CVE-2024-26143 rubygem-actionpack: Possible XSS on translation helpers [fedora-all]
bugzilla·2024-02-27·CVSS 6.1
CVE-2024-26143 [MEDIUM] TRIAGE CVE-2024-26143 rubygem-actionpack: Possible XSS on translation helpers [fedora-all]
TRIAGE CVE-2024-26143 rubygem-actionpack: Possible XSS on translation helpers [fedora-all]
More information about this security flaw is available in the following bug:
http://bugzilla.redhat.com/show_bug.cgi?id=2266388
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
Discussion:
Use the following template to for the 'fedpkg update' request to submit an
update for this issue as it contains the top-level parent bug(s) as well as
this tracking bug. This will ensure that all associated bugs get updated
when new packages are pushed to stable.
# bugfix, security, enhancement, newpackage (required)
type=security
# lo
https://discuss.rubyonrails.org/t/possible-xss-vulnerability-in-action-controller/84947https://github.com/rails/rails/commit/4c83b331092a79d58e4adffe4be5f250fa5782cchttps://github.com/rails/rails/commit/5187a9ef51980ad1b8e81945ebe0462d28f84f9ehttps://github.com/rails/rails/security/advisories/GHSA-9822-6m93-xqf4https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26143.ymlhttps://security.netapp.com/advisory/ntap-20240510-0004/https://discuss.rubyonrails.org/t/possible-xss-vulnerability-in-action-controller/84947https://github.com/rails/rails/commit/4c83b331092a79d58e4adffe4be5f250fa5782cchttps://github.com/rails/rails/commit/5187a9ef51980ad1b8e81945ebe0462d28f84f9ehttps://github.com/rails/rails/security/advisories/GHSA-9822-6m93-xqf4https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26143.ymlhttps://security.netapp.com/advisory/ntap-20240510-0004/
2024-02-27
Published