{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2011-2931","id":"CVE-2011-2931","title":"actionpack Cross-site Scripting vulnerability","description":"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.","descriptionLong":"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.","published":"2011-08-29T18:00:00.000Z","updated":"2026-06-16T23:32:16.583Z","reserved":"2011-07-27T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","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":"actionpack","purl":"pkg:gem/actionpack","ranges":[">=2.0.0 <2.3.13",">=3.0.0 <3.0.10"],"fixed":["2.3.13","3.0.10"],"advisory":"GHSA-v5jg-558j-q67c"}],"cwes":["CWE-79"],"aliases":["GHSA-v5jg-558j-q67c"],"references":[{"url":"http://groups.google.com/group/rubyonrails-security/msg/fd41ab62966e0fd1?dmode=source&output=gplain","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/17/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/13","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065212.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065137.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=731436","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/19/11","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://www.debian.org/security/2011/dsa-2301","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"http://secunia.com/advisories/45921","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/20/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2011-September/065109.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/14","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://github.com/rails/rails/commit/586a944ddd4d03e66dea1093306147594748037a","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"http://www.openwall.com/lists/oss-security/2011/08/22/5","tags":["mailing-list","x_refsource_MLIST","x_transferred","Patch","fix","web"]},{"url":"http://weblog.rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2011-2931","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-v5jg-558j-q67c","tags":["advisory"]},{"url":"https://github.com/rails/rails","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-2931.yml","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02492,"epssPercentile":0.85047,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2011-2931","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2011-2931","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2011-2931","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-v5jg-558j-q67c","ok":true,"note":"GHSA-v5jg-558j-q67c"},{"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-2011-2931","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}