CVE-2019-18841 Prototype Pollution in chartkick

High 7.3 Published Updated

Prototype pollution in Chartkick.js allows attackers to inject properties into JavaScript objects, potentially leading to arbitrary code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-18841?

CVE-2019-18841 is a high-severity code injection vulnerability in n/a, published on 11 Nov 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Chartkick.js 3.1.0 through 3.1.3, as used in the Chartkick gem before 3.3.0 for Ruby, allows prototype pollution.

Which versions are affected by CVE-2019-18841?

4 open source packages ship an affected version, including chartkick. It affects 1 product.

PackageAffectedFixed in
chartkick RubyGemsAll versions3.3.0
chartkick RubyGemsAll versions3.3.0
chartkick npmFrom 3.1.03.2.0
chartkick npmFrom 3.1.03.2.0

Products include Chartkick Chartkick.js.

How do I fix CVE-2019-18841?

Upgrade chartkick to a fixed version for your release line: 3.3.0 or 3.2.0.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2019-18841 being exploited?

There is no known exploitation of CVE-2019-18841 in the wild and no public exploit code.

Sources

Also known as GHSA-5pm8-492c-92p5.

Is CVE-2019-18841 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free