CVE-2019-12732 Cross-site Scripting in Chartkick
An XSS vulnerability in the Chartkick Ruby gem allows attackers to inject malicious scripts into web pages rendered by applications using this library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2019-12732?
CVE-2019-12732 is a medium-severity cross-site scripting vulnerability in n/a, published on 6 Jun 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The Chartkick gem through 3.1.0 for Ruby allows XSS.
Weakness: CWE-79
Which versions are affected by CVE-2019-12732?
2 open source packages ship an affected version, including chartkick. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
chartkick RubyGems | All versions | 3.2.0 |
chartkick RubyGems | All versions | 3.2.0 |
Products include Chartkick Project Chartkick.
How do I fix CVE-2019-12732?
Upgrade chartkick to 3.2.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2019-12732 being exploited?
There is no known exploitation of CVE-2019-12732 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-g45g-g52h-39rg.