{"id":"CVE-2011-4319","aliases":["EUVD-2017-0337","GHSA-xxr8-833v-c7wc"],"status":"published","title":"Cross-site Scripting vulnerability in i18n translations helper method","description":"Cross-site scripting (XSS) vulnerability in the i18n translations helper method in Ruby on Rails 3.0.x before 3.0.11 and 3.1.x before 3.1.2, and the rails_xss plugin in Ruby on Rails 2.3.x, allows remote attackers to inject arbitrary web script or HTML via vectors related to a translations string whose name ends with an \"html\" substring.","severity":{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.01578,"percentile":0.75638,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2011-11-28T11:00:00Z","modified":"2026-06-16T23:34:46Z","fixes":[{"ecosystem":"RubyGems","package":"actionpack","fixed_in":["3.0.11","3.1.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"actionpack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.0.11"}]}]},{"source":"ghsa","ecosystem":"RubyGems","package":"actionpack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0"},{"fixed":"3.1.2"}]}]},{"source":"osv","ecosystem":"RubyGems","package":"actionpack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.0.11"}]}],"versions":["3.0.0","3.0.1","3.0.10","3.0.10.rc1","3.0.2","3.0.3","3.0.4","3.0.4.rc1","3.0.5","3.0.5.rc1","3.0.6","3.0.6.rc1","3.0.6.rc2","3.0.7","3.0.7.rc1","3.0.7.rc2","3.0.8","3.0.8.rc1","3.0.8.rc2","3.0.8.rc4","3.0.9","3.0.9.rc1","3.0.9.rc3","3.0.9.rc4","3.0.9.rc5"]},{"source":"osv","ecosystem":"RubyGems","package":"actionpack","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0"},{"fixed":"3.1.2"}]}],"versions":["3.1.0","3.1.1","3.1.1.rc1","3.1.1.rc2","3.1.1.rc3","3.1.2.rc1","3.1.2.rc2"]}],"products":[{"vendor":"rubyonrails","product":"rails"},{"vendor":"rubyonrails","product":"ruby_on_rails"}],"references":[{"url":"http://osvdb.org/77199","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"http://openwall.com/lists/oss-security/2011/11/18/8","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://weblog.rubyonrails.org/2011/11/18/rails-3-0-11-has-been-released","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://groups.google.com/group/rubyonrails-security/browse_thread/thread/2b61d70fb73c7cc5?pli=1","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://groups.google.com/group/rubyonrails-security/msg/c65c24fbc4b6dd82?dmode=source\u0026output=gplain","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://weblog.rubyonrails.org/2011/11/18/rails-3-1-2-has-been-released","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.securitytracker.com/id?1026342","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/71364","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/50722","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2011-4319","tags":["advisory"]},{"url":"https://github.com/rails/rails/commit/2d5b105d4bcb652550dda8b5613376d1b8beb70c","tags":["web"]},{"url":"https://github.com/rails/rails/commit/ba2d85012088fd0db0fab98b2e512c77c83cbade","tags":["web"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-4319.yml","tags":["web"]},{"url":"https://groups.google.com/forum/#!topic/rubyonrails-security/K2HXD7c8fMU","tags":["web"]},{"url":"https://web.archive.org/web/20200228155840/http://www.securityfocus.com/bid/50722","tags":["web"]},{"url":"https://web.archive.org/web/20210307005941/http://www.securitytracker.com/id?1026342","tags":["web"]},{"url":"https://github.com/advisories/GHSA-xxr8-833v-c7wc"},{"url":"https://github.com/rails/rails","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2011-4319","description":"Cross-site scripting (XSS) vulnerability in the i18n translations helper method in Ruby on Rails 3.0.x before 3.0.11 and 3.1.x before 3.1.2, and the rails_xss plugin in Ruby on Rails 2.3.x, allows remote attackers to inject arbitrary web script or HTML via vectors related to a translations string whose name ends with an \"html\" substring.","status":"published","published":"2011-11-28T11:00:00Z","modified":"2024-08-07T00:01:51.607Z","updated_at":"2026-11-02T14:35:37.671707Z"}],"euvd":[{"id":"EUVD-2017-0337","description":"Cross-site scripting (XSS) vulnerability in the i18n translations helper method in Ruby on Rails 3.0.x before 3.0.11 and 3.1.x before 3.1.2, and the rails_xss plugin in Ruby on Rails 2.3.x, allows remote attackers to inject arbitrary web script or HTML via vectors related to a translations string whose name ends with an \"html\" substring.","status":"published","published":"2011-11-28T11:00:00Z","modified":"2024-08-07T00:01:51Z","updated_at":"2026-11-03T01:39:48.961231Z"}],"ghsa":[{"id":"GHSA-xxr8-833v-c7wc","title":"Cross-site Scripting vulnerability in i18n translations helper method","description":"Cross-site scripting (XSS) vulnerability in the i18n translations helper method in Ruby on Rails 3.0.x before 3.0.11 and 3.1.x before 3.1.2, and the rails_xss plugin in Ruby on Rails 2.3.x, allows remote attackers to inject arbitrary web script or HTML via vectors related to a translations string whose name ends with an \"html\" substring.","status":"published","published":"2017-10-24T18:33:38Z","modified":"2023-11-08T05:01:01Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:16.721714Z"}],"nvd":[{"id":"CVE-2011-4319","description":"Cross-site scripting (XSS) vulnerability in the i18n translations helper method in Ruby on Rails 3.0.x before 3.0.11 and 3.1.x before 3.1.2, and the rails_xss plugin in Ruby on Rails 2.3.x, allows remote attackers to inject arbitrary web script or HTML via vectors related to a translations string whose name ends with an \"html\" substring.","status":"published","published":"2011-11-28T11:55:09.127Z","modified":"2026-06-16T23:34:46.153Z","cvss":[{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:02:11.800512Z"}],"osv":[{"id":"GHSA-xxr8-833v-c7wc","title":"Cross-site Scripting vulnerability in i18n translations helper method","description":"Cross-site scripting (XSS) vulnerability in the i18n translations helper method in Ruby on Rails 3.0.x before 3.0.11 and 3.1.x before 3.1.2, and the rails_xss plugin in Ruby on Rails 2.3.x, allows remote attackers to inject arbitrary web script or HTML via vectors related to a translations string whose name ends with an \"html\" substring.","status":"published","published":"2017-10-24T18:33:38Z","modified":"2024-12-07T05:23:15.37934Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:47:00.604718Z"}]}}
