{"id":"CVE-2007-3227","aliases":["DEBIAN-CVE-2007-3227","EUVD-2017-0241","GHSA-gm25-fpmr-43fj"],"status":"published","title":"Moderate severity vulnerability that affects rails","description":"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.","severity":{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.03683,"percentile":0.89767,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-79"],"published":"2007-06-14T23:00:00Z","modified":"2026-10-21T17:47:37Z","exploits":[{"source":"exploitdb","id":"EDB-30089","title":"Ruby on Rails 1.2.3 To_JSON - Script Injection","type":"remote","platform":"linux","date":"2007-05-25","verified":true,"url":"https://www.exploit-db.com/exploits/30089"}],"fixes":[{"ecosystem":"RubyGems","package":"rails","fixed_in":["1.2.5"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"rails","fixed_in":["1.2.5-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"rails","fixed_in":["1.2.5-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"rails","fixed_in":["1.2.5-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.5"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.5-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.5-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.5-1"}]}]},{"source":"osv","ecosystem":"RubyGems","package":"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"]}],"products":[{"vendor":"rubyonrails","product":"rails"}],"references":[{"url":"http://pastie.caboo.se/65550.txt","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://secunia.com/advisories/25699","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory","web"]},{"url":"http://www.vupen.com/english/advisories/2007/2216","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Vendor Advisory","advisory","web"]},{"url":"http://security.gentoo.org/glsa/glsa-200711-17.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","advisory","web"]},{"url":"http://secunia.com/advisories/27756","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory","web"]},{"url":"http://osvdb.org/36378","tags":["vdb-entry","x_refsource_OSVDB","x_transferred","web"]},{"url":"http://bugs.gentoo.org/show_bug.cgi?id=195315","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://weblog.rubyonrails.org/2007/10/12/rails-1-2-5-maintenance-release","tags":["x_refsource_CONFIRM","x_transferred","article","web"]},{"url":"http://weblog.rubyonrails.org/2007/10/5/rails-1-2-4-maintenance-release","tags":["x_refsource_CONFIRM","x_transferred","article","web"]},{"url":"http://www.novell.com/linux/security/advisories/2007_24_sr.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","advisory","web"]},{"url":"http://secunia.com/advisories/27657","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory","advisory","web"]},{"url":"http://dev.rubyonrails.org/ticket/8371","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/24161","tags":["vdb-entry","x_refsource_BID","x_transferred","Exploit","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-3227","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-gm25-fpmr-43fj","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2007-3227.yml","tags":["web"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2007-3227","tags":["advisory"]},{"url":"https://github.com/rails/rails","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2007-3227","description":"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.","status":"published","published":"2007-06-14T23:00:00Z","modified":"2024-08-07T14:05:29.598Z","updated_at":"2026-11-02T13:32:45.563938Z"}],"euvd":[{"id":"EUVD-2017-0241","description":"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.","status":"published","published":"2007-06-14T23:00:00Z","modified":"2024-08-07T14:05:29Z","updated_at":"2026-11-03T01:38:17.502481Z"}],"ghsa":[{"id":"GHSA-gm25-fpmr-43fj","title":"Moderate severity vulnerability that affects rails","description":"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.","status":"published","published":"2017-10-24T18:33:38Z","modified":"2023-11-09T05:02:07Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:17.64478Z"}],"nvd":[{"id":"CVE-2007-3227","description":"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.","status":"published","published":"2007-06-14T23:30:00Z","modified":"2026-06-16T22:41:18.63Z","cvss":[{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:01:16.479378Z"}],"osv":[{"id":"CVE-2007-3227","description":"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.","status":"published","published":"2007-06-14T23:30:00Z","modified":"2026-04-10T03:38:55.05172Z","updated_at":"2026-11-02T15:43:56.865964Z"},{"id":"DEBIAN-CVE-2007-3227","description":"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.","status":"published","published":"2007-06-14T23:30:00Z","modified":"2026-10-21T17:47:37.882971722Z","updated_at":"2026-11-02T15:45:23.411908Z"},{"id":"GHSA-gm25-fpmr-43fj","title":"Moderate severity vulnerability that affects rails","description":"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.","status":"published","published":"2017-10-24T18:33:38Z","modified":"2025-04-09T15:30:21.670801Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:47.822182Z"}]}}
