CVE-2011-2931: XSS
An XSS vulnerability in the striptags helper in Ruby on Rails was reported [1] where, using specially crafted output, an attacker can successfully inject HTML into the document, which can be used to inject arbitrary javascript into the rendered page.
This is corrected in upstream 3.0.10, 2.3.13, and 3.1.0rc5 versions. Patches are available in the advisory [1] and in git [2].
[1] http://groups.google.com/group/rubyonrails-security/browsethread/thread/2b9130749b74ea12 [2] https://github.com/rails/rails/commit/586a944ddd4d03e66dea1093306147594748037a
Other sources
Cross-site scripting (XSS) vulnerability in the striptags helper in actionpack/lib/actioncontroller/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.
Cross-site scripting (XSS) vulnerability in the striptags helper in actionpack/lib/actioncontroller/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.
— MITRE
Affected Software
Remediation
Patch Available
Patch Available
Patch Available
Patch Available
Patch Available
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2011-2931?
CVE-2011-2931 is categorized as a moderate severity vulnerability due to its potential for XSS exploitation.
How do I fix CVE-2011-2931?
You can fix CVE-2011-2931 by upgrading to ActionPack version 3.0.10 or 2.3.13 or later.
What types of attacks can CVE-2011-2931 facilitate?
CVE-2011-2931 can facilitate cross-site scripting (XSS) attacks, allowing attackers to inject arbitrary HTML and JavaScript into web pages.
Which Ruby on Rails versions are affected by CVE-2011-2931?
CVE-2011-2931 affects Ruby on Rails versions prior to 3.0.10 and 2.3.13.
Is CVE-2011-2931 still a threat if I use a patched version of ActionPack?
If you are using a patched version of ActionPack (3.0.10 or 2.3.13), CVE-2011-2931 should not pose a threat.