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.
References (9)
Core 9
Core References
Mailing List, Third Party Advisory mailing-list
https://lists.debian.org/debian-lts-announce/2021/01/msg00014.html
Third Party Advisory vendor-advisory
https://www.debian.org/security/2021/dsa-4831
Mailing List, Third Party Advisory vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNO4ZZUPGAEUXKQL4G2HRIH7CUZKPCT6/
Mailing List, Third Party Advisory vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BFMYDIONVWATY7EB6EARDVXT47AYCRNM/
Mailing List, Third Party Advisory vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PXNNWHHAPREDM3XJDACYRTK7DBMUONBI/
Third Party Advisory
https://github.com/advisories/GHSA-q3wr-qw3g-3p4h
Release Notes, Third Party Advisory
https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#version-351-security
Patch, Third Party Advisory
https://github.com/vmg/redcarpet/commit/a699c82292b17c8e6a62e1914d5eccc252272793
Product, Third Party Advisory
https://rubygems.org/gems/redcarpet
Scores
CVSS v3
6.8
EPSS
0.0033
EPSS Percentile
56.1%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
Details
CWE
CWE-74
CWE-79
Status
published
Products (4)
debian/debian_linux
9.0
debian/debian_linux
10.0
redcarpet_project/redcarpet
< 3.5.1
rubygems/redcarpet
0 - 3.5.1RubyGems
Published
Jan 11, 2021
Tracked Since
Feb 18, 2026