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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rails | 2.3.11-0.1 | — |
| Debian 13 | rails | 2.3.11-0.1 | — |
| Debian 12 | rails | 2.3.11-0.1 | — |
| Debian 6.0 | rails | 2.3.5-1.2+squeeze0.1 | DSA-2247-1 |
| Debian 5.0 | rails | 2.1.0-7+lenny0.1 | DSA-2247-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | actionpack | < 2.3.11 | 2.3.11 | GHSA-75w6-p6mg-vh8j |
| RubyGems | actionpack | >= 3.0.0, < 3.0.4 | 3.0.4 | GHSA-75w6-p6mg-vh8j |
| RubyGems | actionview | < 2.3.11 | 2.3.11 | GHSA-75w6-p6mg-vh8j |
| RubyGems | actionview | >= 3.0.0, < 3.0.4 | 3.0.4 | GHSA-75w6-p6mg-vh8j |
Advisories 1
- DSA-2247-1 rails - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- ADV-2011-0587 vdb-entry
- FEDORA-2011-2138 vendor-advisory
- 46291 vdb-entry
- DSA-2247 vendor-advisory
- FEDORA-2011-4358 vendor-advisory
- 43274 third-party-advisory
- 1025064 vdb-entry
- [rubyonrails-security] 20110209 Potential XSS Problem with mail_to :encode => :javascript mailing-list
- ADV-2011-0877 vdb-entry
- FEDORA-2011-2133 vendor-advisory
- 43666 third-party-advisory