CVE-2007-3227

unknown
Published 2017-10-24 ยท Modified 2025-04-09
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
1.0

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.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-30089 remote linux verified
BCC ยท 2007-05-25

Ruby on Rails 1.2.3 To_JSON - Script Injection

Source code queued for fetch โ€” refresh in a moment.

OS impact

debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 1.2.5-1
sid Fixed 1.2.5-1
forky Fixed 1.2.5-1
bullseye Fixed 1.2.5-1
bookworm Fixed 1.2.5-1

Package impact

EcosystemPackageVulnerableFixed
ruby RubyGemsrails<>= 1.2.5>= 1.2.5
ruby RubyGemsrails<1.2.51.2.5

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.