Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added CVE-2019-12732 for Chartkick #391

Merged
merged 1 commit into from
Jun 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions gems/chartkick/CVE-2019-12732.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
gem: chartkick
cve: 2019-12732
url: https://github.com/ankane/chartkick/issues/488
title: XSS Vulnerability in Chartkick Ruby Gem
date: 2019-06-04
description: |
Chartkick is vulnerable to a cross-site scripting (XSS) attack if
both the following conditions are met:

Condition 1:
It's used with `ActiveSupport.escape_html_entities_in_json = false`
(this is not the default for Rails)
OR used with a non-Rails framework like Sinatra.

Condition 2:
Untrusted data or options are passed to a chart.

<%= line_chart params[:data], min: params[:min] %>
patched_versions:
- ">= 3.2.0"