CVE-2007-3227
MEDIUM 4.3CVSS 2.0Moderate severity vulnerability that affects rails
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
- 14 Jun 2007
- Last modified
- 16 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-gm25-fpmr-43fj
- Sources
- NVDJSONOSV GHSA-gm25-fpmr-43fjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:1.1.5:*:*:*:*:*:*:* |
= 1.1.5 | |
| OSV | RubyGems | rails | < 1.2.5 | 1.2.5 |
References
- http://bugs.gentoo.org/show_bug.cgi?id=195315 · WEB
- http://dev.rubyonrails.org/ticket/8371 · WEB
- http://osvdb.org/36378 · WEB
- http://pastie.caboo.se/65550.txt · WEB
- http://secunia.com/advisories/25699 · Vendor Advisory, WEB
- http://secunia.com/advisories/27657 · Vendor Advisory, WEB
- http://secunia.com/advisories/27756 · Vendor Advisory, WEB
- http://security.gentoo.org/glsa/glsa-200711-17.xml · WEB
- http://weblog.rubyonrails.org/2007/10/12/rails-1-2-5-maintenance-release · WEB
- http://weblog.rubyonrails.org/2007/10/5/rails-1-2-4-maintenance-release · WEB
- http://www.novell.com/linux/security/advisories/2007_24_sr.html · WEB
- http://www.securityfocus.com/bid/24161 · Exploit, WEB
- http://www.vupen.com/english/advisories/2007/2216 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2007-3227 · ADVISORY
- https://github.com/advisories/GHSA-gm25-fpmr-43fj · ADVISORY
- https://github.com/rails/rails · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2007-3227.yml · WEB
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Oct 2017)
- 25 Nov 2026 20:13 UTC · NVD: first stored (published 14 Jun 2007)