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 rated by the source.
Dates
Published
2015-07-26 22:59 UTC
Modified
2026-09-09 06:47 UTC
Affected packages and fixes
rails
Debian packages (deb) · Debian 12
Affected
introduced 0, fixed 2:4.2.4-2 (ecosystem)
Fixed versions
2:4.2.4-2
Fix
Fixed version 2:4.2.4-2
sudo apt-get update && sudo apt-get upgrade
This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
rails
Debian packages (deb) · Debian 13
Affected
introduced 0, fixed 2:4.2.4-2 (ecosystem)
Fixed versions
2:4.2.4-2
Fix
Fixed version 2:4.2.4-2
sudo apt-get update && sudo apt-get upgrade
This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
rails
Debian packages (deb) · Debian 14
Affected
introduced 0, fixed 2:4.2.4-2 (ecosystem)
Fixed versions
2:4.2.4-2
Fix
Fixed version 2:4.2.4-2
sudo apt-get update && sudo apt-get upgrade
This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.