Loading advisory.
Loading advisory.
Rails vulnerable to Cross-site Scripting
There is an XSS vulnerability in the number_to_currency, number_to_percentage and number_to_human helpers in Ruby on Rails. This vulnerability has been assigned the CVE identifier CVE-2014-0081.
Published 2014-02-20 11:00 UTC · Modified 2024-12-08 05:43 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| rails | RubyGems | >= 3.0.0, < 3.2.17 >= 4.0.0, < 4.0.3 versions 3.0.0, 3.0.1, 3.0.10, 3.0.10.rc1, 3.0.11, 3.0.12, 3.0.12.rc1, 3.0.13, 3.0.13.rc1, 3.0.14, 3.0.15, 3.0.16, 3.0.17, 3.0.18, 3.0.19, 3.0.2, 3.0.20, 3.0.3, 3.0.4, 3.0.4.rc1 and 88 more | 3.2.17, 4.0.3 | gem install rails -v 3.2.17gem install rails -v 4.0.3 |
| actionpack | RubyGems | >= 3.0.0, < 3.2.17 >= 4.0.0, < 4.0.3 versions 3.0.0, 3.0.1, 3.0.10, 3.0.10.rc1, 3.0.11, 3.0.12, 3.0.12.rc1, 3.0.13, 3.0.13.rc1, 3.0.14, 3.0.15, 3.0.16, 3.0.17, 3.0.18, 3.0.19, 3.0.2, 3.0.20, 3.0.3, 3.0.4, 3.0.4.rc1 and 88 more | 3.2.17, 4.0.3 | gem install actionpack -v 3.2.17gem install actionpack -v 4.0.3 |
There is an XSS vulnerability in the number_to_currency, number_to_percentage and number_to_human helpers in Ruby on Rails. This vulnerability has been assigned the CVE identifier CVE-2014-0081.
Versions Affected: All. Fixed Versions: 4.1.0.beta2, 4.0.3, 3.2.17.
These helpers allows users to nicely format a numeric value. Some of the parameters to the helper (format, negative_format and units) are not escaped correctly. Applications which pass user controlled data as one of these parameters are vulnerable to an XSS attack.
All users passing user controlled data to these parameters of the number helpers should either upgrade or use one of the workarounds immediately.
The 4.1.0.rc1, 4.0.3 and 3.2.17 releases are available at the normal locations.
The workaround for this issue is to escape the value passed to the parameter. For example, replace code like this:
<%= number_to_currency(1.02, format: params[:format]) %>With code like this
<%= number_to_currency(1.02, format: h(params[:format])) %>To aid users who aren't able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset.
4-1-beta-number_helpers_xss.patch - Patch for 4.1-beta series
4-0-number_helpers_xss.patch - Patch for 4.0 series
3-2-number_helpers_xss.patch - Patch for 3.2 series
Please note that only the 4.0.x and 3.2.x series are supported at present. Users of earlier unsupported releases are advised to upgrade as soon as possible as we cannot guarantee the continued availability of security fixes for unsupported releases.
Thanks to Kevin Reintjes for reporting the issue to us.
-- Aaron Patterson http://tenderlovemaking.com/
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.040 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.040 | first score | v2026.06.15 |