CVE-2020-16254 json
CSS Injection in Chartkick gem
published 2020-08-05 6 y ago modified 2026-06-17 4 mo ago also GHSA-3j95-fjv2-3m4p , EUVD-2020-0584
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 55%
- public exploits
- 0
- none known
Summary
The Chartkick gem through 3.3.2 for Ruby allows Cascading Style Sheets (CSS) Injection (without attribute).
Patch / fix
Exploit prediction
0.76% chance of exploitation in the next 30 days, higher than 55% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/ankane/chartkick/issues/546 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | chartkick | <3.4.0 |
3.4.0 |
Classification
- Weakness
-
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
References
-
github.com
/ankane/chartkick/commit/ba67ab5e603de4d94676790fdac425f8199f1c4f
web
-
github.com
/ankane/chartkick/issues/546
web, exploit, third-party-advisory
-
github.com
/ankane/chartkick
package, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-16254
advisory
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/chartkick/CVE-2020-16254.yml
web
Sources
- CVE List CVE-2020-16254
- GitHub Advisory GHSA-3j95-fjv2-3m4p
- NVD CVE-2020-16254
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.