{"api_version":"1","generated_at":"2026-07-23T14:13:55+00:00","cve":"CVE-2020-26298","urls":{"html":"https://cve.report/CVE-2020-26298","api":"https://cve.report/api/cve/CVE-2020-26298.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-26298","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-26298"},"summary":{"title":"CVE-2020-26298","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-01-11 19:15:00","updated_at":"2023-11-07 03:20:00"},"problem_types":["CWE-79","CWE-74"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BFMYDIONVWATY7EB6EARDVXT47AYCRNM/","name":"FEDORA-2023-8682a0e17d","refsource":"","tags":[],"title":"[SECURITY] Fedora 37 Update: rubygem-redcarpet-3.3.2-26.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNO4ZZUPGAEUXKQL4G2HRIH7CUZKPCT6/","name":"FEDORA-2023-597f13ffb9","refsource":"","tags":[],"title":"[SECURITY] Fedora 36 Update: rubygem-redcarpet-3.3.2-26.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/advisories/GHSA-q3wr-qw3g-3p4h","name":"https://github.com/advisories/GHSA-q3wr-qw3g-3p4h","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"Injection/XSS in Redcarpet · CVE-2020-26298 · GitHub Advisory Database · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BFMYDIONVWATY7EB6EARDVXT47AYCRNM/","name":"FEDORA-2023-8682a0e17d","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 37 Update: rubygem-redcarpet-3.3.2-26.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNO4ZZUPGAEUXKQL4G2HRIH7CUZKPCT6/","name":"FEDORA-2023-597f13ffb9","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 36 Update: rubygem-redcarpet-3.3.2-26.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://rubygems.org/gems/redcarpet","name":"https://rubygems.org/gems/redcarpet","refsource":"MISC","tags":["Product","Third Party Advisory"],"title":"redcarpet | RubyGems.org | your community gem host","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793","name":"https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Fix a security issue using `:quote` with `:escape_html` · vmg/redcarpet@a699c82 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.debian.org/security/2021/dsa-4831","name":"DSA-4831","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-4831-1 ruby-redcarpet","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security","name":"https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security","refsource":"MISC","tags":["Release Notes","Third Party Advisory"],"title":"redcarpet/CHANGELOG.md at master · vmg/redcarpet · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PXNNWHHAPREDM3XJDACYRTK7DBMUONBI/","name":"FEDORA-2023-44daa9c1d4","refsource":"","tags":[],"title":"[SECURITY] Fedora 38 Update: rubygem-redcarpet-3.3.2-26.fc38 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PXNNWHHAPREDM3XJDACYRTK7DBMUONBI/","name":"FEDORA-2023-44daa9c1d4","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 38 Update: rubygem-redcarpet-3.3.2-26.fc38 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2021/01/msg00014.html","name":"[debian-lts-announce] 20210115 [SECURITY] [DLA 2526-1] ruby-redcarpet security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2526-1] ruby-redcarpet security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-26298","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26298","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2020","cve_id":"26298","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"26298","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"26298","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"redcarpet_project","cpe5":"redcarpet","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"26298","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"redcarpet_project","cpe5":"redcarpet","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2020-26298","qid":"283963","title":"Fedora Security Update for rubygem (FEDORA-2023-597f13ffb9)"},{"cve":"CVE-2020-26298","qid":"283964","title":"Fedora Security Update for rubygem (FEDORA-2023-8682a0e17d)"},{"cve":"CVE-2020-26298","qid":"284156","title":"Fedora Security Update for rubygem (FEDORA-2023-44daa9c1d4)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2020-26298","STATE":"PUBLIC","TITLE":"Injection in Redcarpet"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"redcarpet","version":{"version_data":[{"version_value":"< 3.5.1"}]}}]},"vendor_name":"vmg"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.8,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')"}]},{"description":[{"lang":"eng","value":"CWE-79 Cross-site Scripting (XSS)"}]}]},"references":{"reference_data":[{"name":"https://github.com/advisories/GHSA-q3wr-qw3g-3p4h","refsource":"CONFIRM","url":"https://github.com/advisories/GHSA-q3wr-qw3g-3p4h"},{"name":"https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793","refsource":"MISC","url":"https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793"},{"name":"https://rubygems.org/gems/redcarpet","refsource":"MISC","url":"https://rubygems.org/gems/redcarpet"},{"name":"https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security","refsource":"MISC","url":"https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security"},{"refsource":"MLIST","name":"[debian-lts-announce] 20210115 [SECURITY] [DLA 2526-1] ruby-redcarpet security update","url":"https://lists.debian.org/debian-lts-announce/2021/01/msg00014.html"},{"refsource":"DEBIAN","name":"DSA-4831","url":"https://www.debian.org/security/2021/dsa-4831"},{"refsource":"FEDORA","name":"FEDORA-2023-597f13ffb9","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FNO4ZZUPGAEUXKQL4G2HRIH7CUZKPCT6/"},{"refsource":"FEDORA","name":"FEDORA-2023-8682a0e17d","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BFMYDIONVWATY7EB6EARDVXT47AYCRNM/"},{"refsource":"FEDORA","name":"FEDORA-2023-44daa9c1d4","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PXNNWHHAPREDM3XJDACYRTK7DBMUONBI/"}]},"source":{"advisory":"GHSA-q3wr-qw3g-3p4h","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-01-11 19:15:00","lastModifiedDate":"2023-11-07 03:20:00","problem_types":["CWE-79","CWE-74"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.3,"impactScore":2.7},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":3.5},"severity":"LOW","exploitabilityScore":6.8,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:redcarpet_project:redcarpet:*:*:*:*:*:ruby:*:*","versionEndExcluding":"3.5.1","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"26298","Ordinal":"187720","Title":"CVE-2020-26298","CVE":"CVE-2020-26298","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"26298","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2020","CveId":"26298","Ordinal":"2","NoteData":"2021-01-11","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"26298","Ordinal":"3","NoteData":"2021-01-15","Type":"Other","Title":"Modified"}]}}}