Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. actionpack
  4. ›
  5. CVE-2011-2931

CVE-2011-2931: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

October 24, 2017 (updated September 20, 2021)

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.

References

  • groups.google.com/group/rubyonrails-security/msg/fd41ab62966e0fd1?dmode=source&output=gplain
  • lists.fedoraproject.org/pipermail/package-announce/2011-September/065109.html
  • lists.fedoraproject.org/pipermail/package-announce/2011-September/065137.html
  • lists.fedoraproject.org/pipermail/package-announce/2011-September/065212.html
  • secunia.com/advisories/45921
  • weblog.rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6
  • www.debian.org/security/2011/dsa-2301
  • www.openwall.com/lists/oss-security/2011/08/17/1
  • www.openwall.com/lists/oss-security/2011/08/19/11
  • www.openwall.com/lists/oss-security/2011/08/20/1
  • www.openwall.com/lists/oss-security/2011/08/22/13
  • www.openwall.com/lists/oss-security/2011/08/22/14
  • www.openwall.com/lists/oss-security/2011/08/22/5
  • bugzilla.redhat.com/show_bug.cgi?id=731436
  • github.com/advisories/GHSA-v5jg-558j-q67c
  • github.com/rails/rails/commit/586a944ddd4d03e66dea1093306147594748037a
  • nvd.nist.gov/vuln/detail/CVE-2011-2931

Code Behaviors & Features

Detect and mitigate CVE-2011-2931 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.3.13, all versions starting from 3.0.0 before 3.0.10

Fixed versions

  • 2.3.13
  • 3.0.10

Solution

Upgrade to versions 2.3.13, 3.0.10 or above.

Impact 4.3 MEDIUM

AV:N/AC:M/Au:N/C:N/I:P/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

gem/actionpack/CVE-2011-2931.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:49 +0000.