Description
Cross-site scripting (XSS) vulnerability in Action View in Ruby on Rails 3.x before 3.2.22.3, 4.x before 4.2.7.1, and 5.x before 5.0.0.1 might allow remote attackers to inject arbitrary web script or HTML via text declared as "HTML safe" and used as attribute values in tag handlers.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rails | 2:4.2.7.1-1 | — |
| Debian 13 | rails | 2:4.2.7.1-1 | — |
| Debian 12 | rails | 2:4.2.7.1-1 | — |
| Debian 8 | rails | 2:4.1.8-1+deb8u4 | DSA-3651-1 |
| Debian 7 | ruby-actionpack-3.2 | 3.2.6-6+deb7u3 | DLA-604-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 2 | rh-ror41-rubygem-actionview +1 | 4.1.5-6.el6 | RHSA-2016:1856 |
| RHEL 2 | rh-ror42-rubygem-actionpack +3 | 1:4.2.6-3.el7 | RHSA-2016:1855 |
| RHEL 2 | rh-ror42-rubygem-actionview +1 | 4.2.6-3.el7 | RHSA-2016:1855 |
| RHEL 2 | ror40-rubygem-actionpack +1 | 1:4.0.2-8.el6 | RHSA-2016:1857 |
| RHEL 2 | ruby193-rubygem-actionpack +1 | 1:3.2.8-20.el6 | RHSA-2016:1858 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE OpenStack Cloud 7 | rubygem-actionpack-4_2 +1 | 4.2.9-7.3.1 | SUSE-SU-2017:2716-1 |
| SUSE OpenStack Cloud 7 | rubygem-actionview-4_2 | 4.2.9-9.3.1 | SUSE-SU-2017:2716-1 |
| SUSE OpenStack Cloud 7 | rubygem-activemodel-4_2 +1 | 4.2.9-6.3.1 | SUSE-SU-2017:2716-1 |
| SUSE OpenStack Cloud 7 | rubygem-rails-4_2 +3 | 4.2.9-3.3.1 | SUSE-SU-2017:2716-1 |
| SUSE OpenStack Cloud 7 | rubygem-rails-html-sanitizer | 1.0.3-8.3.1 | SUSE-SU-2017:2716-1 |
| SUSE OpenStack Cloud 6 | rubygem-actionpack-4_2 +1 | 4.2.9-7.3.1 | SUSE-SU-2017:2716-1 |
| SUSE OpenStack Cloud 6 | rubygem-actionview-4_2 | 4.2.9-9.3.1 | SUSE-SU-2017:2716-1 |
| SUSE OpenStack Cloud 6 | rubygem-activemodel-4_2 +1 | 4.2.9-6.3.1 | SUSE-SU-2017:2716-1 |
| SUSE OpenStack Cloud 6 | rubygem-rails-4_2 +3 | 4.2.9-3.3.1 | SUSE-SU-2017:2716-1 |
| SUSE OpenStack Cloud 6 | rubygem-rails-html-sanitizer | 1.0.3-8.3.1 | SUSE-SU-2017:2716-1 |
| SUSE Enterprise Storage 4 | rubygem-actionpack-4_2 +1 | 4.2.9-7.3.1 | SUSE-SU-2017:2716-1 |
| SUSE Enterprise Storage 4 | rubygem-actionview-4_2 | 4.2.9-9.3.1 | SUSE-SU-2017:2716-1 |
| SUSE Enterprise Storage 4 | rubygem-activemodel-4_2 +1 | 4.2.9-6.3.1 | SUSE-SU-2017:2716-1 |
| SUSE Enterprise Storage 4 | rubygem-rails-4_2 +3 | 4.2.9-3.3.1 | SUSE-SU-2017:2716-1 |
| SUSE Enterprise Storage 4 | rubygem-rails-html-sanitizer | 1.0.3-8.3.1 | SUSE-SU-2017:2716-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Enterprise Storage 3 | rubygem-actionpack-4_2 +1 | 4.2.9-7.3.1 | SUSE-SU-2017:2716-1 |
| SUSE Enterprise Storage 3 | rubygem-actionview-4_2 | 4.2.9-9.3.1 | SUSE-SU-2017:2716-1 |
| SUSE Enterprise Storage 3 | rubygem-activemodel-4_2 +1 | 4.2.9-6.3.1 | SUSE-SU-2017:2716-1 |
| SUSE Enterprise Storage 3 | rubygem-rails-4_2 +3 | 4.2.9-3.3.1 | SUSE-SU-2017:2716-1 |
| SUSE Enterprise Storage 3 | rubygem-rails-html-sanitizer | 1.0.3-8.3.1 | SUSE-SU-2017:2716-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | actionview | >= 3.0.0, < 3.2.22.3 | 3.2.22.3 | GHSA-pc3m-v286-2jwj |
| RubyGems | actionview | >= 4.0.0, < 4.2.7.1 | 4.2.7.1 | GHSA-pc3m-v286-2jwj |
| RubyGems | actionview | >= 5.0.0, < 5.0.0.1 | 5.0.0.1 | GHSA-pc3m-v286-2jwj |
Advisories 7
- RHSA-2016:1858 Red Hat Security Advisory: ruby193-rubygem-actionpack security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2016:1856 Red Hat Security Advisory: rh-ror41-rubygem-actionview security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2016:1857 Red Hat Security Advisory: ror40-rubygem-actionpack security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2016:1855 Red Hat Security Advisory: rh-ror42 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- DLA-604-1 ruby-actionpack-3.2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3651-1 rails - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2017:2716-1 Security update for the Ruby on Rails stack SUSE / openSUSE Security Updates · Feb 4, 2026
References
- RHSA-2016:1856 vendor-advisory
- https://puppet.com/security/cve/cve-2016-6316
- 92430 vdb-entry
- RHSA-2016:1855 vendor-advisory
- [oss-security] 20160811 [CVE-2016-6316] Possible XSS Vulnerability in Action View mailing-list
- RHSA-2016:1858 vendor-advisory
- RHSA-2016:1857 vendor-advisory
- http://weblog.rubyonrails.org/2016/8/11/Rails-5-0-0-1-4-2-7-2-and-3-2-22-3-have-been-released/
- [ruby-security-ann] 20160811 [CVE-2016-6316] Possible XSS Vulnerability in Action View mailing-list
- DSA-3651 vendor-advisory