Bug 1220522 (CVE-2024-26143)

Summary: VUL-0: CVE-2024-26143: rubygem-actionpack-4_2,rubygem-actionpack-5_1,rubygem-rails-4_2,rubygem-rails-5_1: XSS vulnerability when using the translation helpers in Action Controller
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Dan Čermák <dcermak>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: andrea.mattiazzo
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/395327/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-26143:5.4:(AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-02-28 09:01:21 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-26143
https://www.cve.org/CVERecord?id=CVE-2024-26143
https://discuss.rubyonrails.org/t/possible-xss-vulnerability-in-action-controller/84947
https://github.com/rails/rails/security/advisories/GHSA-9822-6m93-xqf4
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-26143.yml

Patch:
https://github.com/rails/rails/commit/4c83b331092a79d58e4adffe4be5f250fa5782cc
https://github.com/rails/rails/commit/5187a9ef51980ad1b8e81945ebe0462d28f84f9e
Comment 1 Andrea Mattiazzo 2024-02-28 09:02:09 UTC
Tracking as affected:
-openSUSE:Factory/rubygem-actionpack-7.0
-openSUSE:Factory/rubygem-rails-7.0