Feed
–MEDIUM
CVE-2014-0081Rails vulnerable to Cross-site Scripting
A medium-severity vulnerability, without a CVSS score in our data. EPSS estimates a 4.0% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 4.0%
- percentile 91%
- Fix
- Named by a source
- CVE published 20 Feb 2014
Reference
None of the "Needs attention" rules apply right now.
EPSS 4.0% (+4) · Severity medium, no CVSS score in our data (+17)
Immediate actions
- actionpack (RubyGems): upgrade to 3.2.17 / 4.0.3 or later on your release line.
- rails (RubyGems): upgrade to 3.2.17 / 4.0.3 or later on your release line.
- Commit / pull request: https://github.com/rails/rails/commit/08d0a11a3f62718d601d39e617c834759cf59bbb
Who should check
actionpack (RubyGems) pkg:gem/actionpack
- Affected>= 3.0.0, < 3.2.17Fixed in3.2.17OSV (GHSA-m46p-ggm5-5j83)
- Affected>= 4.0.0, < 4.0.3Fixed in4.0.3OSV (GHSA-m46p-ggm5-5j83)
rails (RubyGems) pkg:gem/rails
- Affected>= 3.0.0, < 3.2.17Fixed in3.2.17OSV (GHSA-m46p-ggm5-5j83)
- Affected>= 4.0.0, < 4.0.3Fixed in4.0.3OSV (GHSA-m46p-ggm5-5j83)
Confirmed facts
- Severity
- MEDIUM (no CVSS score in our data)
- Weakness
- CWE-79
Unknowns
- No CVSS score in our data. That says nothing about how bad it is, nor that none is published. The NVD record of this CVE is not loaded: we load those published since 2025-01-01 and those of KEV entries.
Advisory text
Quoted from the source advisory (untrusted)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. Impact ------ 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. Releases -------- The 4.1.0.rc1, 4.0.3 and 3.2.17 releases are available at the normal locations. Workarounds ----------- The workaround for this issue is to escape the value passed to the parameter. For example, replace code like this: ```ruby <%= number_to_currency(1.02, format: params[:format]) %> ``` With code like this ```ruby <%= number_to_currency(1.02, format: h(params[:format])) %> ``` Patches ------- 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. Credits ------- Thanks to Kevin Reintjes for reporting the issue to us. -- Aaron Patterson http://tenderlovemaking.com/
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2014-0081
- commit / pull requesthttps://github.com/rails/rails/commit/08d0a11a3f62718d601d39e617c834759cf59bbb
- otherhttps://github.com/rails/rails
- otherhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2014-0081.yml
- otherhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2014-0081.yml
- otherhttps://web.archive.org/web/20140911141416/http://www.securitytracker.com/id/1029782
- otherhttps://web.archive.org/web/20170307202606/http://www.securityfocus.com/bid/65647
- otherhttps://web.archive.org/web/20201207045136/https://groups.google.com/forum/message/raw?msg=rubyonrails-security/tfp6gZCtzr4/j8LUHmu7fIEJ
- otherhttp://lists.opensuse.org/opensuse-updates/2014-02/msg00081.html
- otherhttp://openwall.com/lists/oss-security/2014/02/18/8
- otherhttp://rhn.redhat.com/errata/RHSA-2014-0215.html
- otherhttp://rhn.redhat.com/errata/RHSA-2014-0306.html
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-m46p-ggm5-5j83 (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 29 min ago · osv 29 min ago · nvd 29 min ago · epss 29 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-m46p-ggm5-5j83