Every CVE Search/ Get API key

CVE-2007-3227

Moderate severity vulnerability that affects rails

4.3 MediumPublic exploitFix available

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

3.68%Down 2.0 points since Feb 4, 2022
90%50%10%1%

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 MediumAV:N/AC:M/Au:N/C:N/I:P/A:N
Weakness
CWE-79
Updated
2026-11-02
CVE List No 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-0241 No 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-43fj No 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
OSV No 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-3227 No 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-43fj No 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

Affected products

Affected packages

Affected packages
PackageAffectedFixed
rails
RubyGems
before 1.2.5
1.2.5
rails
Debian:12
before 1.2.5-1
1.2.5-1
rails
Debian:13
before 1.2.5-1
1.2.5-1
rails
Debian:14
before 1.2.5-1
1.2.5-1
rails
RubyGems
before 1.2.5, plus listed versions
0.10.00.10.10.11.00.11.10.12.0
Show 29 moreShow less
0.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.

Public exploits
SourceLinkDate
Exploit-DBRuby on Rails 1.2.3 To_JSON - Script Injection2007-05-25

History

History
RecordedChangedSources
aliasesEUVD
affected, aliases, exploits, facts, references, titleExploit-DB, GitHub Advisories, OSV
first indexedCVE List, NVD

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

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.

References

Show 12 moreShow less
MoveEnter Open