{"id":"GHSA-gm25-fpmr-43fj","summary":"Moderate severity vulnerability that affects rails","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.","aliases":["CVE-2007-3227"],"modified":"2025-04-09T15:30:21.670801Z","published":"2017-10-24T18:33:38Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-06-16T21:37:37Z","nvd_published_at":"2007-06-14T23:30:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2007-3227"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-gm25-fpmr-43fj"},{"type":"PACKAGE","url":"https://github.com/rails/rails"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2007-3227.yml"},{"type":"WEB","url":"http://bugs.gentoo.org/show_bug.cgi?id=195315"},{"type":"WEB","url":"http://dev.rubyonrails.org/ticket/8371"},{"type":"WEB","url":"http://osvdb.org/36378"},{"type":"WEB","url":"http://pastie.caboo.se/65550.txt"},{"type":"WEB","url":"http://secunia.com/advisories/25699"},{"type":"WEB","url":"http://secunia.com/advisories/27657"},{"type":"WEB","url":"http://secunia.com/advisories/27756"},{"type":"WEB","url":"http://security.gentoo.org/glsa/glsa-200711-17.xml"},{"type":"WEB","url":"http://weblog.rubyonrails.org/2007/10/12/rails-1-2-5-maintenance-release"},{"type":"WEB","url":"http://weblog.rubyonrails.org/2007/10/5/rails-1-2-4-maintenance-release"},{"type":"WEB","url":"http://www.novell.com/linux/security/advisories/2007_24_sr.html"},{"type":"WEB","url":"http://www.securityfocus.com/bid/24161"},{"type":"WEB","url":"http://www.vupen.com/english/advisories/2007/2216"}],"affected":[{"package":{"name":"rails","ecosystem":"RubyGems","purl":"pkg:gem/rails"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.5"}]}],"versions":["0.10.0","0.10.1","0.11.0","0.11.1","0.12.0","0.12.1","0.13.0","0.13.1","0.14.1","0.14.2","0.14.3","0.14.4","0.8.0","0.8.5","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.9.4.1","0.9.5","1.0.0","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-gm25-fpmr-43fj/GHSA-gm25-fpmr-43fj.json"}}],"schema_version":"1.9.0"}