Cross-site Scripting (XSS) Affecting chartkick package, versions <3.2.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (37th 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 Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-CHARTKICK-174912
  • published5 Jun 2019
  • disclosed4 Jun 2019
  • creditUnknown

Introduced: 4 Jun 2019

CVE-2019-12732  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade chartkick to version 3.2.0 or higher.

Overview

chartkick is a Ruby gem that allows creation of JavaScript charts.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). The vulnerability can be triggered if ActiveSupport.escape_html_entities_in_json = false (not the default in Rails applications, may be the default with other frameworks).

Details

References

CVSS Scores

version 3.1