CVE-2011-4319 rubyonrails: Cross-site Scripting
rubyonrails: no CVSS score yet. EPSS 1.6% estimated probability of exploitation activity in the next 30 days. Fixed in actionpack 3.0.11, 3.1.2.
On this page
Cross-site scripting (XSS) vulnerability in the i18n translations helper method in Ruby on Rails 3.0.x before 3.0.11 and 3.1.x before 3.1.2, and the rails_xss plugin in Ruby on Rails 2.3.x, allows remote attackers to inject arbitrary web script or HTML via vectors related to a translations string whose name ends with an "html" substring.
- EPSS
- 1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 76th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
- CWE
- CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
- OWASP Top 10
- A05:2025 Injection
- Published
- Modified
- NVD analysis
- Analyzed, since modified
- Record from
- the NVD, synced
Fix and patched versions
actionpack(RubyGems): fixed in 3.0.11, 3.1.2
Ask an AI about this CVE
Show the prompt
Explain CVE-2011-4319 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2011-4319?via=ask-ai-copy and https://cve.bz/cve/CVE-2011-4319?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2011-4319 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| rubyonrails:rails | 3.0.0 |
| rubyonrails:rails | 3.0.0:beta |
| rubyonrails:rails | 3.0.0:beta2 |
| rubyonrails:rails | 3.0.0:beta3 |
| rubyonrails:rails | 3.0.0:beta4 |
| rubyonrails:rails | 3.0.0:rc |
| rubyonrails:rails | 3.0.0:rc2 |
| rubyonrails:rails | 3.0.1 |
| rubyonrails:rails | 3.0.1:pre |
| rubyonrails:rails | 3.0.2 |
| rubyonrails:rails | 3.0.2:pre |
| rubyonrails:rails | 3.0.3 |
| rubyonrails:rails | 3.0.4:rc1 |
| rubyonrails:rails | 3.0.5 |
| rubyonrails:rails | 3.0.5:rc1 |
| rubyonrails:rails | 3.0.6 |
| rubyonrails:rails | 3.0.6:rc1 |
| rubyonrails:rails | 3.0.6:rc2 |
| rubyonrails:rails | 3.0.7 |
| rubyonrails:rails | 3.0.7:rc1 |
| rubyonrails:rails | 3.0.7:rc2 |
| rubyonrails:rails | 3.0.8 |
| rubyonrails:rails | 3.0.8:rc1 |
| rubyonrails:rails | 3.0.8:rc2 |
| rubyonrails:rails | 3.0.8:rc3 |
| rubyonrails:rails | 3.0.8:rc4 |
| rubyonrails:rails | 3.0.9 |
| rubyonrails:rails | 3.0.9:rc1 |
| rubyonrails:rails | 3.0.9:rc2 |
| rubyonrails:rails | 3.0.9:rc3 |
| rubyonrails:rails | 3.0.9:rc4 |
| rubyonrails:rails | 3.0.9:rc5 |
| rubyonrails:rails | 3.0.10 |
| rubyonrails:rails | 3.0.10:rc1 |
| rubyonrails:ruby_on_rails | 3.0.4 |
| rubyonrails:rails | 3.1.0 |
| rubyonrails:rails | 3.1.0:beta1 |
| rubyonrails:rails | 3.1.0:rc1 |
| rubyonrails:rails | 3.1.0:rc2 |
| rubyonrails:rails | 3.1.0:rc3 |
| rubyonrails:rails | 3.1.0:rc4 |
| rubyonrails:rails | 3.1.0:rc5 |
| rubyonrails:rails | 3.1.0:rc6 |
| rubyonrails:rails | 3.1.0:rc7 |
| rubyonrails:rails | 3.1.0:rc8 |
| rubyonrails:rails | 3.1.1 |
| rubyonrails:rails | 3.1.1:rc1 |
| rubyonrails:rails | 3.1.1:rc2 |
| rubyonrails:rails | 3.1.1:rc3 |
| rubyonrails:rails | 2.3.2 |
| rubyonrails:rails | 2.3.3 |
| rubyonrails:rails | 2.3.4 |
| rubyonrails:rails | 2.3.9 |
| rubyonrails:rails | 2.3.10 |
| rubyonrails:rails | 2.3.11 |
| rubyonrails:rails | 2.3.12 |
Packages (OSV)
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-xxr8-833v-c7wc | RubyGems | actionpack | >=3.0.0 <3.0.11 | 3.0.11 |
| GHSA-xxr8-833v-c7wc | RubyGems | actionpack | >=3.1.0 <3.1.2 | 3.1.2 |
Red Hat
Red Hat rates this Moderate.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Subscription Asset Manager | rubygem-actionpack | Affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2011-4319.
Attack patterns (CAPEC)
- CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
- CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
- CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
- CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
- CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
- CAPEC-592 Stored XSS Likelihood: High · Severity: Very High
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.
References
- http://groups.google.com/group/rubyonrails-security/browse_thread/thread/2b61d70fb73c7cc5?pli=1
- http://groups.google.com/group/rubyonrails-security/msg/c65c24fbc4b6dd82?dmode=source&output=gplain
- http://openwall.com/lists/oss-security/2011/11/18/8
- http://osvdb.org/77199
- http://weblog.rubyonrails.org/2011/11/18/rails-3-0-11-has-been-released
- http://weblog.rubyonrails.org/2011/11/18/rails-3-1-2-has-been-released
- http://www.securityfocus.com/bid/50722
- http://www.securitytracker.com/id?1026342
- https://exchange.xforce.ibmcloud.com/vulnerabilities/71364