MediumGHSA-gm25-fpmr-43fjCVE-2007-3227
Moderate severity vulnerability that affects rails
Published 24 Oct 2017 · Updated 9 Apr 2025
Is your project on an affected rails?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
railsRubyGems
- Affected
- <1.2.5
- Fixed in
- 1.2.5
Update to the fixed version for your release line, for example:
bundle update --conservative rails # Gemfile: '>= 1.2.5'Details
Cross-site scripting (XSS) vulnerability in the to_json (ActiveRecord::Base#to_json) function in Ruby on Rails before edge 9606 allows remote attackers to inject arbitrary web script via the input values.
Is GHSA-gm25-fpmr-43fj 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-2009-4214Moderate severity vulnerability that affects rails · 24 Oct 2017
- MediumCVE-2007-5379Moderate severity vulnerability that affects rails · 24 Oct 2017
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2007-3227
- Advisorygithub.com/advisories/GHSA-gm25-fpmr-43fj
- Packagegithub.com/rails/rails
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2007-3227.yml
- Linkbugs.gentoo.org/show_bug.cgi?id=195315
- Linkdev.rubyonrails.org/ticket/8371
- Linkosvdb.org/36378
- Linkpastie.caboo.se/65550.txt
- Linksecunia.com/advisories/25699
- Linksecunia.com/advisories/27657
- Linksecunia.com/advisories/27756
- Linksecurity.gentoo.org/glsa/glsa-200711-17.xml
- Linkweblog.rubyonrails.org/2007/10/12/rails-1-2-5-maintenance-release
- Linkweblog.rubyonrails.org/2007/10/5/rails-1-2-4-maintenance-release
- Linkwww.novell.com/linux/security/advisories/2007_24_sr.html
- Linkwww.securityfocus.com/bid/24161
- Linkwww.vupen.com/english/advisories/2007/2216
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.