Rails vulnerable to Cross-site Scripting
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| rails RubyGems |
|
|
| actionpack RubyGems |
|
| Product | Affected | Fixed in |
|---|---|---|
| rails RubyGems |
|
|
| actionpack RubyGems |
|
3.2.174.0.3Multiple cross-site scripting (XSS) vulnerabilities in actionview/lib/action_view/helpers/number_helper.rb in Ruby on Rails before 3.2.17, 4.0.x before 4.0.3, and 4.1.x before 4.1.0.beta2 allow remote attackers to inject arbitrary web script or HTML via the (1) format, (2) negative_format, or (3) units parameter to the (a) number_to_currency, (b) number_to_percentage, or (c) number_to_human helper.
From the CVE record · redhat
Ruby on Rails number helpers are vulnerable to cross-site scripting when attacker-controlled values reach the format, negative_format, or units parameters. A remote attacker can inject web script or HTML through number_to_currency, number_to_percentage, or number_to_human. The input does not specify whether authentication or user interaction is required.
Check applications using RubyGems rails or actionpack versions >=3.0.0 <3.2.17 or >=4.0.0 <4.0.3, or Ruby on Rails 4.1.x before 4.1.0.beta2.