Cross-site scriptingin the rails package.
Proof of concept public (Exploit-DB).
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.
- Upgrade rails (RubyGems) to 1.2.5 or later.
Not confirmed by any source yet: severity not scored yet. We show these as not confirmed instead of guessing.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 14 Jun 2007CVE ID reserved by mitre.
- 14 Jun 2007Published in the CVE List.
- 7 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (Exploit-DB).
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other vulnerabilities in this package
- pastie.caboo.se x_refsource_CONFIRM
- secunia.com third-party-advisory, x_refsource_SECUNIA
- www.vupen.com vdb-entry, x_refsource_VUPEN
- security.gentoo.org vendor-advisory, x_refsource_GENTOO
- secunia.com third-party-advisory, x_refsource_SECUNIA
- osvdb.org vdb-entry, x_refsource_OSVDB
- bugs.gentoo.org x_refsource_CONFIRM
- weblog.rubyonrails.org x_refsource_CONFIRM
- weblog.rubyonrails.org x_refsource_CONFIRM
- www.novell.com vendor-advisory, x_refsource_SUSE
- secunia.com third-party-advisory, x_refsource_SECUNIA
- dev.rubyonrails.org x_refsource_CONFIRM
- www.securityfocus.com vdb-entry, x_refsource_BID
Patchminder. CVE-2007-3227: Cross-site scripting in the rails package. https://patchminder.com/cve/cve-2007-3227/ (accessed 5 December 2026).