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
Published Jun 30, 2011
4.3
MEDIUMCVSS 2.0
EPSS 1.96%
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.
Affected products
No data.
Configuration 1
- 2.0.0
- 2.0.0
- 2.0.0
- 2.0.1
- 2.0.2
- 2.0.4
- 2.1.0
- 2.1.1
- 2.1.2
- 2.2.0
- 2.2.1
- 2.2.2
- 2.3.2
- 2.3.3
- 2.3.4
- 2.3.9
- 2.3.10
- 2.3.11
Configuration 2
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.1
- 3.0.1
- 3.0.2
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.0.5
- 3.0.6
- 3.0.6
- 3.0.6
- 3.0.7
- 3.0.7
- 3.0.7
- 3.0.8
- 3.0.8
- 3.0.8
- 3.0.8
- 3.0.4
Configuration 3
- 3.1.0
- 3.1.0
- 3.1.0
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (10 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.96% (0.01962) | 79.61th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.96% (0.01962) | 77.67th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.44% (0.00442) | 61.15th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.35% (0.00353) | 72.81th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.35% (0.00353) | 71.16th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.35% (0.00353) | 67.50th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.32% (0.01319) | 71.27th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.32% (0.01319) | 71.23th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.32% (0.01319) | 69.22th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.32% (0.01319) | 44.98th | v2 (v2022.01.01) |
References (13)
- http://groups.google.com/group/rubyonrails-security/msg/663b600d4471e0d4?dmode=source&output=gplain mailing-listx_refsource_MLISTPatch
- http://lists.fedoraproject.org/pipermail/package-announce/2011-July/062514.html vendor-advisoryx_refsource_FEDORA
- http://lists.fedoraproject.org/pipermail/package-announce/2011-June/062090.html vendor-advisoryx_refsource_FEDORA
- http://openwall.com/lists/oss-security/2011/06/09/2 mailing-listx_refsource_MLISTPatch
- http://openwall.com/lists/oss-security/2011/06/13/9 mailing-listx_refsource_MLISTPatch
- http://secunia.com/advisories/44789 third-party-advisoryx_refsource_SECUNIAVendor Advisory
- http://weblog.rubyonrails.org/2011/6/8/potential-xss-vulnerability-in-ruby-on-rails-applications x_refsource_CONFIRMPatch
- https://gist.github.com/NZKoz/b2ceb626fc2bcdfe497f
- https://github.com/advisories/GHSA-v9v4-7jp6-8c73 Advisory
- https://github.com/rails/rails/commit/53a2c0baf2b128dd4808eca313256f6f4bb8c4cd
- https://github.com/rails/rails/commit/ed3796434af6069ced6a641293cf88eef3b284da
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2011-2197.yml
- https://nvd.nist.gov/vuln/detail/CVE-2011-2197
Change history (0)
No recorded changes yet.