CVE-2011-0446 Rails actionpack gem vulnerable to Cross-site Scripting
Remote attackers can inject arbitrary web script or HTML via crafted name or email values in the mail_to helper when JavaScript encoding is enabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2011-0446?
CVE-2011-0446 is a medium-severity cross-site scripting vulnerability in Rubyonrails Rails, published on 14 Feb 2011. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Multiple cross-site scripting (XSS) vulnerabilities in the mail_to helper in Ruby on Rails before 2.3.11, and 3.x before 3.0.4, when javascript encoding is used, allow remote attackers to inject arbitrary web script or HTML via a crafted (1) name or (2) email value.
Weakness: CWE-79
Which versions are affected by CVE-2011-0446?
8 open source packages ship an affected version, including actionpack and actionview. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
actionpack RubyGems | All versions | 2.3.11 |
actionpack RubyGems | All versions | 2.3.11 |
actionpack RubyGems | From 3.0.0 | 3.0.4 |
actionpack RubyGems | From 3.0.0 | 3.0.4 |
actionview RubyGems | All versions | 2.3.11 |
actionview RubyGems | All versions | 2.3.11 |
2 more packages
actionview RubyGems | From 3.0.0 | 3.0.4 |
actionview RubyGems | From 3.0.0 | 3.0.4 |
Products include Rubyonrails Rails.
How do I fix CVE-2011-0446?
Upgrade actionpack to a fixed version for your release line: 2.3.11 or 3.0.4.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2011-0446 being exploited?
There is no known exploitation of CVE-2011-0446 in the wild and no public exploit code.
Other vulnerabilities in Rubyonrails Rails
- CVE-2013-0277 Active Record contains deserialization of arbitrary YAML
- CVE-2017-17916 SQL injection in n/a
- CVE-2017-17917 SQL injection in n/a
- CVE-2026-33195 Rails Active Storage has possible Path Traversal in DiskService
- CVE-2024-26142 Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch
Sources
Also known as DEBIAN-CVE-2011-0446, GHSA-75w6-p6mg-vh8j.