Rails Possible XSS Vulnerability in Action Controller
rails
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| actionpack RubyGems |
|
|
| rails RubyGems |
|
rails
| Product | Affected | Fixed in |
|---|---|---|
| actionpack RubyGems |
|
|
| rails RubyGems |
|
7.0.8.17.1.3.1Rails 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.
From the CVE record · GitHub_M
Rails applications may be vulnerable to cross-site scripting when a controller calls translate or t with a key ending in “_html”, the :default value contains untrusted user input, and the resulting string is used in a view. Under those conditions, an attacker could cause untrusted content to be rendered in the view; the input does not specify authentication requirements.
Check applications using RubyGems rails or actionpack versions >=7.0.0 <7.0.8.1 or >=7.1.0 <7.1.3.1.