CVE-2007-3227Rubyonrails Rails
Medium 4.3 No auth needed
Follow: this CVE · Rubyonrails · Rubyonrails Rails We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 2.0
- 4.3
- EPSS
- 3.7% probability of exploitation in 30 days · percentile 90
- Auth required
- No
- Published
- Jun 14, 2007
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
What happens
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.
What to do
- Apply the vendor's security update for Rails.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | rails |
< 1.2.5 |
1.2.5 |
gem "rails", ">= 1.2.5" |
Per OSV / GitHub Advisories (GHSA-gm25-fpmr-43fj). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | 1.1.5 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.gentoo.org
- dev.rubyonrails.org
- osvdb.org
- pastie.caboo.se
- secunia.com Vendor Advisory
- secunia.com Vendor Advisory
- secunia.com Vendor Advisory
- security.gentoo.org
- weblog.rubyonrails.org
- weblog.rubyonrails.org
- www.novell.com
- www.securityfocus.com Exploit
- www.vupen.com Vendor Advisory