{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2007-3227","id":"CVE-2007-3227","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.","descriptionLong":"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.","published":"2007-06-14T23:00:00.000Z","updated":"2026-06-16T22:41:18.630Z","reserved":"2007-06-14T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"rails","purl":"pkg:gem/rails","ranges":["<1.2.5"],"fixed":["1.2.5"],"advisory":"GHSA-gm25-fpmr-43fj"}],"cwes":["CWE-79"],"aliases":["GHSA-gm25-fpmr-43fj"],"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/rails/rails","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2007-3227.yml","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03683,"epssPercentile":0.89906,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2007-3227","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2007-3227","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2007-3227","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-gm25-fpmr-43fj","ok":true,"note":"GHSA-gm25-fpmr-43fj"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2007-3227","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["ruby"],"critical":[],"attention":null}