Description
Cross-site scripting (XSS) vulnerability in Ruby on Rails 2.x before 2.2.3, and 2.3.x before 2.3.4, allows remote attackers to inject arbitrary web script or HTML by placing malformed Unicode strings into a form helper.
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.2.3-1 | — |
| Debian 13 | rails | 2.2.3-1 | — |
| Debian 12 | rails | 2.2.3-1 | — |
| Debian 5.0 | rails | 2.1.0-7 | DSA-1887-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | actionpack | >= 2.0.0, < 2.2.3 | 2.2.3 | GHSA-8qrh-h9m2-5fvf |
| RubyGems | actionpack | >= 2.3.0, < 2.3.4 | 2.3.4 | GHSA-8qrh-h9m2-5fvf |
| RubyGems | activesupport | >= 2.0.0, < 2.2.3 | 2.2.3 | GHSA-8qrh-h9m2-5fvf |
| RubyGems | activesupport | >= 2.3.0, < 2.3.4 | 2.3.4 | GHSA-8qrh-h9m2-5fvf |
Advisories 1
- DSA-1887-1 rails - cross-site scripting Debian Security (DSA / DLA) · Mar 9, 2026
References
- 36278 vdb-entry
- http://weblog.rubyonrails.org/2009/9/4/xss-vulnerability-in-ruby-on-rails
- 36600 third-party-advisory
- APPLE-SA-2010-03-29-1 vendor-advisory
- ADV-2009-2544 vdb-entry
- rubyonrails-unicode-xss(53036) vdb-entry
- http://support.apple.com/kb/HT4077
- DSA-1887 vendor-advisory
- [rubyonrails-security] 20090904 XSS Vulnerability in Ruby on Rails mailing-list
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=545063
- 57666 vdb-entry
- 1022824 vdb-entry
- 36717 third-party-advisory
- SUSE-SR:2009:017 vendor-advisory