CVE-2020-26298
published medium CVSS 3.1 · 6.8Injection in Redcarpet
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vmg | — | redcarpet< 3.5.1 | Affected | Not stated | GitHub_M |
| Debian | buster | ruby-redcarpet | Advisory build | 3.4.0-4+deb10u1 | DSA-4831-1 |
| Debian | stretch | ruby-redcarpet | Advisory build | 3.3.4-2+deb9u1 | DLA-2526-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vmg | redcarpet | < 3.5.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-74 CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
- CWE-79 CWE-79 Cross-site Scripting (XSS)
References
9- https://github.com/advisories/GHSA-q3wr-qw3g-3p4h
- https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security
- https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793
- [debian-lts-announce] 20210115 [SECURITY] [DLA 2526-1] ruby-redcarpet security update https://lists.debian.org/debian-lts-announce/2021/01/msg00014.html
- FEDORA-2023-8682a0e17d https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BFMYDIONVWATY7EB6EARDVXT47AYCRNM/
- FEDORA-2023-597f13ffb9 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNO4ZZUPGAEUXKQL4G2HRIH7CUZKPCT6/
- FEDORA-2023-44daa9c1d4 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PXNNWHHAPREDM3XJDACYRTK7DBMUONBI/
- https://rubygems.org/gems/redcarpet
- DSA-4831 https://www.debian.org/security/2021/dsa-4831
Provider assertions
2GitHub_M · cna
Injection in Redcarpet
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5697f76729ca2c011f9e92de2256c3e7b9a435029573b5357eb7ca155bcf5bf6
- Ingested
- 23 Sep 2026, 07:49:51 UTC
- Source record
- Official CVE record