Vulnerabilities in pkg:npm/chartkick
PACKAGECVE-2019-18841 is a HIGH (CVSS 7.3) prototype pollution vulnerability (General Security Weakness) affecting Chartkick libraries in the RubyGems ecosystem. The issue involves prototype pollution in chartkick. Remediation is available by upgrading affected packages to version 3.3.0, 3.2.0.
pkg:npm/chartkick
Vulnerability advisories affecting package pkg:npm/chartkick. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-5pm8-492c-92p5 | CVE-2019-18841 | HIGH | Prototype Pollution in chartkick |
CVE-2019-18841 at a Glance
Security Impact
CVSS: 7.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2019-18841
To remediate this vulnerability, upgrade all affected Chartkick dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade chartkick to 3.3.0
npm install chartkick@3.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for chartkick
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-18841, inspect your project dependencies for Chartkick:
inspect dependencies for chartkick
Analyze the terminal output to locate any version of Chartkick in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Chartkick, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-18841 Affected Chartkick Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
chartkick
|
RubyGems |
< 3.3.0
|
3.3.0
|
|
chartkick
|
npm |
≥ 3.1.0
< 3.2.0
|
3.2.0
|
References
Frequently Asked Questions
What is CVE-2019-18841?
Which Chartkick versions are affected?
What version fixes CVE-2019-18841?
Is chartkick affected?
What is the CVSS score of CVE-2019-18841?
What CWE is associated with CVE-2019-18841?
How can I check RubyGems dependencies for CVE-2019-18841?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5pm8-492c-92p5",
"modified" : "2023-01-26T20:23:44Z",
"published" : "2019-12-02T18:04:11Z",
"aliases" : [ "CVE-2019-18841" ],
"summary" : "Prototype Pollution in chartkick",
"details" : "Affected versions of `@polymer/polymer` are vulnerable to prototype pollution. The package fails to prevent modification of object prototypes through chart options containing a payload such as `{\"__proto__\": {\"polluted\": true}}`. It is possible to achieve the same results if a chart loads data from a malicious server.\n\n\n## Recommendation\n\nUpgrade to version 3.2.0 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "chartkick"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.3.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "chartkick"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.2.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.1.3"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-18841"
}, {
"type" : "WEB",
"url" : "https://github.com/ankane/chartkick.js/issues/117"
}, {
"type" : "WEB",
"url" : "https://github.com/ankane/chartkick/commit/b810936bbf687bc74c5b6dba72d2397a399885fa"
}, {
"type" : "WEB",
"url" : "https://chartkick.com"
}, {
"type" : "WEB",
"url" : "https://github.com/ankane/chartkick/blob/master/CHANGELOG.md"
}, {
"type" : "WEB",
"url" : "https://github.com/ankane/chartkick/commits/master"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/chartkick/CVE-2019-18841.yml"
}, {
"type" : "WEB",
"url" : "https://rubygems.org/gems/chartkick"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-11-27T02:43:23Z",
"nvd_published_at" : "2019-11-11T01:15:00Z"
}
}