Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. activesupport
  4. ›
  5. CVE-2015-3226

CVE-2015-3226: activesupport Cross-site Scripting vulnerability

October 24, 2017 (updated November 4, 2025)

Cross-site scripting (XSS) vulnerability in json/encoding.rb in Active Support in Ruby on Rails 4.1.x before 4.1.11 and 4.2.x before 4.2.2 allows remote attackers to inject arbitrary web script or HTML via a crafted Hash that is mishandled during JSON encoding.

References

  • github.com/advisories/GHSA-vxvp-4xwc-jpp6
  • github.com/rails/rails
  • groups.google.com/forum/message/raw?msg=rubyonrails-security/7VlB_pck3hU/3QZrGIaQW6cJ
  • groups.google.com/g/rubyonrails-core/c/qBUqVlXERag/m/kuH3wQk1kxUJ
  • nvd.nist.gov/vuln/detail/CVE-2015-3226
  • web.archive.org/web/20200228033946/http://www.securityfocus.com/bid/75231
  • web.archive.org/web/20200517005133/http://www.securitytracker.com/id/1033755

Code Behaviors & Features

Detect and mitigate CVE-2015-3226 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 4.1.0 before 4.1.11, all versions starting from 4.2.0 before 4.2.2

Fixed versions

  • 4.1.11
  • 4.2.2

Solution

Upgrade to versions 4.1.11, 4.2.2 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/activesupport/CVE-2015-3226.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:58 +0000.