CWE
79
Advisory Published
Advisory Published
Updated

CVE-2015-3226: XSS

First published: Sun Jul 26 2015(Updated: )

Cross-site scripting (XSS) vulnerability in `json/encoding.rb` in Active Support in Ruby on Rails 3.x and 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.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
rubygems/activesupport>=3.0.0<=3.2.22.4
3.2.22.5
rubygems/activesupport>=4.2.0<4.2.2
4.2.2
rubygems/activesupport>=4.1.0<4.1.11
4.1.11
Ruby on Rails=3.0.0
Ruby on Rails=3.1.0
Ruby on Rails=3.2.0
Ruby on Rails=3.2.1
Ruby on Rails=3.2.2
Ruby on Rails=3.2.3
Ruby on Rails=3.2.4
Ruby on Rails=3.2.5
Ruby on Rails=3.2.6
Ruby on Rails=3.2.7
Ruby on Rails=3.2.8
Ruby on Rails=3.2.9
Ruby on Rails=3.2.10
Ruby on Rails=3.2.11
Ruby on Rails=3.2.12
Ruby on Rails=3.2.13
Ruby on Rails=3.2.15
Ruby on Rails=3.2.16
Ruby on Rails=3.2.17
Ruby on Rails=4.1.0
Ruby on Rails=4.1.1
Ruby on Rails=4.1.2
Ruby on Rails=4.1.3
Ruby on Rails=4.1.4
Ruby on Rails=4.1.5
Ruby on Rails=4.1.6
Ruby on Rails=4.1.7
Ruby on Rails=4.1.8
Ruby on Rails=4.2.0
Ruby on Rails=4.2.1
Ruby on Rails=3.2.14

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2015-3226?

    CVE-2015-3226 is classified as a medium-severity cross-site scripting (XSS) vulnerability.

  • How do I fix CVE-2015-3226?

    To fix CVE-2015-3226, update Active Support to version 3.2.22.5 or newer, 4.1.11 or newer, or 4.2.2 or newer.

  • What versions of Active Support are affected by CVE-2015-3226?

    CVE-2015-3226 affects Active Support versions prior to 3.2.22.5, 4.1.11, and 4.2.2.

  • Can CVE-2015-3226 be exploited remotely?

    Yes, CVE-2015-3226 allows remote attackers to inject arbitrary web scripts or HTML.

  • What systems are vulnerable to CVE-2015-3226?

    CVE-2015-3226 affects Ruby on Rails 3.x and 4.x versions before their respective patched releases.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203