{"id":"CVE-2009-4214","published":"2009-12-07T17:00:00Z","modified":"2024-08-07T06:54:09Z","title":"Cross-site scripting (XSS) vulnerability in the strip_tags function in Ruby on Rails before 2.2.s, and 2.3.x before…","vendor":null,"product":null,"tier":"tail","description":{"text":"Cross-site scripting (XSS) vulnerability in the strip_tags function in Ruby on Rails before 2.2.s, and 2.3.x before 2.3.5, allows remote attackers to inject arbitrary web script or HTML via vectors involving non-printing ASCII characters, related to HTML::Tokenizer and actionpack/lib/action_controller/vendor/html-scanner/html/node.rb.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03022,"percentile":0.87776,"provenance":"source"},"cwes":[],"references":[{"url":"http://groups.google.com/group/rubyonrails-security/browse_thread/thread/4d4f71f2aef4c0ab?pli=1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://secunia.com/advisories/37446","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.vupen.com/english/advisories/2009/3352","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"http://www.debian.org/security/2011/dsa-2301","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"http://weblog.rubyonrails.org/2009/11/30/ruby-on-rails-2-3-5-released","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/37142","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.debian.org/security/2011/dsa-2260","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://www.openwall.com/lists/oss-security/2009/11/27/2","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2010-03/msg00004.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://support.apple.com/kb/HT4077","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securitytracker.com/id?1023245","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://secunia.com/advisories/38915","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.openwall.com/lists/oss-security/2009/12/08/3","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://github.com/rails/rails/commit/bfe032858077bb2946abe25e95e485ba6da86bd5","tags":["x_refsource_CONFIRM"]}],"priority":{"score":17.6,"factors":[{"name":"EPSS percentile","points":17.56}]},"affected":[{"ecosystem":"RubyGems","package":"rails","vulnerableRanges":["<2.2.2",">=2.3.0, <2.3.5"],"patched":["2.2.2","2.3.5"],"from":["GHSA-9p3v-wf2w-v29c"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting (XSS) vulnerability in the strip_tags function of Ruby on Rails, specifically in its HTML::Tokenizer and the actionpack html-scanner node code. An attacker who can supply input that is processed by strip_tags can inject arbitrary web script or HTML by using non-printing ASCII characters in the payload, with no further conditions beyond that input reaching the affected function.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:20Z"},"euvd":{"id":"EUVD-2017-0207","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rails-cve-2009-4214","children":[{"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-2007-6077","published":"2007-11-21","fixed":"1.2.6","kev":false},{"cve":"CVE-2008-5189","published":"2008-11-21","fixed":"2.0.5","kev":false,"link":{"from":"CVE-2008-5189","to":"CVE-2009-4214","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rails","fromFixed":"2.0.5","toFixed":"2.2.2","daysApart":381}]}},{"cve":"CVE-2009-2422","published":"2009-07-10","fixed":"2.3.3","kev":false,"link":{"from":"CVE-2009-2422","to":"CVE-2009-4214","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rails","fromFixed":"2.3.3","toFixed":"2.3.5","daysApart":150}]}},{"cve":"CVE-2009-4214","published":"2009-12-07","fixed":"2.3.5","kev":false},{"cve":"CVE-2014-0081","published":"2014-02-20","fixed":"4.0.3","kev":false},{"cve":"CVE-2024-26143","published":"2024-02-27","fixed":"7.1.3.1","kev":false}],"package":"RubyGems:rails"}}