CVE-2016-6316 · redhat
CVE-2016-6316
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.
Published 2016-09-07, last changed 2026-06-17. Weakness: CWE-79.
How to fix
Upgrade to a fixed version: actionview 3.2.22.3, 4.2.7.1, 5.0.0.1 (RubyGems) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in rails/rails by 8f544bc447, f05af91c68. Functions changed by the fix: tag_option. Regression tests: actionview/test/template/tag_helper_test.rb. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2016-09-07 | Published |
| 2017-10-24 | Package advisory GHSA-pc3m-v286-2jwj |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 3.44% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-pc3m-v286-2jwj | actionview (RubyGems) | 3.2.22.3 |
| GHSA-pc3m-v286-2jwj | actionview (RubyGems) | 4.2.7.1 |
| GHSA-pc3m-v286-2jwj | actionview (RubyGems) | 5.0.0.1 |
Also known as: GHSA-pc3m-v286-2jwj
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-126079 | 2026-11-10 | 6.1 | Action View: Possible XSS vulnerability in Action View text helpers |
| CVE-2026-126078 | 2026-11-10 | 6.1 | Action View: Possible XSS vulnerability in Action View highlight helper |
| CVE-2026-126070 | 2026-11-10 | 6.1 | Action View: Possible XSS vulnerability in Action View strip_tags |
| CVE-2026-126069 | 2026-11-10 | 4.7 | Action View: Possible XSS vulnerability in Action View tag helpers |
| CVE-2026-33168 | 2026-03-23 | 2.3 | Rails has a possible XSS vulnerability in its Action View tag helpers |
| CVE-2023-23913 | 2025-01-09 | 6.3 | same package: actionview (RubyGems) |
| CVE-2022-27777 | 2022-05-26 | 6.1 | same package: actionview (RubyGems) |
| CVE-2020-15169 | 2020-09-11 | 6.1 | XSS in Action View |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-6316, or call /api/v1/vulnerabilities/CVE-2016-6316. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.