Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-26298
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:37 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-26298
Complete source record
{
"id": "6eb736697db4c8aa3bc9cc41339bb890bd89f750a927cfcb2244d29b34e968f7",
"url": "https://osv.dev/vulnerability/CVE-2020-26298",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-26298",
"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.",
"evidence": "osv:CVE-2020-26298",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2020-26298",
"aliases": [
"CVE-2020-26298",
"GHSA-q3wr-qw3g-3p4h"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/vmg/redcarpet",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "a699c82292b17c8e6a62e1914d5eccc252272793"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:redcarpet_project:redcarpet:*:*:*:*:*:ruby:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.5.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "a699c82292b17c8e6a62e1914d5eccc252272793"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v3.5.0",
"v3.4.0",
"v3.3.4",
"v3.3.3",
"v3.3.1",
"v3.3.2",
"v3.3.0",
"v3.2.0",
"v3.1.1",
"v3.0.0",
"v2.2.2",
"v2.2.1",
"v2.2.0",
"v2.1.1",
"v2.1.0",
"v2.0.1",
"v2.0.0",
"v1.17.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-26298.json",
"vanir_signatures": [
{
"id": "CVE-2020-26298-bc2a74b8",
"digest": {
"threshold": 0.9,
"line_hashes": [
"198197667677715849428623281048180277561",
"54830763969004594676731107425085190938",
"97811103998125843691871254455650728211",
"139603207368515949909553120480638757958",
"313289017949240420953274720090354965485"
]
},
"source": "https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793",
"target": {
"file": "ext/redcarpet/html.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2020-26298-ccd1bdea",
"digest": {
"length": 249,
"function_hash": "244524669993411248594301671481377802264"
},
"source": "https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793",
"target": {
"file": "ext/redcarpet/html.c",
"function": "rndr_quote"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:05:17Z"
}
}
],
"modified": "2026-10-20T14:05:17.533346145Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BFMYDIONVWATY7EB6EARDVXT47AYCRNM/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNO4ZZUPGAEUXKQL4G2HRIH7CUZKPCT6/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PXNNWHHAPREDM3XJDACYRTK7DBMUONBI/",
"https://github.com/advisories/GHSA-q3wr-qw3g-3p4h",
"https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security",
"https://lists.debian.org/debian-lts-announce/2021/01/msg00014.html",
"https://rubygems.org/gems/redcarpet",
"https://www.debian.org/security/2021/dsa-4831",
"https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
},
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2020-26298",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388549,
"published_at": "2021-01-11T19:15:13.133+00:00"
}