{"id":"CVE-2011-2197","published":"2011-06-30T15:26:00Z","modified":"2024-08-06T22:53:17Z","title":"The cross-site scripting (XSS) prevention feature in Ruby on Rails 2.x before 2.3.12, 3.0.x before 3.0.8, and 3.1.x…","vendor":null,"product":null,"tier":"tail","description":{"text":"The cross-site scripting (XSS) prevention feature in Ruby on Rails 2.x before 2.3.12, 3.0.x before 3.0.8, and 3.1.x before 3.1.0.rc2 does not properly handle mutation of safe buffers, which makes it easier for remote attackers to conduct XSS attacks via crafted strings to an application that uses a problematic string method, as demonstrated by the sub method.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01962,"percentile":0.80859,"provenance":"source"},"cwes":[],"references":[{"url":"http://groups.google.com/group/rubyonrails-security/msg/663b600d4471e0d4?dmode=source&output=gplain","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-June/062090.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-July/062514.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://weblog.rubyonrails.org/2011/6/8/potential-xss-vulnerability-in-ruby-on-rails-applications","tags":["x_refsource_CONFIRM"]},{"url":"http://secunia.com/advisories/44789","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://openwall.com/lists/oss-security/2011/06/09/2","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://openwall.com/lists/oss-security/2011/06/13/9","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":16.2,"factors":[{"name":"EPSS percentile","points":16.17}]},"affected":[{"ecosystem":"RubyGems","package":"actionpack","vulnerableRanges":[">=2.0.0, <2.3.12",">=3.0.0, <3.0.8"],"patched":["2.3.12","3.0.8"],"from":["GHSA-v9v4-7jp6-8c73"],"provenance":"source"},{"ecosystem":"RubyGems","package":"activesupport","vulnerableRanges":[">=2.0.0, <2.3.12",">=3.0.0, <3.0.8"],"patched":["2.3.12","3.0.8"],"from":["GHSA-v9v4-7jp6-8c73"],"provenance":"source"}],"summary":{"text":"An attacker can exploit this by sending crafted strings to an application that uses a problematic string method, such as sub, to conduct cross-site scripting attacks remotely.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:19Z"},"euvd":{"id":"EUVD-2017-0312","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-actionpack-cve-2011-2197","children":[{"from":"CVE-2011-2197","to":"CVE-2011-1497","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["actionpack/lib/action_view/helpers/text_helper.rb"],"commits":["https://github.com/rails/rails/commit/61ee3449674c591747db95f9b3472c5c3bd9e84d","https://github.com/rails/rails/commit/ab764ecbfea31a3b14323283287e2fc80955ace6","https://github.com/rails/rails/commit/53a2c0baf2b128dd4808eca313256f6f4bb8c4cd","https://github.com/rails/rails/commit/ed3796434af6069ced6a641293cf88eef3b284da"],"basis":"shared function","functions":["auto_link_urls","highlight","set_cycle","word_wrap"]}]},{"from":"CVE-2011-2197","to":"CVE-2013-6416","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["actionpack/lib/action_view/helpers/text_helper.rb"],"commits":["https://github.com/rails/rails/commit/53a2c0baf2b128dd4808eca313256f6f4bb8c4cd","https://github.com/rails/rails/commit/ed3796434af6069ced6a641293cf88eef3b284da","https://github.com/rails/rails/commit/4b4f5847f64f81c961625e647711ef9f6ad1a454"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2009-3009","published":"2009-09-08","fixed":"2.3.4","kev":false},{"cve":"CVE-2009-3086","published":"2009-09-08","fixed":"2.3.4","kev":false,"link":{"from":"CVE-2009-3086","to":"CVE-2011-2197","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:activesupport","fromFixed":"2.3.4","toFixed":"2.3.12","daysApart":660}]}},{"cve":"CVE-2011-2197","published":"2011-06-30","fixed":"3.0.8","kev":false},{"cve":"CVE-2011-2932","published":"2011-08-29","fixed":"3.0.10","kev":false,"link":{"from":"CVE-2011-2197","to":"CVE-2011-2932","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:activesupport","fromFixed":"3.0.8","toFixed":"3.0.10","daysApart":60},{"kind":"version-step","provenance":"source","package":"RubyGems:activesupport","fromFixed":"2.3.12","toFixed":"2.3.13","daysApart":60},{"kind":"same-code","provenance":"machine","files":["activesupport/lib/active_support/core_ext/string/output_safety.rb"],"commits":["https://github.com/rails/rails/commit/53a2c0baf2b128dd4808eca313256f6f4bb8c4cd","https://github.com/rails/rails/commit/ed3796434af6069ced6a641293cf88eef3b284da","https://github.com/rails/rails/commit/bfc432574d0b141fd7fe759edfe9b6771dd306bd"],"basis":"shared file"}]}},{"cve":"CVE-2013-0333","published":"2013-01-30","fixed":"3.0.20","kev":false},{"cve":"CVE-2012-1098","published":"2012-03-13","fixed":"3.2.2","kev":false}],"package":"RubyGems:activesupport"}}