CVE-2016-6316 — Vulnerability in actionview — CVE Details
actionview Cross-site Scripting vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (3.44%). Schedule for your next planned update.
Does your project use an affected actionview version?
Paste your Gemfile.lock to check it for CVE-2016-6316 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published October 24, 2017 (3320 days ago).
- Last revised February 20, 2024 — 2309 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install actionview -v 5.0.0.1
gem install actionview -v 3.2.22.3
gem install actionview -v 4.2.7.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| actionview RubyGems · Affected: 5.0.0 | 5.0.0.1 |
| actionview RubyGems · Affected: All versions | 3.2.22.3 |
| actionview RubyGems · Affected: 4.1.0, 4.1.0.beta1, 4.1.0.beta2, 4.1.0.rc1 (+63 more) | 4.2.7.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.1 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-6316ADVISORY
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2016-6316.ymlWEB
- https://groups.google.com/forum/#!topic/ruby-security-ann/8B2iV2tPRSEWEB
- https://groups.google.com/forum/#!topic/rubyonrails-security/I-VWr034oukWEB
- https://web.archive.org/web/20200227202008/http://www.securityfocus.com/bid/92430WEB
- https://web.archive.org/web/20200812154343/https://puppet.com/security/cve/cve-2016-6316WEB
- https://rhn.redhat.com/errata/RHSA-2016-1855.htmlWEB
- https://rhn.redhat.com/errata/RHSA-2016-1856.htmlWEB
- https://rhn.redhat.com/errata/RHSA-2016-1857.htmlWEB
- https://rhn.redhat.com/errata/RHSA-2016-1858.htmlWEB
- https://weblog.rubyonrails.org/2016/8/11/Rails-5-0-0-1-4-2-7-2-and-3-2-22-3-have-been-releasedWEB
- https://www.debian.org/security/2016/dsa-3651WEB
- https://www.openwall.com/lists/oss-security/2016/08/11/3WEB
Frequently Asked Questions
- What is CVE-2016-6316?
- actionview Cross-site Scripting vulnerability. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.1/10).
- How do I check if my project is affected by CVE-2016-6316?
- CVE-2016-6316 affects actionview. It has a 3.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2016-6316 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This places it in the top quartile of EPSS-scored vulnerabilities — 89.7% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2019-5418HIGH
Path Traversal in Action View
- CVE-2020-8163HIGH
Remote code execution via user-provided local names in ActionView
- CVE-2019-5419HIGH
Denial of Service Vulnerability in Action View
- CVE-2026-126079MEDIUM
Action View: Possible XSS vulnerability in text helpers
- CVE-2026-126069MEDIUM
Action View: Possible XSS vulnerability in tag helpers
- CVE-2022-27777MEDIUM
XSS Vulnerability in Action View tag helpers
- CVE-2026-126070MEDIUM
Action View: Possible XSS vulnerability in strip_tags
- CVE-2026-33168LOW
Rails has a possible XSS vulnerability in its Action View tag helpers