Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rails
  4. ›
  5. CVE-2007-3227

CVE-2007-3227: Moderate severity vulnerability that affects rails

October 24, 2017 (updated April 9, 2025)

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.

References

  • github.com/advisories/GHSA-gm25-fpmr-43fj
  • github.com/rails/rails
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2007-3227.yml
  • nvd.nist.gov/vuln/detail/CVE-2007-3227

Code Behaviors & Features

Detect and mitigate CVE-2007-3227 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.5

Fixed versions

  • 1.2.5

Solution

Upgrade to version 1.2.5 or above.

Impact 4.3 MEDIUM

AV:N/AC:M/Au:N/C:N/I:P/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

gem/rails/CVE-2007-3227.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:59 +0000.