6.8medium
Injection in Redcarpet
- Severity
- 6.8medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.59% (higher than 76% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-q3wr-qw3g-3p4h
Description
Redcarpet is a Ruby library for Markdown processing. In Redcarpet before version 3.5.1, there is an injection vulnerability which can enable a cross-site scripting attack. In affected versions no HTML escaping was being performed when processing quotes. This applies even when the `:escape_html` option was being used. This is fixed in version 3.5.1 by the referenced commit.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| vmg redcarpet | < 3.5.1 | CVE List |
| redcarpet (RubyGems) | before 3.5.1 | GitHub Advisory Database |
| redcarpet_project redcarpet | before 3.5.1 | NVD |
| debian debian_linux | 9.0, 10.0 | NVD |
All scores
| GitHub_M | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N |
| GitHub | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Classification
What each source says
CVE List
Redcarpet is a Ruby library for Markdown processing. In Redcarpet before version 3.5.1, there is an injection vulnerability which can enable a cross-site scripting attack. In affected versions no HTML escaping was being performed when processing quotes. This applies even when the `:escape_html` option was being used. This is fixed in version 3.5.1 by the referenced commit.
NVD (es)
Redcarpet es una biblioteca de Ruby para el procesamiento de Descuentos. En Redcarpet versiones anteriores a 3.5.1, se presenta una vulnerabilidad de inyección que puede habilitar un ataque de tipo cross-site scripting. En las versiones afectadas, no se llevaba a cabo ningún escape HTML al procesar las cotizaciones. Esto aplica incluso cuando la opción ":escape_html" había sido usada. Esto es corregido en la versión 3.5.1 mediante la confirmación de referencia
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-26298 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q3wr-qw3g-3p4h changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2020-26298 changed 2026-06-17 | Public domain |