CVE-2011-2931 json
actionpack Cross-site Scripting vulnerability
published 2011-08-29 15 y ago modified 2026-06-16 4 mo ago also GHSA-v5jg-558j-q67c , EUVD-2017-0310
- cvss
- 4.3
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.5%
- EPSS 2.5% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems actionpack 2.3.13, 3.0.10
- rails Debian 14, Debian 13, Debian 12 2.3.14
debian advisories DEBIAN-CVE-2011-2931
- github.com/rails/rails@586a944 commit
- groups.google.com/group/rubyonrails-security/msg/fd41ab62966e0fd1?dmode=sour… patch
- openwall.com/lists/oss-security/2011/08/17/1 patch
- openwall.com/lists/oss-security/2011/08/22/13 patch
- bugzilla.redhat.com/show_bug.cgi?id=731436 patch
- openwall.com/lists/oss-security/2011/08/19/11 patch
- openwall.com/lists/oss-security/2011/08/20/1 patch
- openwall.com/lists/oss-security/2011/08/22/5 patch
- weblog.rubyonrails.org/2011/8/16/ann-rails-3-1-0-rc6 patch
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2011-2931 updated cvss 4.3
rubygem-actionpack: XSS vulnerability in strip_tags helper (Ruby on Rails)
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.49% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | actionpack | >=2.0.0, <2.3.13 >=3.0.0, <3.0.10 |
2.3.13 3.0.10 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
github.com
/rails/rails/commit/586a944ddd4d03e66dea1093306147594748037a
web, patch
-
groups.google.com
/group/rubyonrails-security/msg/fd41ab62966e0fd1?dmode=source&output=gplain
mailing-list, web, patch
-
openwall.com
/lists/oss-security/2011/08/17/1
mailing-list, web, patch
-
openwall.com
/lists/oss-security/2011/08/22/13
mailing-list, web, patch
-
bugzilla.redhat.com
/show_bug.cgi?id=731436
web, patch
-
openwall.com
/lists/oss-security/2011/08/19/11
mailing-list, web, patch
-
openwall.com
/lists/oss-security/2011/08/20/1
mailing-list, web, patch
-
openwall.com
/lists/oss-security/2011/08/22/5
mailing-list, web, patch
-
weblog.rubyonrails.org
/2011/8/16/ann-rails-3-1-0-rc6
web, patch
-
lists.fedoraproject.org
/pipermail/package-announce/2011-September/065212.html
vendor-advisory, web
-
lists.fedoraproject.org
/pipermail/package-announce/2011-September/065137.html
vendor-advisory, web
-
debian.org
/security/2011/dsa-2301
vendor-advisory, web
-
lists.fedoraproject.org
/pipermail/package-announce/2011-September/065109.html
vendor-advisory, web
-
secunia.com
/advisories/45921
third-party-advisory
-
openwall.com
/lists/oss-security/2011/08/22/14
mailing-list, web
-
nvd.nist.gov
/vuln/detail/CVE-2011-2931
advisory
-
github.com
/advisories/GHSA-v5jg-558j-q67c
advisory
-
github.com
/rails/rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-2931.yml
web
Sources
- CVE List CVE-2011-2931
- GitHub Advisory GHSA-v5jg-558j-q67c
- NVD CVE-2011-2931
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.