# CVE-2009-4214: Moderate severity vulnerability that affects rails

- Severity: Medium 4.3 (CVSS:2.0, scored by NVD) `AV:N/AC:M/Au:N/C:N/I:P/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.02%, higher than 87% of CVEs (2026-12-01)
- Published: 2009-12-07T17:00:00.000Z
- Modified: 2026-06-16T23:13:15.450Z
- Also known as: GHSA-9p3v-wf2w-v29c
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- rails (RubyGems): before 2.2.2; from 2.3.0 before 2.3.5
- rubyonrails rails: 2.3.2; 2.3.3; 2.3.4; 0.9.1; 0.9.2; 0.9.3; 0.9.4; 0.9.4.1; 0.10.0; 0.10.1; 0.11.0; 0.11.1; and 30 more
- rubyonrails ruby_on_rails: up to 2.1.2; 0.5.0; 0.5.5; 0.5.6; 0.5.7; 0.6.0; 0.6.5; 0.7.0; 0.8.0; 0.8.5; 0.9.0

## Every score

- GitHub: rating Medium
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <http://groups.google.com/group/rubyonrails-security/browse_thread/thread/4d4f71f2aef4c0ab?pli=1> (mailing-list, web)
- <http://secunia.com/advisories/37446> (third-party-advisory, vendor-advisory, web)
- <http://www.vupen.com/english/advisories/2009/3352> (patch, vdb-entry, vendor-advisory, web)
- <http://www.debian.org/security/2011/dsa-2301> (vendor-advisory, web)
- <http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html> (vendor-advisory, web)
- <http://weblog.rubyonrails.org/2009/11/30/ruby-on-rails-2-3-5-released> (web)
- <http://www.securityfocus.com/bid/37142> (patch, vdb-entry, web)
- <http://www.debian.org/security/2011/dsa-2260> (vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2009/11/27/2> (mailing-list, web)
- <http://lists.opensuse.org/opensuse-security-announce/2010-03/msg00004.html> (vendor-advisory, web)
- <http://support.apple.com/kb/HT4077> (web)
- <http://www.securitytracker.com/id?1023245> (vdb-entry, web)
- <http://secunia.com/advisories/38915> (third-party-advisory, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2009/12/08/3> (mailing-list, web)
- <http://github.com/rails/rails/commit/bfe032858077bb2946abe25e95e485ba6da86bd5> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2009-4214> (advisory)
- <https://github.com/advisories/GHSA-9p3v-wf2w-v29c> (advisory)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2009-4214.yml> (web)
- <http://github.com/rails/rails> (package)

## Sources

- CVE List: [CVE-2009-4214](https://www.cve.org/CVERecord?id=CVE-2009-4214), CVE Terms of Use, modified 2024-08-07
- GitHub Advisory Database: [GHSA-9p3v-wf2w-v29c](https://github.com/advisories/GHSA-9p3v-wf2w-v29c), CC-BY-4.0, modified 2025-04-09
- NVD: [CVE-2009-4214](https://nvd.nist.gov/vuln/detail/CVE-2009-4214), Public domain, modified 2026-06-16

---

Page: https://cve.day/CVE-2009-4214 · Whole record: https://cve.day/CVE-2009-4214.json · Rebuilt by cve.day 2026-11-25T22:57:06.694Z
