# CVE-2020-16254: CSS Injection in Chartkick gem

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.76%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-08-05T19:52:30.000Z
- Modified: 2026-06-17T02:57:56.890Z
- Also known as: GHSA-3j95-fjv2-3m4p
- Weaknesses: CWE-74
- Assigned by: mitre

## Description

The Chartkick gem through 3.3.2 for Ruby allows Cascading Style Sheets (CSS) Injection (without attribute).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- chartkick (RubyGems): before 3.4.0
- chartkick_project chartkick: up to 3.3.2

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/ankane/chartkick/issues/546> (exploit, third-party-advisory, web)
- <https://github.com/ankane/chartkick> (package, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-16254> (advisory)
- <https://github.com/ankane/chartkick/commit/ba67ab5e603de4d94676790fdac425f8199f1c4f> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/chartkick/CVE-2020-16254.yml> (web)

## Sources

- CVE List: [CVE-2020-16254](https://www.cve.org/CVERecord?id=CVE-2020-16254), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-3j95-fjv2-3m4p](https://github.com/advisories/GHSA-3j95-fjv2-3m4p), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-16254](https://nvd.nist.gov/vuln/detail/CVE-2020-16254), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-16254 · Whole record: https://cve.day/CVE-2020-16254.json · Rebuilt by cve.day 2026-11-25T22:57:53.829Z
