{"id":"CVE-2007-3227","published":"2007-06-14T23:00:00Z","modified":"2024-08-07T14:05:29Z","title":"Cross-site scripting (XSS) vulnerability in the to_json (ActiveRecord::Base#to_json) function in Ruby on Rails before…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03683,"percentile":0.89953,"provenance":"source"},"cwes":[],"references":[{"url":"http://pastie.caboo.se/65550.txt","tags":["x_refsource_CONFIRM"]},{"url":"http://secunia.com/advisories/25699","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.vupen.com/english/advisories/2007/2216","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"http://security.gentoo.org/glsa/glsa-200711-17.xml","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://secunia.com/advisories/27756","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://osvdb.org/36378","tags":["vdb-entry","x_refsource_OSVDB"]},{"url":"http://bugs.gentoo.org/show_bug.cgi?id=195315","tags":["x_refsource_CONFIRM"]},{"url":"http://weblog.rubyonrails.org/2007/10/12/rails-1-2-5-maintenance-release","tags":["x_refsource_CONFIRM"]},{"url":"http://weblog.rubyonrails.org/2007/10/5/rails-1-2-4-maintenance-release","tags":["x_refsource_CONFIRM"]},{"url":"http://www.novell.com/linux/security/advisories/2007_24_sr.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://secunia.com/advisories/27657","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://dev.rubyonrails.org/ticket/8371","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/24161","tags":["vdb-entry","x_refsource_BID"]}],"priority":{"score":23.0,"factors":[{"name":"EPSS percentile","points":17.99},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2007-05-25"},"first":{"date":"2007-05-25","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/30089"},"provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rails","vulnerableRanges":["<1.2.5"],"patched":["1.2.5"],"from":["GHSA-gm25-fpmr-43fj"],"provenance":"source"}],"summary":{"text":"A cross-site scripting (XSS) flaw exists in the to_json method (ActiveRecord::Base#to_json) of Ruby on Rails. An attacker can inject arbitrary web script through input values, with the attack described as remotely launchable.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:35Z"},"euvd":{"id":"EUVD-2017-0241","exploited":false,"provenance":"source"},"exploits":[{"id":30089,"url":"https://www.exploit-db.com/exploits/30089","title":"Ruby on Rails 1.2.3 To_JSON - Script Injection","date":"2007-05-25","verified":true,"provenance":"source"}],"lineage":{"packageHistory":[{"cve":"CVE-2006-4112","published":"2006-08-14","fixed":"1.1.6","kev":false},{"cve":"CVE-2007-5379","published":"2007-10-19","fixed":"1.2.4","kev":false},{"cve":"CVE-2007-5380","published":"2007-10-19","fixed":"1.2.4","kev":false},{"cve":"CVE-2007-3227","published":"2007-06-14","fixed":"1.2.5","kev":false},{"cve":"CVE-2007-6077","published":"2007-11-21","fixed":"1.2.6","kev":false,"link":{"from":"CVE-2007-3227","to":"CVE-2007-6077","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rails","fromFixed":"1.2.5","toFixed":"1.2.6","daysApart":160}]}},{"cve":"CVE-2008-5189","published":"2008-11-21","fixed":"2.0.5","kev":false},{"cve":"CVE-2009-2422","published":"2009-07-10","fixed":"2.3.3","kev":false}],"package":"RubyGems:rails"}}