CVE-2009-4214 json
Moderate severity vulnerability that affects rails
published 2009-12-07 16 y ago modified 2026-06-16 4 mo ago also GHSA-9p3v-wf2w-v29c , EUVD-2017-0207
- cvss
- 4.3
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.0%
- EPSS 3.0% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
Cross-site scripting (XSS) vulnerability in the strip_tags function in Ruby on Rails before 2.2.s, and 2.3.x before 2.3.5, allows remote attackers to inject arbitrary web script or HTML via vectors involving non-printing ASCII characters, related to HTML::Tokenizer and actionpack/lib/action_controller/vendor/html-scanner/html/node.rb.
Patch / fix
- rubygems rails 2.2.2, 2.3.5
- rails Debian 14, Debian 13, Debian 12 2.2.3-2
debian advisories DEBIAN-CVE-2009-4214
- github.com/rails/rails@bfe0328 commit
- securityfocus.com/bid/37142 patch
- vupen.com/english/advisories/2009/3352 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2009-4214 updated
rubygem-actionpack: XSS weakness in strip_tags
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.02% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | rails | <2.2.2 >=2.3.0, <2.3.5 |
2.2.2 2.3.5 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
github.com
/rails/rails/commit/bfe032858077bb2946abe25e95e485ba6da86bd5
web, patch
-
vupen.com
/english/advisories/2009/3352
vdb-entry, web, patch, vendor-advisory
-
securityfocus.com
/bid/37142
vdb-entry, web, patch
-
debian.org
/security/2011/dsa-2301
vendor-advisory, web
-
lists.apple.com
/archives/security-announce/2010//Mar/msg00001.html
vendor-advisory, web
-
debian.org
/security/2011/dsa-2260
vendor-advisory, web
-
lists.opensuse.org
/opensuse-security-announce/2010-03/msg00004.html
vendor-advisory, web
-
secunia.com
/advisories/37446
third-party-advisory, web, vendor-advisory
-
secunia.com
/advisories/38915
third-party-advisory, web, vendor-advisory
-
groups.google.com
/group/rubyonrails-security/browse_thread/thread/4d4f71f2aef4c0ab?pli=1
mailing-list, web
-
weblog.rubyonrails.org
/2009/11/30/ruby-on-rails-2-3-5-released
web
-
openwall.com
/lists/oss-security/2009/11/27/2
mailing-list, web
-
support.apple.com
/kb/HT4077
web
-
securitytracker.com
/id?1023245
vdb-entry, web
-
openwall.com
/lists/oss-security/2009/12/08/3
mailing-list, web
-
nvd.nist.gov
/vuln/detail/CVE-2009-4214
advisory
-
github.com
/advisories/GHSA-9p3v-wf2w-v29c
advisory
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2009-4214.yml
web
-
github.com
/rails/rails
package
Sources
- CVE List CVE-2009-4214
- GitHub Advisory GHSA-9p3v-wf2w-v29c
- NVD CVE-2009-4214
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.