CVE-2015-3226
Description
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.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
2.760%
chance of exploitation in the next 30 days
higher than 86.5% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
Timeline
- 2015-07-26Published by the CNA22:00 UTC
- 2017-10-24GitHub advisory published (GHSA-vxvp-4xwc-jpp6)821 days after publication
Exploit and advisory records
GitHub advisory GHSA-vxvp-4xwc-jpp6, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| RubyGems activesupport | from 4.1.0 before 4.1.11 | 4.1.11 |
| RubyGems activesupport | from 4.2.0 before 4.2.2 | 4.2.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| rubyonrails rails | 3.0.0no fix listed3.1.0no fix listed3.2.0no fix listed3.2.1no fix listed3.2.10no fix listed(+25 more) | not listednot listednot listednot listednot listed |
| rubyonrails ruby_on_rails | 3.2.14no fix listed | not listed |
References
- http://www.debian.org/security/2016/dsa-3464
- https://groups.google.com/forum/message/raw?msg=rubyonrails-security/7VlB_pck3hU/3QZrGIaQW6cJ
- http://openwall.com/lists/oss-security/2015/06/16/17
- http://www.securityfocus.com/bid/75231
- http://www.securitytracker.com/id/1033755
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2015-3226'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2015-3226'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2015-3226'curl 'https://api.contrastcyber.com/cve_products/CVE-2015-3226'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).