CVE-2007-3227
Moderate severity vulnerability that affects rails
CVE-2007-3227 is a medium vulnerability (CVSS 4.3) in Rubyonrails Rails, published June 14, 2007. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 3.68%, the 89th percentile. Fixed in rails 1.2.5.
- Severity
- 4.3 MediumCVSS 2.0, NVD
- Exploit chance
- 3.68%EPSS, 89th percentile
- Exploitation
- None known1 public exploit
- Fixed in
1.2.5rails +4 more
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.
Exploit likelihood
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
railsRubyGems | before 1.2.5 | 1.2.5 |
railsDebian:12 | before 1.2.5-1 | 1.2.5-1 |
railsDebian:13 | before 1.2.5-1 | 1.2.5-1 |
railsDebian:14 | before 1.2.5-1 | 1.2.5-1 |
railsRubyGems | before 1.2.5, plus listed versions 0.10.00.10.10.11.00.11.10.12.0 Show 29 moreShow less0.12.10.13.00.13.10.14.10.14.20.14.30.14.40.8.00.8.50.9.00.9.10.9.20.9.30.9.40.9.4.10.9.51.0.01.1.01.1.11.1.21.1.31.1.41.1.51.1.61.2.01.2.11.2.21.2.31.2.4 | 1.2.5 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | Ruby on Rails 1.2.3 To_JSON - Script Injection | 2007-05-25 |
What each source reports
NVD Score used 4.3
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.
- Record
CVE-2007-3227- CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
CVE ListNo score
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.
- Record
CVE-2007-3227- Updated
- 2026-11-02
EUVDEUVD-2017-0241No score
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.
- Record
EUVD-2017-0241- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-gm25-fpmr-43fjNo score
Moderate 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.
- Record
GHSA-gm25-fpmr-43fj- Weakness
- CWE-79
- Updated
- 2026-11-02
OSVNo score
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.
- Record
CVE-2007-3227- Updated
- 2026-11-02
OSVDEBIAN-CVE-2007-3227No score
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.
- Record
DEBIAN-CVE-2007-3227- Updated
- 2026-11-02
OSVGHSA-gm25-fpmr-43fjNo score
Moderate 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.
- Record
GHSA-gm25-fpmr-43fj- Weakness
- CWE-79
- Updated
- 2026-11-02
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | ||
| aliases | EUVD | |
| affected, aliases, exploits, facts, references, title | Exploit-DB, GitHub Advisories, OSV | |
| first indexed | CVE List, NVD |
Dates are when Every CVE recorded each change. Upstream dates may differ.
References
pastie.caboo.se/65550.txt
secunia.com/advisories/25699
vupen.com/english/advisories/2007/2216
security.gentoo.org/glsa/glsa-200711-17.xml
secunia.com/advisories/27756
osvdb.org/36378
Show 12 moreShow less
bugs.gentoo.org/show_bug.cgi?id=195315
weblog.rubyonrails.org/2007/10/12/rails-1-2-5-maintenance-release
weblog.rubyonrails.org/2007/10/5/rails-1-2-4-maintenance-release
novell.com/linux/security/advisories/2007_24_sr.html
secunia.com/advisories/27657
dev.rubyonrails.org/ticket/8371
securityfocus.com/bid/24161
nvd.nist.gov/vuln/detail/CVE-2007-3227
github.com/advisories/GHSA-gm25-fpmr-43fj
github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2007-3227.yml
security-tracker.debian.org/tracker/CVE-2007-3227
github.com/rails/rails