{"id":"CVE-2011-2931","published":"2011-08-29T18:00:00Z","modified":"2024-08-06T23:15:31Z","title":"Cross-site scripting (XSS) vulnerability in the strip_tags helper in…","vendor":null,"product":null,"tier":"tail","description":{"text":"Cross-site scripting (XSS) vulnerability in the strip_tags helper in actionpack/lib/action_controller/vendor/html-scanner/html/node.rb in Ruby on Rails before 2.3.13, 3.0.x before 3.0.10, and 3.1.x before 3.1.0.rc5 allows remote attackers to inject arbitrary web script or HTML via a tag with an invalid name.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02492,"percentile":0.85047,"provenance":"source"},"cwes":[],"references":[{"url":"http://groups.google.com/group/rubyonrails-security/msg/fd41ab62966e0fd1?dmode=source&output=gplain","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/17/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/13","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065212.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065137.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=731436","tags":["x_refsource_CONFIRM"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/19/11","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.debian.org/security/2011/dsa-2301","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://secunia.com/advisories/45921","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/20/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065109.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/14","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://github.com/rails/rails/commit/586a944ddd4d03e66dea1093306147594748037a","tags":["x_refsource_CONFIRM"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/5","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://weblog.rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6","tags":["x_refsource_CONFIRM"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":17.01}]},"affected":[{"ecosystem":"RubyGems","package":"actionpack","vulnerableRanges":[">=2.0.0, <2.3.13",">=3.0.0, <3.0.10"],"patched":["2.3.13","3.0.10"],"from":["GHSA-v5jg-558j-q67c"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting (XSS) vulnerability in the strip_tags helper, located in actionpack/lib/action_controller/vendor/html-scanner/html/node.rb within Ruby on Rails before 2.3.13, 3.0.x before 3.0.10, and 3.1.x before 3.1.0.rc5.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:54Z"},"euvd":{"id":"EUVD-2017-0310","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rails-cve-2009-4214","parents":[{"from":"CVE-2009-4214","to":"CVE-2011-2931","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["actionpack/lib/action_controller/vendor/html-scanner/html/node.rb"],"commits":["https://github.com/rails/rails/commit/bfe032858077bb2946abe25e95e485ba6da86bd5","https://github.com/rails/rails/commit/586a944ddd4d03e66dea1093306147594748037a"],"basis":"shared function","functions":["parse"]}]}],"packageHistory":[{"cve":"CVE-2011-1497","published":"2021-10-19","fixed":"3.0.6","kev":false},{"cve":"CVE-2011-2197","published":"2011-06-30","fixed":"3.0.8","kev":false,"link":{"from":"CVE-2011-2197","to":"CVE-2011-2931","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:actionpack","fromFixed":"3.0.8","toFixed":"3.0.10","daysApart":60},{"kind":"version-step","provenance":"source","package":"RubyGems:actionpack","fromFixed":"2.3.12","toFixed":"2.3.13","daysApart":60}]}},{"cve":"CVE-2011-2929","published":"2011-08-29","fixed":"3.0.10","kev":false},{"cve":"CVE-2011-2931","published":"2011-08-29","fixed":"3.0.10","kev":false},{"cve":"CVE-2011-4319","published":"2011-11-28","fixed":"3.1.2","kev":false},{"cve":"CVE-2012-1099","published":"2012-03-13","fixed":"3.2.2","kev":false},{"cve":"CVE-2012-2660","published":"2012-06-22","fixed":"3.2.4","kev":false},{"cve":"CVE-2013-0156","published":"2013-01-13","fixed":"3.2.11","kev":false,"link":{"from":"CVE-2011-2931","to":"CVE-2013-0156","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:actionpack","fromFixed":"2.3.13","toFixed":"2.3.15","daysApart":503}]}}],"package":"RubyGems:actionpack"}}