CVE-2024-26143
MEDIUM 6.1CVSS 3.1Rails has possible XSS Vulnerability in Action Controller
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.
- Published
- 27 Feb 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- BIT-rails-2024-26143GHSA-9822-6m93-xqf4
- Sources
- NVDJSONOSV GHSA-9822-6m93-xqf4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* |
>= 7.0.0, < 7.0.8.1 | 7.0.8.1 |
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* |
>= 7.1.0, < 7.1.3.1 | 7.1.3.1 |
| OSV | RubyGems | actionpack | >= 7.0.0, < 7.0.8.1 | 7.0.8.1 |
| OSV | RubyGems | actionpack | >= 7.1.0, < 7.1.3.1 | 7.1.3.1 |
| OSV | RubyGems | rails | >= 7.0.0, < 7.0.8.1 | 7.0.8.1 |
| OSV | RubyGems | rails | >= 7.1.0, < 7.1.3.1 | 7.1.3.1 |
References
- https://discuss.rubyonrails.org/t/possible-xss-vulnerability-in-action-controller/84947 · Exploit, Vendor Advisory, WEB
- https://github.com/rails/rails/commit/4c83b331092a79d58e4adffe4be5f250fa5782cc · Patch, WEB
- https://github.com/rails/rails/commit/5187a9ef51980ad1b8e81945ebe0462d28f84f9e · Patch, WEB
- https://github.com/rails/rails/security/advisories/GHSA-9822-6m93-xqf4 · Exploit, Vendor Advisory, WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26143.yml · Exploit, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20240510-0004/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-26143 · ADVISORY
- https://github.com/rails/rails · PACKAGE
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 27 Feb 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 27 Feb 2024)