CVE-2024-26143 json
Rails Possible XSS Vulnerability in Action Controller
published 2024-02-26 2 y ago modified 2026-06-17 4 mo ago also BIT-rails-2024-26143 , EUVD-2024-0589 , GHSA-9822-6m93-xqf4
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems actionpack 7.0.8.1, 7.1.3.1
- rubygems rails 7.0.8.1, 7.1.3.1
- bitnami rails 7.0.9, 7.1.4
- rubyonrails rails 7.0.8.1, 7.1.3.1
- rubyonrails ruby_on_rails 7.0.8.1, 7.1.3.1
- actionpack_project actionpack 7.0.8.1, 7.1.3.1
- rubyonrails actionpack 7.0.8.1, 7.1.3.1
- rubygem-actionpack-7.0 openSUSE Tumbleweed 7.0.8.6-1.3
- rubygem-rails-7.0 openSUSE Tumbleweed 7.0.8.6-1.3
- rubygem-actionpack-7.0 openSUSE Tumbleweed 7.0.8.4-1.1
- rubygem-rails-7.0 openSUSE Tumbleweed 7.0.8.4-1.1
opensuse advisories openSUSE-SU-2025:15110-1openSUSE-SU-2025:15124-1openSUSE-SU-2024:14067-1openSUSE-SU-2024:14074-1
- github.com/rails/rails@4c83b33 commit
- github.com/rails/rails@5187a9e commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-26143 updated cvss 4.1
rubygem-actionpack: Possible XSS on translation helpers
-
Red Hat 3scale API Management Platform 2 3scale-amp2/system-rhel7affected: no fix available
-
Red Hat Satellite 6 rubygem-actionpacknot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
1.03% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/rails/rails/security/advisories/GHSA-9822-6m93-xqf4 referenced PoC, tagged "exploit" by a source, unverified
- discuss.rubyonrails.org https://discuss.rubyonrails.org/t/possible-xss-vulnerability-in-action-controller/84947 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26143.yml referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | actionpack | >=7.0.0, <7.0.8.1 >=7.1.0, <7.1.3.1 |
7.0.8.1 7.1.3.1 |
| rubygems | rails | >=7.0.0, <7.0.8.1 >=7.1.0, <7.1.3.1 |
7.0.8.1 7.1.3.1 |
| bitnami | rails | >=7.0.0, <7.0.9 >=7.1.0, <7.1.4 |
7.0.9 7.1.4 |
Affected products
- rails rails
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
github.com
/rails/rails/commit/4c83b331092a79d58e4adffe4be5f250fa5782cc
web, patch
-
github.com
/rails/rails/commit/5187a9ef51980ad1b8e81945ebe0462d28f84f9e
web, patch
-
github.com
/rails/rails/security/advisories/GHSA-9822-6m93-xqf4
web, exploit, vendor-advisory, advisory
-
discuss.rubyonrails.org
/t/possible-xss-vulnerability-in-action-controller/84947
web, exploit, vendor-advisory
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26143.yml
web, exploit, third-party-advisory
-
security.netapp.com
/advisory/ntap-20240510-0004/
third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2024-26143
advisory, web
-
github.com
/rails/rails
package
-
security.netapp.com
/advisory/ntap-20240510-0004
web
Sources
- CVE List CVE-2024-26143
- GitHub Advisory GHSA-9822-6m93-xqf4
- NVD CVE-2024-26143
- OSV BIT-rails-2024-26143
- Maintainer advisory GHSA-9822-6m93-xqf4
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of rails/rails published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.