CVE-2011-0446 Rails actionpack gem vulnerable to Cross-site Scripting

Medium 4.3 Published Updated

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.

PackageAffectedFixed in
actionpack RubyGemsAll versions2.3.11
actionpack RubyGemsAll versions2.3.11
actionpack RubyGemsFrom 3.0.03.0.4
actionpack RubyGemsFrom 3.0.03.0.4
actionview RubyGemsAll versions2.3.11
actionview RubyGemsAll versions2.3.11
2 more packages
actionview RubyGemsFrom 3.0.03.0.4
actionview RubyGemsFrom 3.0.03.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.

All Rubyonrails Rails vulnerabilities

Sources

Also known as DEBIAN-CVE-2011-0446, GHSA-75w6-p6mg-vh8j.

Is CVE-2011-0446 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free