Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
XSS Vulnerability in Chartkick Ruby Gem #488
Under certain conditions, the Chartkick Ruby gem is vulnerable to a cross-site scripting (XSS) attack. This vulnerability has been assigned the CVE identifier CVE-2019-12732.
Versions Affected: 3.1.0 and below
Chartkick is vulnerable to a cross-site scripting (XSS) attack if BOTH the following conditions are met:
Condition 1: It's used with
Condition 2: Untrusted data or options are passed to a chart.
<%= line_chart params[:data], min: params[:min] %>
Note that your database can also contain untrusted data.
<%= column_chart Visit.group(:user_agent).count %>
All users running an affected release should upgrade immediately.