{"cve":"CVE-2011-2197","nvd":{"published":"2011-06-30T15:55:01.910","modified":"2026-06-16T23:30:54.277","status":"Modified","description":"The cross-site scripting (XSS) prevention feature in Ruby on Rails 2.x before 2.3.12, 3.0.x before 3.0.8, and 3.1.x before 3.1.0.rc2 does not properly handle mutation of safe buffers, which makes it easier for remote attackers to conduct XSS attacks via crafted strings to an application that uses a problematic string method, as demonstrated by the sub method.","cvss_v4":null,"cvss_v3":null,"cwes":["CWE-79"],"references":["http://groups.google.com/group/rubyonrails-security/msg/663b600d4471e0d4?dmode=source&output=gplain","http://lists.fedoraproject.org/pipermail/package-announce/2011-July/062514.html","http://lists.fedoraproject.org/pipermail/package-announce/2011-June/062090.html","http://openwall.com/lists/oss-security/2011/06/09/2","http://openwall.com/lists/oss-security/2011/06/13/9"],"products":["rubyonrails:rails","rubyonrails:ruby_on_rails"],"source":"nvd","synced_at":"2026-10-19T19:58:50.521460154+00:00"},"epss":{"cve":"CVE-2011-2197","score":0.01962,"percentile":0.80334,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-v9v4-7jp6-8c73","url":"https://osv.dev/vulnerability/GHSA-v9v4-7jp6-8c73","summary":"rails Cross-site Scripting vulnerability","modified":"2024-12-07T05:38:34.376477Z","packages":[{"ecosystem":"RubyGems","name":"actionpack","purl":"pkg:gem/actionpack","ranges":[">=2.0.0 <2.3.12"],"fixed":["2.3.12"]},{"ecosystem":"RubyGems","name":"actionpack","purl":"pkg:gem/actionpack","ranges":[">=3.0.0 <3.0.8"],"fixed":["3.0.8"]},{"ecosystem":"RubyGems","name":"activesupport","purl":"pkg:gem/activesupport","ranges":[">=2.0.0 <2.3.12"],"fixed":["2.3.12"]},{"ecosystem":"RubyGems","name":"activesupport","purl":"pkg:gem/activesupport","ranges":[">=3.0.0 <3.0.8"],"fixed":["3.0.8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}