{"id":"CVE-2020-26298","aliases":["CVE-2020-26298","GHSA-q3wr-qw3g-3p4h"],"related":[],"kind":"vulnerability","state":"published","title":"Injection in Redcarpet","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-01-11T00:00:00.000Z","modified":"2026-07-08T05:59:45.900Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-74","CWE-79"],"affected":[{"ranges":[{"version":"< 3.5.1","status":"affected"}],"vendor":"vmg","product":"redcarpet","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.5.1"}],"ecosystem":"RubyGems","package":"redcarpet","purl":"pkg:gem/redcarpet","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.5.1"}],"vendor":"redcarpet_project","product":"redcarpet","cpe":"cpe:2.3:a:redcarpet_project:redcarpet:*:*:*:*:*:ruby:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"},{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/advisories/GHSA-q3wr-qw3g-3p4h","tags":["advisory","third-party-advisory","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://rubygems.org/gems/redcarpet","tags":["product","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security","tags":["release-notes","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/01/msg00014.html","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.debian.org/security/2021/dsa-4831","tags":["third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNO4ZZUPGAEUXKQL4G2HRIH7CUZKPCT6/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BFMYDIONVWATY7EB6EARDVXT47AYCRNM/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PXNNWHHAPREDM3XJDACYRTK7DBMUONBI/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26298","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/redcarpet/CVE-2020-26298.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vmg/redcarpet","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BFMYDIONVWATY7EB6EARDVXT47AYCRNM","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNO4ZZUPGAEUXKQL4G2HRIH7CUZKPCT6","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PXNNWHHAPREDM3XJDACYRTK7DBMUONBI","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-26298","url":"https://www.cve.org/CVERecord?id=CVE-2020-26298","licence":"CVE Terms of Use","modified":"2025-02-13T16:27:42.195Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q3wr-qw3g-3p4h","url":"https://github.com/advisories/GHSA-q3wr-qw3g-3p4h","licence":"CC-BY-4.0","modified":"2026-07-08T05:59:45.900Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-26298","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26298","licence":"Public domain","modified":"2026-06-17T03:08:01.600Z"}],"updatedAt":"2026-11-25T22:57:56.975Z","epss":{"score":0.01589,"percentile":0.76355,"date":"2026-12-01T12:00:22.000Z"}}