MediumGHSA-9p3v-wf2w-v29cCVE-2009-4214

Moderate severity vulnerability that affects rails

Published 24 Oct 2017 · Updated 9 Apr 2025

Is your project on an affected rails?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

railsRubyGems
Affected
<2.2.2
Fixed in
2.2.2
Update to the fixed version for your release line, for example:bundle update --conservative rails # Gemfile: '>= 2.2.2'
railsRubyGems
Affected
>=2.3.0 <2.3.5
Fixed in
2.3.5
Update to the fixed version for your release line, for example:bundle update --conservative rails # Gemfile: '>= 2.3.5'

Details

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.

Is GHSA-9p3v-wf2w-v29c in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected rails, and gives you the command that fixes it.

More advisories for rails

  • MediumCVE-2024-26143Rails has possible XSS Vulnerability in Action Controller · 27 Feb 2024
  • CriticalCVE-2009-2422rails vulnerable to improper authentication · 24 Oct 2017
  • HighCVE-2006-4112Rails Denial of Service vulnerability · 24 Oct 2017
  • HighCVE-2006-4111Ruby on Rails vulnerable to code injection · 24 Oct 2017
  • MediumCVE-2007-5379Moderate severity vulnerability that affects rails · 24 Oct 2017
  • MediumCVE-2007-3227Moderate severity vulnerability that affects rails · 24 Oct 2017
All 11 advisories for rails

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.