KeygraphLabs · CVE MCP

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.

CVSS
6.1
medium, from NVD
EPSS
3.74%
percentile 90.2%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-07Published
2017-10-24Package advisory GHSA-pc3m-v286-2jwj
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 3.44%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-pc3m-v286-2jwjactionview (RubyGems)3.2.22.3
GHSA-pc3m-v286-2jwjactionview (RubyGems)4.2.7.1
GHSA-pc3m-v286-2jwjactionview (RubyGems)5.0.0.1

Also known as: GHSA-pc3m-v286-2jwj

Related

CVEPublishedCVSSSummary
CVE-2026-1260792026-11-106.1Action View: Possible XSS vulnerability in Action View text helpers
CVE-2026-1260782026-11-106.1Action View: Possible XSS vulnerability in Action View highlight helper
CVE-2026-1260702026-11-106.1Action View: Possible XSS vulnerability in Action View strip_tags
CVE-2026-1260692026-11-104.7Action View: Possible XSS vulnerability in Action View tag helpers
CVE-2026-331682026-03-232.3Rails has a possible XSS vulnerability in its Action View tag helpers
CVE-2023-239132025-01-096.3same package: actionview (RubyGems)
CVE-2022-277772022-05-266.1same package: actionview (RubyGems)
CVE-2020-151692020-09-116.1XSS 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.

NVD · CVE.org