Description
Cross-site scripting (XSS) vulnerability in actionpack/lib/action_view/helpers/form_options_helper.rb in the select helper in Ruby on Rails 3.0.x before 3.0.12, 3.1.x before 3.1.4, and 3.2.x before 3.2.2 allows remote attackers to inject arbitrary web script or HTML via vectors involving certain generation of OPTION elements within SELECT elements.
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.14 | — |
| Debian 13 | rails | 2.3.14 | — |
| Debian 12 | rails | 2.3.14 | — |
| Debian 6.0 | rails | 2.3.5-1.2+squeeze3 | DSA-2466-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | actionpack | >= 3.0.0, < 3.0.12 | 3.0.12 | GHSA-2xjj-5x6h-8vmf |
| RubyGems | actionpack | >= 3.1.0, < 3.1.4 | 3.1.4 | GHSA-2xjj-5x6h-8vmf |
| RubyGems | actionpack | >= 3.2.0, < 3.2.2 | 3.2.2 | GHSA-2xjj-5x6h-8vmf |
Advisories 1
- DSA-2466-1 rails - cross site scripting Debian Security (DSA / DLA) · Mar 9, 2026
References
- FEDORA-2012-3321 vendor-advisory
- [oss-security] 20120302 Re: CVE Request -- Ruby on Rails (v3.0.12) / rubygem-actionpack: Two XSS flaws mailing-list
- FEDORA-2012-3355 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=799276
- DSA-2466 vendor-advisory
- [oss-security] 20120302 CVE Request -- Ruby on Rails (v3.0.12) / rubygem-actionpack: Two XSS flaws mailing-list
- [rubyonrails-security] 20120301 XSS Vulnerability in the select helper mailing-list
- http://weblog.rubyonrails.org/2012/3/1/ann-rails-3-0-12-has-been-released