{"api_version":"1","generated_at":"2026-07-23T06:57:15+00:00","cve":"CVE-2007-3227","urls":{"html":"https://cve.report/CVE-2007-3227","api":"https://cve.report/api/cve/CVE-2007-3227.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2007-3227","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2007-3227"},"summary":{"title":"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.","state":"PUBLISHED","assigner":"mitre","published_at":"2007-06-14 23:30:00","updated_at":"2026-04-23 00:35:47"},"problem_types":["CWE-79","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"4.3","severity":"","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","data":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","baseScore":4.3,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE"}}],"references":[{"url":"http://dev.rubyonrails.org/ticket/8371","name":"http://dev.rubyonrails.org/ticket/8371","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"#8371 (to_json cross site scripting security issue (XSS)) - Rails Trac - Trac","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"http://bugs.gentoo.org/show_bug.cgi?id=195315","name":"http://bugs.gentoo.org/show_bug.cgi?id=195315","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Gentoo Bug 195315 - dev-ruby/rails <1.2.5 Multiple vulnerabilities (CVE-2007-{3227,5379,5380})","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://security.gentoo.org/glsa/glsa-200711-17.xml","name":"http://security.gentoo.org/glsa/glsa-200711-17.xml","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Gentoo Linux Documentation\n--\n  Ruby on Rails: Multiple vulnerabilities","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.vupen.com/english/advisories/2007/2216","name":"http://www.vupen.com/english/advisories/2007/2216","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"Webmail : Solution de messagerie professionnelle - OVHcloud- OVH","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/27657","name":"http://secunia.com/advisories/27657","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"Gentoo update for rails - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://pastie.caboo.se/65550.txt","name":"http://pastie.caboo.se/65550.txt","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"text/x-diff","httpstatus":"-1","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/24161","name":"http://www.securityfocus.com/bid/24161","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit"],"title":"Ruby on Rails To_JSON Script Injection Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://secunia.com/advisories/27756","name":"http://secunia.com/advisories/27756","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"SUSE Update for Multiple Packages - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/25699","name":"http://secunia.com/advisories/25699","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"Ruby on Rails Multiple Vulnerabilities - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://osvdb.org/36378","name":"http://osvdb.org/36378","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"-1","archivestatus":"0"},{"url":"http://weblog.rubyonrails.org/2007/10/5/rails-1-2-4-maintenance-release","name":"http://weblog.rubyonrails.org/2007/10/5/rails-1-2-4-maintenance-release","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Riding Rails: Rails 1.2.4: Maintenance release","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://weblog.rubyonrails.org/2007/10/12/rails-1-2-5-maintenance-release","name":"http://weblog.rubyonrails.org/2007/10/12/rails-1-2-5-maintenance-release","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Riding Rails: Rails 1.2.5: Security and maintenance release","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.novell.com/linux/security/advisories/2007_24_sr.html","name":"http://www.novell.com/linux/security/advisories/2007_24_sr.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Security Announcement","mime":"text/html","httpstatus":"404","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-3227","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-3227","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2007","cve_id":"3227","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"rubyonrails","cpe5":"rails","cpe6":"1.1.5","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-07T14:05:29.598Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://pastie.caboo.se/65550.txt"},{"name":"25699","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/25699"},{"name":"ADV-2007-2216","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"],"url":"http://www.vupen.com/english/advisories/2007/2216"},{"name":"GLSA-200711-17","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"],"url":"http://security.gentoo.org/glsa/glsa-200711-17.xml"},{"name":"27756","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/27756"},{"name":"36378","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"],"url":"http://osvdb.org/36378"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://bugs.gentoo.org/show_bug.cgi?id=195315"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://weblog.rubyonrails.org/2007/10/12/rails-1-2-5-maintenance-release"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://weblog.rubyonrails.org/2007/10/5/rails-1-2-4-maintenance-release"},{"name":"SUSE-SR:2007:024","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"],"url":"http://www.novell.com/linux/security/advisories/2007_24_sr.html"},{"name":"27657","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/27657"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://dev.rubyonrails.org/ticket/8371"},{"name":"24161","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/24161"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2007-05-15T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2007-06-22T09:00:00.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"tags":["x_refsource_CONFIRM"],"url":"http://pastie.caboo.se/65550.txt"},{"name":"25699","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/25699"},{"name":"ADV-2007-2216","tags":["vdb-entry","x_refsource_VUPEN"],"url":"http://www.vupen.com/english/advisories/2007/2216"},{"name":"GLSA-200711-17","tags":["vendor-advisory","x_refsource_GENTOO"],"url":"http://security.gentoo.org/glsa/glsa-200711-17.xml"},{"name":"27756","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/27756"},{"name":"36378","tags":["vdb-entry","x_refsource_OSVDB"],"url":"http://osvdb.org/36378"},{"tags":["x_refsource_CONFIRM"],"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"},{"name":"SUSE-SR:2007:024","tags":["vendor-advisory","x_refsource_SUSE"],"url":"http://www.novell.com/linux/security/advisories/2007_24_sr.html"},{"name":"27657","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/27657"},{"tags":["x_refsource_CONFIRM"],"url":"http://dev.rubyonrails.org/ticket/8371"},{"name":"24161","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/24161"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2007-3227","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"http://pastie.caboo.se/65550.txt","refsource":"CONFIRM","url":"http://pastie.caboo.se/65550.txt"},{"name":"25699","refsource":"SECUNIA","url":"http://secunia.com/advisories/25699"},{"name":"ADV-2007-2216","refsource":"VUPEN","url":"http://www.vupen.com/english/advisories/2007/2216"},{"name":"GLSA-200711-17","refsource":"GENTOO","url":"http://security.gentoo.org/glsa/glsa-200711-17.xml"},{"name":"27756","refsource":"SECUNIA","url":"http://secunia.com/advisories/27756"},{"name":"36378","refsource":"OSVDB","url":"http://osvdb.org/36378"},{"name":"http://bugs.gentoo.org/show_bug.cgi?id=195315","refsource":"CONFIRM","url":"http://bugs.gentoo.org/show_bug.cgi?id=195315"},{"name":"http://weblog.rubyonrails.org/2007/10/12/rails-1-2-5-maintenance-release","refsource":"CONFIRM","url":"http://weblog.rubyonrails.org/2007/10/12/rails-1-2-5-maintenance-release"},{"name":"http://weblog.rubyonrails.org/2007/10/5/rails-1-2-4-maintenance-release","refsource":"CONFIRM","url":"http://weblog.rubyonrails.org/2007/10/5/rails-1-2-4-maintenance-release"},{"name":"SUSE-SR:2007:024","refsource":"SUSE","url":"http://www.novell.com/linux/security/advisories/2007_24_sr.html"},{"name":"27657","refsource":"SECUNIA","url":"http://secunia.com/advisories/27657"},{"name":"http://dev.rubyonrails.org/ticket/8371","refsource":"CONFIRM","url":"http://dev.rubyonrails.org/ticket/8371"},{"name":"24161","refsource":"BID","url":"http://www.securityfocus.com/bid/24161"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2007-3227","datePublished":"2007-06-14T23:00:00.000Z","dateReserved":"2007-06-14T00:00:00.000Z","dateUpdated":"2024-08-07T14:05:29.598Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2007-06-14 23:30:00","lastModifiedDate":"2026-04-23 00:35:47","problem_types":["CWE-79","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","baseScore":4.3,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE"},"baseSeverity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:rubyonrails:rails:1.1.5:*:*:*:*:*:*:*","matchCriteriaId":"43E7F32B-C760-4862-B6DB-C38FB2A9182F"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2007","CveId":"3227","Ordinal":"1","Title":"CVE-2007-3227","CVE":"CVE-2007-3227","Year":"2007"},"notes":[{"CveYear":"2007","CveId":"3227","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2007-3227"},{"CveYear":"2007","CveId":"3227","Ordinal":"2","NoteData":"2007-06-14","Type":"Other","Title":"Published"},{"CveYear":"2007","CveId":"3227","Ordinal":"3","NoteData":"2007-06-22","Type":"Other","Title":"Modified"}]}}}