CVE-2020-26298
JSON

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 packageVersionsReported by
vmg redcarpet< 3.5.1CVE List
redcarpet (RubyGems)before 3.5.1GitHub Advisory Database
redcarpet_project redcarpetbefore 3.5.1NVD
debian debian_linux9.0, 10.0NVD

All scores

GitHub_M6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
GitHub6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD3.5low CVSS:2.0AV: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.&#xa0;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.&#xa0;En las versiones afectadas, no se llevaba a cabo ningún escape HTML al procesar las cotizaciones.&#xa0;Esto aplica incluso cuando la opción ":escape_html" había sido usada.&#xa0;Esto es corregido en la versión 3.5.1 mediante la confirmación de referencia

References

https://github.com/advisories/GHSA-q3wr-qw3g-3p4hadvisory, third-party-advisory
https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793patch, third-party-advisory, web
https://rubygems.org/gems/redcarpetproduct, third-party-advisory, web
https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-securityrelease-notes, third-party-advisory, web
https://lists.debian.org/debian-lts-announce/2021/01/msg00014.htmlmailing-list, third-party-advisory, web
https://www.debian.org/security/2021/dsa-4831third-party-advisory, vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNO4ZZUPGAEUXKQL4G2HRIH7CUZKPCT6/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BFMYDIONVWATY7EB6EARDVXT47AYCRNM/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PXNNWHHAPREDM3XJDACYRTK7DBMUONBI/vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2020-26298advisory
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/redcarpet/CVE-2020-26298.ymlweb
https://github.com/vmg/redcarpetpackage

Sources

SourceRecordLicence
CVE ListCVE-2020-26298 changed 2025-02-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-q3wr-qw3g-3p4h changed 2026-07-08CC-BY-4.0
NVDCVE-2020-26298 changed 2026-06-17Public domain