Cross-site Scripting (XSS) Affecting rails package, versions <2:4.2.7.1-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
3.44% (89th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-RAILS-18427196
  • published30 Jul 2026
  • disclosed7 Sept 2016

Introduced: 7 Sep 2016

CVE-2016-6316  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade Echo:latest rails to version 2:4.2.7.1-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rails package and not the rails package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.