CVE-2011-2931: Rubyonrails Rails

Medium severity, CVSS 4.3. EPSS: 2.5% chance of exploitation in the next 30 days.

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.

Affected products

  • Rubyonrails Rails: version 2.0.0 only; version 2.0.1 only; version 2.0.2 only; version 2.0.4 only; version 2.1.0 only; version 2.1.1 only; …
  • Rubyonrails Ruby On Rails: version 3.0.4 only

Published 2011-08-29. Last modified 2026-06-16.