Vulnerability · Published Feb 27, 2024 · Assigned by GitHub_M
CVE-2024-26143Rails Possible XSS Vulnerability in Action Controller
Medium 6.1
In plain English
A medium-severity cross-site scripting in rails from rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| RubyGems | actionpack | 7.0.8.1 | GHSA-9822-6m93-xqf4 |
| RubyGems | actionpack | 7.1.3.1 | GHSA-9822-6m93-xqf4 |
| RubyGems | rails | 7.0.8.1 | GHSA-9822-6m93-xqf4 |
| RubyGems | rails | 7.1.3.1 | GHSA-9822-6m93-xqf4 |
| Ubuntu:24.04:LTS | rails | no fix listed | UBUNTU-CVE-2024-26143 |
| Ubuntu:25.10 | rails | no fix listed | UBUNTU-CVE-2024-26143 |
| Ubuntu:26.04:LTS | rails | no fix listed | UBUNTU-CVE-2024-26143 |
| Ubuntu:26.10 | rails | no fix listed | UBUNTU-CVE-2024-26143 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/rails/rails/security/advisories/GHSA-9822-6m93-xqf4 x_refsource_CONFIRM
- https://github.com/rails/rails/commit/4c83b331092a79d58e4adffe4be5f250fa5782cc x_refsource_MISC
- https://github.com/rails/rails/commit/5187a9ef51980ad1b8e81945ebe0462d28f84f9e x_refsource_MISC
- https://discuss.rubyonrails.org/t/possible-xss-vulnerability-in-action-controller/84947 x_refsource_MISC
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26143.yml x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20240510-0004/