{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2009-4214","id":"CVE-2009-4214","title":"Moderate severity vulnerability that affects rails","description":"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.","descriptionLong":"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.","published":"2009-12-07T17:00:00.000Z","updated":"2026-06-16T23:13:15.450Z","reserved":"2009-12-07T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"rails","purl":"pkg:gem/rails","ranges":["<2.2.2",">=2.3.0 <2.3.5"],"fixed":["2.2.2","2.3.5"],"advisory":"GHSA-9p3v-wf2w-v29c"}],"cwes":["CWE-79"],"aliases":["GHSA-9p3v-wf2w-v29c"],"references":[{"url":"http://groups.google.com/group/rubyonrails-security/browse_thread/thread/4d4f71f2aef4c0ab?pli=1","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://secunia.com/advisories/37446","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory","web"]},{"url":"http://www.vupen.com/english/advisories/2009/3352","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Patch","Vendor Advisory","advisory","fix","web"]},{"url":"http://www.debian.org/security/2011/dsa-2301","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html","tags":["vendor-advisory","x_refsource_APPLE","x_transferred","web"]},{"url":"http://weblog.rubyonrails.org/2009/11/30/ruby-on-rails-2-3-5-released","tags":["x_refsource_CONFIRM","x_transferred","article","web"]},{"url":"http://www.securityfocus.com/bid/37142","tags":["vdb-entry","x_refsource_BID","x_transferred","Patch","fix","web"]},{"url":"http://www.debian.org/security/2011/dsa-2260","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2009/11/27/2","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2010-03/msg00004.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"http://support.apple.com/kb/HT4077","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.securitytracker.com/id?1023245","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","web"]},{"url":"http://secunia.com/advisories/38915","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2009/12/08/3","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://github.com/rails/rails/commit/bfe032858077bb2946abe25e95e485ba6da86bd5","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2009-4214","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-9p3v-wf2w-v29c","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2009-4214.yml","tags":["web"]},{"url":"http://github.com/rails/rails","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03022,"epssPercentile":0.87719,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2009-4214","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2009-4214","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2009-4214","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9p3v-wf2w-v29c","ok":true,"note":"GHSA-9p3v-wf2w-v29c"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2009-4214","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["ruby"],"critical":[],"attention":null}